操作系统:ubuntu11.10
手机:中兴 v880
问题描述:
1、已开启手机调试模式
2、按官网说明增加/etc/udev/rules.d/51-android.rules. 内容如下:
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev" 
3、修改51-android.rules权限:chmod a+r /etc/udev/rules.d/51-android.rules
4、重启udev服务:sudo restart udev
5、重启adb服务:sudo ./adb kill-server、sudo ./adb start-server
6、运行 sudo ./adb devices,结果如下:
list of devices                attached
???????????               device

解决方案 »

  1.   

    我查找了网上类似的问题,其他人运行 adb devices 结果一般都是
    List of devices attached
    ???????????? no permissions 而我运行的结果中 attached为device
      

  2.   

    device应该是被识别了 attached为device ,只是设备名是???  
    你执行adb install -r xxx.apk 试试看 能成功安装apk与否 
      

  3.   

    试过了,不行的
     Failed to install Local_PDControl.apk on device '????????????': adb rejected install command with: device not found
      

  4.   

    刚刚是在eclipse中进行调试出现的错误
    现在直接在adb中执行adb install ,可以成功安装在手机上,
    但问题还是未解决,不能在eclipse中调试程序。总不能每次修改程序后,都手动运行 adb install命令吧
      

  5.   

    可能是对这个ADB设备没有访问权限, 可以参考下这一段,lsusb命令查看设备PID和VID, 然后按下面的提示创建文件并添加操作权限, 然后重启adb试下看可以不:(摘自http://source.android.com/source/initializing.html)
    Configuring USB Access
    Under GNU/linux systems (and specifically under Ubuntu systems), regular users can't directly access USB devices by default. The system needs to be configured to allow such access.The recommended approach is to create a file /etc/udev/rules.d/51-android.rules (as the root user) and to copy the following lines in it. must be replaced by the actual username of the user who is authorized to access the phones over USB.# adb protocol on passion (Nexus One)
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0600", OWNER="<username>"
    # fastboot protocol on passion (Nexus One)
    SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0600", OWNER="<username>"
    # adb protocol on crespo/crespo4g (Nexus S)
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="<username>"
    # fastboot protocol on crespo/crespo4g (Nexus S)
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0600", OWNER="<username>"
    # adb protocol on stingray/wingray (Xoom)
    SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9", MODE="0600", OWNER="<username>"
    # fastboot protocol on stingray/wingray (Xoom)
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="708c", MODE="0600", OWNER="<username>"
    # adb protocol on maguro/toro (Galaxy Nexus)
    SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="<username>"
    # fastboot protocol on maguro/toro (Galaxy Nexus)
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30", MODE="0600", OWNER="<username>"
    # adb protocol on panda (PandaBoard)
    SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d101", MODE="0600", OWNER="<username>"
    # fastboot protocol on panda (PandaBoard)
    SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d022", MODE="0600", OWNER="<username>"
    Those new rules take effect the next time a device is plugged in. It might therefore be necessary to unplug the device and plug it back into the computer.This is known to work on both Ubuntu Hardy Heron (8.04.x LTS) and Lucid Lynx (10.04.x LTS). Other versions of Ubuntu or other variants of GNU/linux might require different configurations.
      

  6.   


    额,不好意思, 刚才没看太清楚, 属性那里好像少了owner这个字段, 添加一下试试看了
      

  7.   

    device应该是被识别了 attached为device ,只是设备名是???   
    你执行adb install -r xxx.apk 试试看 能成功安装apk与否  
     
      

  8.   

    谢谢您的回复,我刚刚在rules文件中增加了owner字段,结果还是一样,可以连接手机,但无法识别
      

  9.   

    可以安装apk,但无法在eclipse中直接运行或者调试