adbデバイス権限なし
Adb Devices No Permissions
権限がありません(plugdevグループのユーザーはudevルールが間違っていますか?)[http://developer.android.com/tools/device.html]を参照してください
参照:https://blog.csdn.net/binglumeng/article/details/69525361
adbツールをインストールし、Androidデバイスを接続し、USBデバッグをオンにした後、adb devices
ディスカバリーが表示されることが判明しました?????? no permissions
。
オンラインソリューションに関連するビュー 1
まず、Androidデバイスが接続されていない場合、USBは次のようにLinuxを調べます
# RunlsusbCommand lsusb # Results Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 005: ID 0cf3:e005 Atheros Communications, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- 1
- 二
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 十一
次に、Linuxコンピューターに接続されたUSBデバッグモードのAndroidデバイスを開き、実行します
# RunlsusbCommand to view the device information lsusb # Display the following results Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 005: ID 0cf3:e005 Atheros Communications, Inc. Bus 001 Device 019: ID 2207:0010 # This entry new entry, the new connectionandroidEquipment Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- 1
- 二
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 十一
- 12
Androidの新しく接続されたデバイス情報を確認できるように、そのID番号は
2207
with0010
であることに注意してください。次に
cd /etc/udev/rules.d/
ディレクトリ、ビュー.rules
ファイルcd /etc/udev/rules.d/ ls # Results were as follows, the name may be different 51-android.rules Then edit the file # sudo vim 51-android.rules Then add the following code # SUBSYSTEM=='usb',ATTRS{idVendor}=='2207',ATTRS{idProduct}=='0010',MODE='0666'
- 1
- 二
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 十一
- 12
- 13
- 14
ここで
2207
with0010
ID情報の量はAndroidデバイスを考慮した最後のステップであり、MODEは許可を表明する必要があります。デバイスを再起動します
sudo chmod a+rx /etc/udev/rules.d/51-android.rules sudo service udev restart
- 1
- 二
したがって、再接続されたUSBを取り外してから、次のコマンドを実行すると、操作をadbで実行できます。
sudo adb kill-server sudo adb start-server sudo devices # To require root privileges to enter the shell Android device, you can run adb root adb remount adb shell