Ubuntu10.4系统下使用android2.3的adb
1:下载SDK,解压缩成android-sdk-linux_86(android2.3)
2:将platform-tools下的adbcopy到tools下(如果tools下没有adb,则会造成adb不可用)
3:编辑~/.bashrc文件,在最后一行添加如下脚本:
export PATH=${PATH}:/home/archermind/android-sdk-linux_86/tools
export PATH=${PATH}:/home/archermind/android-sdk-linux_86/platform-tools
4:ADB function
Update the adb configuration to scan for freescale's pid:
Run the SDK's tools to generate a configure file:
在终端执行如下命令:
android-sdk-linux_86/tools/android update adb
5:Modify the files:~/.android/adb_usb.ini, to add freescale vendor id:
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x15a2
6:Create a new udev rule file under the PC's /etc/udev/rules.d/ named: imx-android.rules. And fill in the following line into the file:
SUBSYSTEM=="usb", SYSFS{idVendor}=="15a2", MODE="0666"
7:Change the new udev rule file's permission:
chmod a+r /etc/udev/rules.d/imx-android.rules
8:Connect the Android Device
9:Restart the adb server
10:adb kill-server
11:adb start-server