Finding your Android device on Ubuntu

Today when I tried to deploy my Android app to the HTC device, I realized that it was displayed as the set of ‘?’ characters with output – no permission. Couple of seconds later, and stack overflow is explaining how to solve the issue (windows and Ubuntu). Sounds like that’s a common problem –

Just to highlight steps for ubuntu:

  1. Check what is the vendor ID of your device (lsusb command):
    > Bus 003 Device 006: ID 04e8:689e Samsung Electronics Co., Ltd (sample output, the bold one is the vendor ID)
  2. Create or update file /etc/udev/rules.d/51-android.rules with the line(replace 04e8 with your vendor ID):
    • SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" 
  3. Invoke commands:
    • sudo chmod a+r /etc/udev/rules.d/51-android.rules
    • sudo service udev reload
    • sudo adb kill-server
  4. Check if adb see your device with command: sudo adb devices

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s