[Learning] Ubuntu Android NDK development device debugging

1, View usb device

Input terminal lsusb

My phone is HTC Desire

It corresponds to the last one: Bus 001 Device 004: ID 0bb4: 0c87 High Tech Computer Corp. Desire (debug)

Record idVendor, i.e. 0bb4

 

2, the new file .rules

sudo gedit /etc/udev/rules.d/50-android.rules

Enter the following: SUBSYSTEM == "usb", ATTR {idVendor} == "0bb4", MODE = "0666"

Save Save

 

3, restart udev

sudo /etc/init.d/udev restart

 

4, restart the adb

Switch the current directory to the directory of the main Android SDK

Into the platform-tools directory, execute the following command to restart the adb

sudo ./adb kill-server
sudo ./adb start-server

View equipment to perform adb devices

sudo ./adb devices

success! ! !

 

 

Reproduced in: https: //www.cnblogs.com/dyingbleed/archive/2012/09/27/2705907.html

Guess you like

Origin blog.csdn.net/weixin_34186950/article/details/93301816