Go to rules.d directory
$ home_dir/etc/udev/rules.d
Create a file for each device
$ vim 51-android.rules $ vim 61-android.rules $ vim 71-android.rules
On the content, change the ATTR{idVendor} to specific USB Vendor IDs
For LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
Lastly, change the file permission
chmod a+r /etc/udev/rules.d/51-android.rules
Restart udev
$ sudo restart udev
To check, use adb command.
android_sdk_dir$ ./adb devices List of devices attached emulator-5554 device HT115HL12346 device 46411929E53773CE deviceIt should display the list of devices...
Do you have any other methods? Put it on the comments.
No comments:
Post a Comment