Last active
May 10, 2024 12:10
-
-
Save dushankw/906cccf3bb6ad640640d0e5887748a72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create this file in /etc/udev/rules.d/51-android.rules (root owned, bitmask 0644) | |
# Reload udev (udevadm control --reload-rules) | |
# | |
# It will allow members of the `adbusers` group to access the phone over usb without being root | |
# You should create a new unprivileged user who is a member of this group, then run `adb` as said user | |
# | |
# To add a new device, plug in the device and run `lsusb` to determine its device id then add it in, eg: | |
# $ lsusb | |
# Bus 002 Device 063: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug) | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",MODE="0660",GROUP="adbusers" | |
# nexus 5x | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",ATTR{idProduct}=="4ee7",SYMLINK+="android_adb" | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",ATTR{idProduct}=="4ee7",SYMLINK+="android_fastboot" | |
# pixel xl / pixel 3a | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",ATTR{idProduct}=="4ee1",SYMLINK+="android_adb" | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",ATTR{idProduct}=="4ee1",SYMLINK+="android_fastboot" | |
# pixel 4a | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",ATTR{idProduct}=="4ee0",SYMLINK+="android_adb" | |
SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",ATTR{idProduct}=="4ee0",SYMLINK+="android_fastboot" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment