bassmadrigal |
11-06-2014 08:19 AM |
Quote:
Originally Posted by moisespedro
(Post 5265496)
Code:
[ 984.400297] usb 1-4: new high-speed USB device number 4 using ehci-pci
[ 984.516451] usb 1-4: New USB device found, idVendor=22b8, idProduct=2e82
[ 984.516460] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 984.516465] usb 1-4: Product: Moto G
[ 984.516469] usb 1-4: Manufacturer: motorola
[ 984.516473] usb 1-4: SerialNumber: 0425446911
I switched to another ROM and it works if the phone is not in debugging mode. So I guess I can consider this problem partially solved. In the attachment is the message I get when I am in debugging mode.
|
Well, if Google translated that correctly, it means that the file or folder doesn't exist, right?
Do you have the same rule you mentioned in post #5? Does the output to dmesg (and mtp-detect) change between regular and debugging mode? I'm guessing it does. Based on Google searches it seems that the idProduct changes between regular and debugging. If that is the case, you'd need an additional rule for that. From what I found on Google, there are two additional idProduct IDs for the Moto G. One for debugging mode and one for fastboot mode (this should allow you to use fastboot commands if you have the Android SDK installed). You can just modify the udev rule file you already have and add the bottom two udev rules. Then just restart the udev system.
Code:
#motog normal mode
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}==”2e82″, MODE="0666"
#motog debug mode
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}==”2e76″, MODE="0666"
#motog fastboot mode
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}==”2e80″, MODE="0666"
You should be able to get away from using any of the idProduct entries by creating a single rule for Motorola devices. You can try that by just editing the current rule you have and removing ATTR{idProduct}==”2e82″, so it just shows the below and restarting udev.
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
If creating the single rule for Motorola works by removing the idProduct section, you could use the following to create an all-encompassing udev rule for Android devices that should cover most manufacturers. This should help with MTP and other Android things like adb and fastboot on any device you plug into your system. If you get one of those no-name manufacturers, you can easily add that manufacturer to the rule by looking at the output of dmesg/mtp-detect and grabbing the idVendor code and creating a new rule with that code. You can also modify the permissions or specifying a group that has access.
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Fujitsu & Fujitsu Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#Haier
SUBSYSTEM=="usb", ATTR{idVendor}=="201e", MODE="0666"
#Hisense
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#Intel
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenovo
SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#MTK
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", MODE="0666"
#Pegatron
SUBSYSTEM=="usb", ATTR{idVendor}=="1d4d", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony
SUBSYSTEM=="usb", ATTR{idVendor}=="054c", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Teleepoch
SUBSYSTEM=="usb", ATTR{idVendor}=="2340", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666"
|