VirtualBox 下的 Ubuntu 虚拟机中使用 Android 真机做开发调试

1.为 Ubuntu 虚拟机从设备列表中添加 USB 筛选器;

VirtualBox <wbr>下的 <wbr>Ubuntu <wbr>虚拟机中使用 <wbr>Android <wbr>真机做开发调试



2.将真机与 PC 连接,开启真实手机中的[设置]->[应用程序]->[开发]->[USB调试]和[USB调试通知];
 
3.在 Ubuntu 虚拟机中查看已附加的设备列表: 
 
$cd ~/android-sdk-linux_x86/platform-tools
 
$./adb devices
 
List of devices attached 
 
HT02TL901063 device
 
注:出现以上信息说明真机已经附加成功!
 


如果出现以下信息,则说明真机附加失败!
 
List of devices attached 
 
???????????? no permissions
 


通过以下命令重启服务即可使真机附加成功:
 
$sudo ./adb kill-server
 
$sudo ./adb start-server
 
* daemon not running. starting it now on port 5037 *
 
* daemon started successfully *

posted @ 2013-02-28 16:24  郑文亮  阅读(1265)  评论(0编辑  收藏  举报