Skip to content

Instantly share code, notes, and snippets.

@vubon
Created January 17, 2017 19:15
Show Gist options
  • Save vubon/62e1827018fb1ef76057f92e6a69cd70 to your computer and use it in GitHub Desktop.
Save vubon/62e1827018fb1ef76057f92e6a69cd70 to your computer and use it in GitHub Desktop.
Manually adding Android ADB USB driver in Ubuntu 16.04 LTS
Requirements:
Operating System: Ubuntu 16.04 LTS
Android Developer Tools (ADT) installed
Steps:
Make sure that you have connected your Android device in USB Debugging mode
Press Ctrl + Alt + T for Terminal and use the following command:
lsusb
Now you might get a similar reply on the screen
Bus 002 Device 013: ID 283b:1024
Note:
Here on “Bus 002 Device 008: ID 283b:1024”
{idVendor}==”283b”
{idProduct}==”1024″
Now enter the following command:
sudo gedit /etc/udev/rules.d/51-android.rules
Add a new line to this file:
SUBSYSTEM==”usb”, ATTRS{idVendor}==”283b”, ATTRS{idProduct}==”1024″, MODE=”0666″
Edit idVendor & idProduct values with your device values
Save and close.
Now enter the following command:
sudo chmod a+rx /etc/udev/rules.d/51-android.rules
sudo service udev restart
Now we have to add the idVendor in adb_usb.ini
Now enter the following command:
cd ~/.android
gedit adb_usb.ini
Add the following value
0x283b
This is nothing but 0x(idVendor value). So replace the value with respect to your device value
Now Save and close the file.
Now enter the following command:
sudo service udev restart
Plug out the Android device and reconnect it again.
Now enter the following command:
adb kill-server
adb devices
There you go! Your device must be listed.
Credit goes to: https://droidstuffs.wordpress.com/2014/05/13/manually-adding-android-adb-usb-driver-in-ubuntu-14-04-lts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment