Using udev to connect to Android device
I am using method from this page to connect my android mobile to my Debian9 system using udev rules: https://android.stackexchange.com/qu...10/39437#39437
* Find vendor and product ID using lsusb or dmesg output: * As root, create rules file: /etc/udev/rules.d/51-android.rules * Insert: Code:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e22", MODE="0666" GROUP="androiddev", SYMLINK+="android%n" Code:
systemctl restart udev |
I do know that a udev rule matches need to use matching of the attributes of the device and the attributes from one single parent device.
References: https://wiki.archlinux.org/index.php/udev http://www.reactivated.net/writing_u...les.html#basic So I'm wondering if the rule matching shouldn't use 'SUBSYSTEM="usb"' instead... Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e22", MODE="0666", GROUP="androiddev", SYMLINK+="android%n" Code:
lsusb Code:
udevadm info -a -p $(udevadm info -q path -n /dev/bus/usb/003/004) PS: I note your original rule was missing a comma between MODE and GROUP assignment parameters. |
Hi
as a local user run Code:
groups I think plugdev group might be better? personally I prefer android-file-transfer https://github.com/whoozle/android-file-transfer-linux |
I think following line is working:
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e22", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" |
Thanks for the update.
|
I use WiFi File Transfer Pro:
https://play.google.com/store/apps/d...iletransferpro Very easy to use and has always worked for me. It basically acts like a server on your mobile device. Tip: Do not logout from your browser. Just clear your history and shut down the browser. Edit: Came across this tip a few minutes ago (10/30/2017): The Simplest Way to Move Files to and from Your Phone |
All times are GMT -5. The time now is 05:41 AM. |