- Published on
Setting Up Android Device Debugging on Ubuntu
- Authors

- Name
- Daisuke Kobayashi
- https://twitter.com
I am currently doing Android development on Ubuntu running inside VMware. On Windows there is a USB driver, but on Linux you need to configure things yourself. Without that setup, ADV displays repeated ? characters at startup and cannot recognize the physical device. Connect the device over USB and run the following command in a terminal.
$ lsusb
Bus 001 Device 004: ID 0bb4:0cba High Tech Computer Corp.
If the device is recognized, you should see the smartphone's ID like the example above.
$ sudo gvim /etc/udev/rules.d/51-android.rules
Open the file in an editor and add the line below. The ATTR{idVendor}=="" part should use the ID that appeared in lsusb.
SUBSYSTEM=="usb",ATTR{idVendor}=="0bb4",MODE=="0666",GROUP=="plugdev"
$ chmod a+r /etc/udev/rules.d/51-android.rules
After unplugging and reconnecting the USB cable, the device should be recognized.
I used to do development on Ubuntu inside VirtualBox, but USB recognition did not work well there, so I switched to VMware. With VMware, this setup is much easier.