ADB is not detecting my android device on Ubuntu

前端 未结 6 1749
悲哀的现实
悲哀的现实 2021-02-06 01:40

Need help, \"adb\" not detect my phone, I do not know what to do; and this was what I did, if I have a mistake or something tell me please.

  1. I l

相关标签:
6条回答
  • 2021-02-06 02:13

    On Ubuntu 16.04, I had to install the latest android sdk, rather than the one that comes with apt-get, and finally I could see the devices from adb.

    0 讨论(0)
  • 2021-02-06 02:20

    My phone thought it was connected to the computer, but the computer wouldn't recognize it. On my phone I tapped the notification for 'USB Debugging Enabled', scrolled to 'USB Debugging', and toggled the setting off and on again. adb then saw my phone.

    0 讨论(0)
  • 2021-02-06 02:27

    from lsusb output I see that your device connected to Bus 004 as a device 005

    Here it is Bus 004 Device 005: ID 1004:6300 LG Electronics, Inc.

    I see that you did not create any group.You need to create a group (if permission denied prepend "sudo" following commands):

    1) add plugdev group:

     groupadd plugdev
    

    2) add your username to plugdev group (useradd -G {group-name} username):

     useradd -G plugdev orvi
    

    3) restart udev (you may need to log off and log back in to update user group):

     sudo service udev restart
    

    4) Now reload the rules with the following commands:

     sudo udevadm control --reload-rules
     sudo service udev restart
     sudo udevadm trigger
    

    5) Verify device is now allowing plugdev user group access

    ls -l /dev/bus/usb/<bus number from step 4>
    

    It should give something like that:

      crw-rw-rw- 1 root plugdev 189, 329 Jul  3 18:23 074
    

    6) Run adb devices to confirm permissions are correct and enjoy!

    0 讨论(0)
  • 2021-02-06 02:28

    I know your issue was solved, but for everyone in the future make sure you don't have two versions of adb running. Android Studio comes with adb and I installed adb through yum. The instances were interfering with each other and caused lots of issues including not being able to see my device.

    0 讨论(0)
  • 2021-02-06 02:33

    If you are using a virtual box(ubuntu), there is a menu at the bottom of the that allows you to add and remove USB devices. If you cannot see the bottom menu, that means you are probably in full screen.

    0 讨论(0)
  • 2021-02-06 02:37

    Use apt-get install to install the android-tools-adb package.

    This gives you a community-maintained default set of udev rules for all Android devices.

    Make sure that you are in the plugdev group. If you see the following error message, adb did not find you in the plugdev group:

    error: insufficient permissions for device: udev requires plugdev group membership
    

    Use id to see what groups you are in.

    Use sudo usermod -aG plugdev $LOGNAME to add yourself to the plugdev group.

    The following example shows how to install the Android adb tools package. apt-get install android-tools-adb

    form android developer doc: https://developer.android.com/studio/run/device.html#connect

    0 讨论(0)
提交回复
热议问题