Improve udev setup for android

This commit is contained in:
lhark 2019-11-21 18:12:24 +00:00
parent 61bf16fad3
commit 4716e09c77

13
how_to
View file

@ -622,10 +622,17 @@ Setup udev for android device with adb:
# https://wiki.archlinux.org/index.php/Android_Debug_Bridge#Adding_udev_Rules
Get Vendor and and product IDs with
$ lsusb
Bus 001 Device 007: ID 0fce:8161 Sony Ericsson Mobile Communications AB ST18i
^ ^
/ \
Vendor ID Product ID
Create adbusers group and yourself to it
$ sudo groupadd adbusers
$ sudo usermod -aG adbusers <user>
/etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", ATTR{idVendor}=="[VENDOR ID]", MODE="0660", GROUP="adbusers" # Or sdkusers
SUBSYSTEM=="usb",ATTR{idVendor}=="[VENDOR ID]",ATTR{idProduct}=="[PRODUCT ID]",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="[VENDOR ID]",ATTR{idProduct}=="[PRODUCT ID]",SYMLINK+="android_fastboot"
SUBSYSTEM=="usb",ATTR{idVendor}=="<your vendor id>", MODE="0660", GROUP="adbusers" # Or sdkusers
SUBSYSTEM=="usb",ATTR{idVendor}=="<your vendor id>",ATTR{idProduct}=="<your vendor id>",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="<your vendor id>",ATTR{idProduct}=="<your vendor id>",SYMLINK+="android_fastboot"
$ sudo udevadm control --reload-rules
Get original windows key from linux: