Android "adb devices no permissions"

  列出當前鏈接設備時出現如下狀況vim

[user@dell platform-tools]# ./adb devices
List of devices attached 
????????????	no permissions
192.168.56.101:5555	device

  當使用root用戶從新啓動adb服務時卻沒有問題spa

[root@dell rules.d]# adb kill-server
[root@dell rules.d]# adb start-server
[root@dell rules.d]# adb devices
List of devices attached 
192.168.56.101:5555    device
0123456789ABCDEF    device

解決辦法:code

首先獲得該設備的IDorm

[root@dell platform-tools]# lsusb
Bus 003 Device 009: ID 2207:0010

圖中2207爲該Android設備的ID, 而後進入/etc/ude/rules.d/目錄,增長一條rulesserver

[root@dell 003]# cd /etc/udev/rules.d/
[root@dell rules.d]# vim 99-adb.rules #增長以下內容
SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666", GROUP="plugdev"

0666爲修改後的權限,這樣就能夠保證普通用戶也能夠正常使用了。blog

相關文章
相關標籤/搜索