Ubuntu下连接Android真机
时间:2011-05-14 来源:Fallen Angel
1.首先设置好Ubuntu的USB设备连接权限
参考"搭建Android应用开发环境及编译环境"。
2.连接Android真机
A.插好线后先不要开机;
B.运行命令:
sudo /home/administrator/work/android-sdk-linux_86/platform-tools/adb kill-server // 关闭服务
sudo /home/administrator/work/android-sdk-linux_86/platform-tools/adb start-server // 启动服务
sudo /home/administrator/work/android-sdk-linux_86/platform-tools/adb devices // 显示设备
C.启动Android真机
运行“ sudo /home/administrator/work/android-sdk-linux_86/platform-tools/adb devices”
看到以下字样即表示成功连接:
administrator@ubuntu:~$ sudo /home/administrator/work/android-sdk-linux_86/platform-tools/adb devices
List of devices attached
0123456789ABCDEF device