Linux: ‘adb devices’ can't find devices
A strange issue was found on my Debian PC that adb devices can’t find any device meanwhile lsusb can find the device I need.
Issue
1 | $ lsusb |
Solution
Copy the first 4 characters of your device ID when you type lsusb (mark it as red):
Bus 002 Device 006: ID 18d1:4e26 Google Inc.
Add it into file ~/.android/adb_usb.ini or create it if it doesn’t exist:
1 | # ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT. |
After that, you need to restart your adb server:
1 | $ adb kill-server |
Now it can be detected by adb devices