1.通过usb 链接。
在终端运行lsusb
会发现结果有会有如下类似记录:
Bus001 Device 008: ID 0bb4:0c02 HUAWEI `` (记住 0bb4)。
2.下载Android SDK或者从源码中编译SDK。
(1)android update adb(如:root@yanzhi-Lenovo:~/android-sdks/platform-tools# android update adb。切记不要在.bashrc(隐藏文件Ctrl+h 可查看)文件中 设置多个SDK环境变量,更新容易出错)。
(2)
Modify the files:
X:\Profile\<your account>\.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.
0x0bb4
注释: 修改 文件 ,Ctrl+h 可查看 .android文件夹,在adb_usb.ini文件中 最后添加设备ID:0x0bb4。
3。Create a new udev rule file under the PC's /etc/udev/rules.d/ named: imx-android.rules.(创建XX.rules文件)
如:sudo gedit /etc/udev/rules.d/50-Android.rules
添加:SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
4。添加新增文件权限。如:sudo chmod a+rx /etc/udev/rules.d/50-Android.rules
5。 sudo/etc/init.d/udev restart
会出现:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service udev restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop udev ; start udev. The restart(8) utility is also available.
udev stop/waiting
udev start/running, process 5399
6。验证:
# cd android-sdks
:~/android-sdks# cd platform-tools
:~/android-sdks/platform-tools# adb kill-server
:~/android-sdks/platform-tools# adb start-server
adb server is out of date. killing...
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
:~/android-sdks/platform-tools# adb start-server
adb server is out of date. killing...
* daemon started successfully *
root@yanzhi-Lenovo:~/android-sdks/platform-tools# adb devices
List of devices attached
0123456789ABCDEF device
root@yanzhi-Lenovo:~/android-sdks/platform-tools# adb shell
$ ls
d
dev
etc
mnt
sys
acct
data
init
proc
7:在eclipse DDMS中还可以查看Log 信息。
在终端运行lsusb
会发现结果有会有如下类似记录:
Bus001 Device 008: ID 0bb4:0c02 HUAWEI `` (记住 0bb4)。
2.下载Android SDK或者从源码中编译SDK。
(1)android update adb(如:root@yanzhi-Lenovo:~/android-sdks/platform-tools# android update adb。切记不要在.bashrc(隐藏文件Ctrl+h 可查看)文件中 设置多个SDK环境变量,更新容易出错)。
(2)
Modify the files:
X:\Profile\<your account>\.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.
0x0bb4
注释: 修改 文件 ,Ctrl+h 可查看 .android文件夹,在adb_usb.ini文件中 最后添加设备ID:0x0bb4。
3。Create a new udev rule file under the PC's /etc/udev/rules.d/ named: imx-android.rules.(创建XX.rules文件)
如:sudo gedit /etc/udev/rules.d/50-Android.rules
添加:SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
4。添加新增文件权限。如:sudo chmod a+rx /etc/udev/rules.d/50-Android.rules
5。 sudo/etc/init.d/udev restart
会出现:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service udev restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop udev ; start udev. The restart(8) utility is also available.
udev stop/waiting
udev start/running, process 5399
6。验证:
# cd android-sdks
:~/android-sdks# cd platform-tools
:~/android-sdks/platform-tools# adb kill-server
:~/android-sdks/platform-tools# adb start-server
adb server is out of date. killing...
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
:~/android-sdks/platform-tools# adb start-server
adb server is out of date. killing...
* daemon started successfully *
root@yanzhi-Lenovo:~/android-sdks/platform-tools# adb devices
List of devices attached
0123456789ABCDEF device
root@yanzhi-Lenovo:~/android-sdks/platform-tools# adb shell
$ ls
d
dev
etc
mnt
sys
acct
data
init
proc
7:在eclipse DDMS中还可以查看Log 信息。