Ubuntu下adb连接手机

step 1

root@ubuntu:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04e8:681c Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

step 2

root@ubuntu:~# gedit /etc/udev/rules.d/51-android.rules 
在这个文件里添加如下代码:
SUBSYSTEM=="usb", SYSFS{"Samsung Electronics Co., Ltd."}=="04e8", MODE="0666" 
其中: Samsung Electronics Co., Ltd | 0ce8  见step 1。

step 3

root@ubuntu:~# /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 restart(8) utility, e.g. restart udev
udev start/running, process 4744

step 4

root@ubuntu:~# adb kill-server
root@ubuntu:~# 

step 5

root@ubuntu:~# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

List of devices attached
100087627e1e    device

step 6

root@ubuntu:~# adb shell
$ 




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值