adb devices command not working

前端 未结 9 604
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 05:53

I\'m running Ubuntu 10.10 64 bit. I have ia32-libs installed along with Android Debug Bridge version 1.0.26.

My problem(s):

  1. adb devices >>
9条回答
  •  醉梦人生
    2020-12-02 06:18

    One thing I didn't try was editing /etc/udev/rules.d/70-android.rules. Is that likely to be the issue?

    Any particular reason why you didn't do that? To answer the question - YES! The udev rules are what informs Ubuntu what your device is and allows user-space tools to therefore access it.

    You will not be able to use adb without correctly following the instructions.

    With that in mind however, you don't say what version of Ubuntu you're using but I had issues with 10.10 - let me know if you need me to post the contents of my rules file.

    Don't worry about running adb via sudo, you don't need it. The MODE="0666" from the udev rule allows you to access the device as any user.


    EDIT:

    Don't forget to reload the rules:

    sudo udevadm control --reload-rules
    

    EDIT #2:

    As @Jesse Glick correctly points out, if adb is already running in daemon mode, you'll also need to restart it for this to work:

    sudo adb kill-server
    

    I've used sudo here, since that will guarantee that adb will be killed , and it's the officially supported method to stop the server. It will be automatically restarted the next time adb is used, but this time with the correct environment.

提交回复
热议问题