Improve udev setup for android
This commit is contained in:
parent
61bf16fad3
commit
4716e09c77
1 changed files with 10 additions and 3 deletions
13
how_to
13
how_to
|
@ -622,10 +622,17 @@ Setup udev for android device with adb:
|
||||||
# https://wiki.archlinux.org/index.php/Android_Debug_Bridge#Adding_udev_Rules
|
# https://wiki.archlinux.org/index.php/Android_Debug_Bridge#Adding_udev_Rules
|
||||||
Get Vendor and and product IDs with
|
Get Vendor and and product IDs with
|
||||||
$ lsusb
|
$ 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:
|
/etc/udev/rules.d/51-android.rules:
|
||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="[VENDOR ID]", MODE="0660", GROUP="adbusers" # Or sdkusers
|
SUBSYSTEM=="usb",ATTR{idVendor}=="<your 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}=="<your vendor id>",ATTR{idProduct}=="<your vendor id>",SYMLINK+="android_adb"
|
||||||
SUBSYSTEM=="usb",ATTR{idVendor}=="[VENDOR ID]",ATTR{idProduct}=="[PRODUCT ID]",SYMLINK+="android_fastboot"
|
SUBSYSTEM=="usb",ATTR{idVendor}=="<your vendor id>",ATTR{idProduct}=="<your vendor id>",SYMLINK+="android_fastboot"
|
||||||
$ sudo udevadm control --reload-rules
|
$ sudo udevadm control --reload-rules
|
||||||
|
|
||||||
Get original windows key from linux:
|
Get original windows key from linux:
|
||||||
|
|
Loading…
Reference in a new issue