1 install adbapt-getinstallandroid-tools-adb2 configuration 1) run lsusbBus001Device002: ID8087: 0024IntelCorpIntegratedRateMatchingHubBus002Device002: ID8087: 002
1. install adb
Apt-get install android-tools-adb2. configuration
1) run lsusb
Bus 001 Device 002: ID 8087: 0024 Intel Corp. integrated Rate Matching HubBus 002 Device 002: ID 8087: 0024 Intel Corp. integrated Rate Matching HubBus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hubBus 001 Device 005: ID 0cf3: 3005 Atheros Communications, Inc. AR3011 g0thbus 001 Device 004: ID 13d3: 5205 IMC Networks Bus 002 Device 006: ID 0bb4: 0cee HTC (High Tech Computer Corp .) bus 002 Device 003: ID 046d: c05a Logitech, Inc. optical Mouse M90: find the corresponding HTC mobile phone information
2) create a 70-android-usb.rules file in the/etc/udev/rules. d Directory and write the file:
SUBSYSTEM = "usb", ATTR {idVendor} = "0bb4", ATTR {idProduct} = "0cee", MODE = "0666", OWNER ="
"3) restart the service
Sudo restart udev 4) query the verification device:
Adb devices 3. use adb to control mobile phones
1) upload a file to your mobile phone
adb push /images/test.jpg /sdcard/
2) Download the file to your computer
Adb pull/sdcard/images/test.jpg/tmp3) to enter the android shell environment
ado shell
For other adb functions, Baidu should handle them. over!