Android - adb connexion problem with PC on Linux


- enable USB debugging
- connect your device to your computer

in terminal :
# adb devices
List of devices attached

# adb usb
error device not found

------------------------------------------------------------------------
Solution:

(1) Get details of device on usb => look for productId and vendorId
# lsusb -v

(2) modify : /etc/udev/rules.d/99-android.rules

add the line:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0a5c", SYSFS{idProduct}=="0026", MODE="0666"

# chmod a+r /etc/udev/rules.d/99-android.rules

(3)modify or create : ~/.android/adb_usb.ini
add the line :
0x0a5c

(4) restart udev (or reboot your computer)

# udevadm control --reload-rules

--------------------------------------------------------------------------
After manipulation :

$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions

$ su
Password :
# adb devices
List of devices attached
???????????? no permissions

# adb kill-server
# adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

# adb devices
List of devices attached

EXIT ROOT !!!

# exit
exit

$ adb devices
List of devices attached

$ adb kill-server
$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

$ adb devices
List of devices attached
DI8414358747535 device