vbcwr 发表于 2015-5-14 13:42:56

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

本帖最后由 vbcwr 于 2015-5-14 13:48 编辑

1.为 Ubuntu 虚拟机从设备列表中添加 USB 筛选器;
http://2.bp.blogspot.com/-Aq8rIf9fDGo/Tiwtc1Z1tpI/AAAAAAAAAEQ/bayYRhb5_cA/s1600/AddUSBDevice.jpg下的 Ubuntu 虚拟机中使用 Android 真机做开发调试" title="VirtualBox 下的 Ubuntu 虚拟机中使用 Android 真机做开发调试" style="border-width: 0px; list-style: none;">

2.将真机与 PC 连接,开启真实手机中的[设置]->[应用程序]->[开发]->和;
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 *

来源:http://blog.sina.com.cn/s/blog_4c451e0e010133aj.html
页: [1]
查看完整版本: VirtualBox 下的 Ubuntu 虚拟机中使用 Android 真机做开发调试