请选择 进入手机版 | 继续访问电脑版

VirtualBox非官方中文论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 5921|回复: 0

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

[复制链接]

27

主题

27

帖子

24万

积分

超级版主

Rank: 8Rank: 8

积分
240118
发表于 2015-5-14 13:42:56 | 显示全部楼层 |阅读模式

[物理主机系统:Linux hosts » Linux All distributions]

,[虚拟机系统:Linux hosts » Linux All distributions]

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

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


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 *


来源:http://blog.sina.com.cn/s/blog_4c451e0e010133aj.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|VirtualBox非官方中文论坛 ( 蜀ICP备16014044号 )

GMT+8, 2023-9-25 01:32 , Processed in 0.024239 second(s), 8 queries , Gzip On, APC On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表