Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Full set of Android USB vendor ID rules for Linux
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" #Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" #ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" #Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" #Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" #Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" #Google
SUBSYSTEM=="usb", ATTR{idVendor}=="201E", MODE="0666", GROUP="plugdev" #Haier
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666", GROUP="plugdev" #Hisense
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" #HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev" #Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666", GROUP="plugdev" #K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666", GROUP="plugdev" #KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666", GROUP="plugdev" #Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="plugdev" #Lenovo
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev" #LG
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev" #Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev" #MTK
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666", GROUP="plugdev" #NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666", GROUP="plugdev" #Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666", GROUP="plugdev" #Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666", GROUP="plugdev" #OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", MODE="0666", GROUP="plugdev" #Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="1d4d", MODE="0666", GROUP="plugdev" #Pegatron
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666", GROUP="plugdev" #Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666", GROUP="plugdev" #PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666", GROUP="plugdev" #Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666", GROUP="plugdev" #SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev" #Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666", GROUP="plugdev" #Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="054c", MODE="0666", GROUP="plugdev" #Sony
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="plugdev" #Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="2340", MODE="0666", GROUP="plugdev" #Teleepoch
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666", GROUP="plugdev" #Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev" #ZTE
@humanistechie
Copy link

humanistechie commented Jan 7, 2017

hi, here is one more rule:
SUBSYSTEM=="usb", ATTR{idVendor}=="0414", MODE="0666", GROUP="plugdev" #Gigabyte

@docwebhead
Copy link

docwebhead commented Nov 9, 2017

Here's another:
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0664", GROUP="plugdev", SYMLINK="Fire" # Amazon

@lrkwz
Copy link

lrkwz commented Jun 2, 2018

Don't forget to remove comment or move # as first char in line

@webknjaz
Copy link

webknjaz commented Jan 29, 2019

@lrkwz it seems to be working with a trailing comment for me...

@webknjaz
Copy link

webknjaz commented Jan 29, 2019

oh, and

SUBSYSTEM=="usb", ATTR{idVendor}=="2717", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"  # Xiaomi

@ricardobrg
Copy link

ricardobrg commented May 5, 2019

SUBSYSTEM=="usb", ATTR{idVendor}=="1782", MODE="0660", GROUP="plugdev", SYMLINK+="android%n" # Multilaser

@farhanarrafi
Copy link

farhanarrafi commented Jul 5, 2019

SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="201c", MODE="0660", GROUP="plugdev", SYMLINK+="android%n" SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="20ff", MODE="0660", GROUP="plugdev", SYMLINK+="android%n" SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0660", GROUP="plugdev", SYMLINK+="android%n" SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="2008", MODE="0660", GROUP="plugdev", SYMLINK+="android%n" SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="201d", MODE="0660", GROUP="plugdev", SYMLINK+="android%n" SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"

Here are a few more:

http://aosp.opersys.com/xref/android-8.1.0_r20/xref/docs/source.android.com/en/source/51-android.txt

@dLakhera
Copy link

dLakhera commented Sep 27, 2019

And
SUBSYSTEM=="usb",ATTR{idVendor}=="0x22D9",Mode="0660",GROUP="plugdev" #OPPO

@shernandez-git
Copy link

shernandez-git commented Aug 31, 2020

Hi!!!
What is the rule code for a Blu Studio X8 device?
y
What is the proper name for the rules file, /etc/udev/rules.d/51-android.rules?

@udoyen
Copy link

udoyen commented Sep 23, 2020

Techno rule
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev"

@wmentzel
Copy link

wmentzel commented Jan 3, 2021

Techno rule
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev"

@udoyen Isn't that already in the list on line 19 but for "MTK"? I also wanted to update https://askubuntu.com/a/1065737/514303 but than I saw it is already in the list.

@wmentzel
Copy link

wmentzel commented Jan 3, 2021

What is the proper name for the rules file, /etc/udev/rules.d/51-android.rules?

@shernandez-git that is correct, it is /etc/udev/rules.d/51-android.rules

@tringuyen-yw
Copy link

tringuyen-yw commented Mar 7, 2021

Ubuntu 20.04.2 (march 2021), the end of line comment (after GROUP="plugdev") seems to mess up with reloading the udev rules. None of the below works (ie, fastboot devices still returns "no permissions (missing udev rules? ..."

sudo systemctl restart udev
sudo udevadm control --reload-rules
sudo udevadm trigger

Removing the end of line comment fix the problem. I just move the comment in an extra line

# Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

@Anaba-hub
Copy link

Anaba-hub commented Mar 31, 2021

Hello. Can anyone know for iTel please ?

@PranavBhattarai
Copy link

PranavBhattarai commented Jun 11, 2021

First, we need to create plugdev group and we need to do something.

What is that? Fedora 34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment