Merge pull request #85 from riansanderson/master

Support fort MediaTek phones
This commit is contained in:
Gianluca Boiano 2016-06-13 00:31:14 +02:00 committed by GitHub
commit 2e075efdcb
3 changed files with 13 additions and 7 deletions

View File

@ -45,10 +45,7 @@ Try group plug**in**dev rather than plugdev, then restart udev.
## Note
#### For Xiaomi devices(including RedMi), the following lines should be add to `~/.android/adb_usb.ini`:
```
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2717
```
Some devices (particularly MediaTek and Xiaomi) also require an entry in $HOME/.android/adb\_usb.ini. You can use the adb_usb.ini
`ln -s `pwd`/adb_usb.ini $HOME/.android/

6
adb_usb.ini Normal file
View File

@ -0,0 +1,6 @@
# ANDROID 3RD PARTY USB VENDOR ID LIST
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2717
0x0e8d

View File

@ -54,6 +54,9 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
## Micromax
SUBSYSTEM=="usb", ATTR{idVendor}=="2a96", MODE="0666", GROUP="plugdev"
## MTK
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev"
## Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"