From 4716e09c7713f6b16337588f970ed93a33ca0bbc Mon Sep 17 00:00:00 2001 From: lhark Date: Thu, 21 Nov 2019 18:12:24 +0000 Subject: [PATCH] Improve udev setup for android --- how_to | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/how_to b/how_to index 7304402..e10b89e 100644 --- a/how_to +++ b/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 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 /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}=="", MODE="0660", GROUP="adbusers" # Or sdkusers + SUBSYSTEM=="usb",ATTR{idVendor}=="",ATTR{idProduct}=="",SYMLINK+="android_adb" + SUBSYSTEM=="usb",ATTR{idVendor}=="",ATTR{idProduct}=="",SYMLINK+="android_fastboot" $ sudo udevadm control --reload-rules Get original windows key from linux: