标签:color lin server webcam and 终端 google 配置文件 code
lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 04f2:b444 Chicony Electronics Co., Ltd Lenovo Integrated Webcam
Bus 002 Device 069: ID 0e8d:2003 MediaTek Inc.
Bus 002 Device 002: ID 17ef:6050 Lenovo
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我的是:
Bus 002 Device 069: ID 0e8d:2003 MediaTek Inc.
idVendor为 0e8d,下面要用到
也可以在这里找
https://developer.android.google.cn/studio/run/device.html
编写配置文件
sudo gedit /etc/udev/rules.d/51-android.rules
加入
SUBSYSTEM=="usb", ATTR{idVendor}=="0e83", MODE="0666", GROUP="plugdev"
MODE为读写权限和文件一样
增加权限
sudo chmod a+r /etc/udev/rules.d/51-android.rules
重启usb设备
sudo /etc/init.d/udev restart
也可重启adb
adb kill-server
adb start-server
标签:color lin server webcam and 终端 google 配置文件 code
原文地址:http://www.cnblogs.com/exayong/p/6230557.html