Ubuntu install M2 fro Android SDK

$ lsusb
…. (plug & unplug to find Deive ID)
Bus 002 Device 003: ID 2717:9039
$ sudo vi /etc/udev/rules.d/xx-android.rules (xx is random number, 50, 51, 52 or 72 are ok)
SUBSYSTEM==”usb”, SYSFS{idVendor}==”2717″, MODE==”0666″
SUBSYSTEM==”usb_device”, SYSFS{idVendor}==”2717″, MODE==”0666″
SUBSYSTEM==”usb”, ATTR{idVendor}==”2717″, ATTR{idProduct}==”9039″, SYMLINK+=”android_adb”

$ sudo chmod a+rx /etc/udev/rules.d/xx-android.rules

$ sudo service udev restart

$ sudo gedit ~/.android/adb_usb.ini
0x2717 <– add this device code, depends on lsusb

$ cd /…./platform-tools$ sudo ./adb kill-server
$ cd /…./platform-tools$ sudo ./adb devices

1. Android SDK > Run Configuration > profile > Target > Run> detecting
2. Mobile Phone > Debug > YES

 
Reference:
http://wenzhixin.net.cn/2013/06/14/ubuntu_android_xiaomi2
http://blog.csdn.net/hero_zhouwu/article/details/8852930

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s