Yeah me too.
Here's what worked for me
NB:
1. there was a minor error - needed a 'sudo' on step 6 part b - the chmod command
2. I added the Dev Options and USB debugging instructions
3. I added a 'turn off USB debugging' when you're done, instruction
Here's how:
1. Enable Developer options and enable USB debugging
goto Settings
scroll to Build Number
tap repeatedly about 7 or more times
go back to settings and you should Developer Options
go in and enable USB debugging
2. Install necessary modules to your computer:
sudo apt-get install mtp-tools mtpfs
3. Configure 51-android.rules:
sudo gedit /etc/udev/rules.d/51-android.rules
paste the following at the end of the file (if the file does not exist then just paste):
#LG - Nexus 4
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Samsung - Nexus 7 & 10
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
Save and exit.
4. Make the file executable:
sudo chmod +x /etc/udev/rules.d/51-android.rules
5. Restart udev
sudo service udev restart
6. Create mount point and permissions (will need to do this for other Nexus' if using for the 7 or 10)
sudo mkdir /media/nexus4
sudo chmod 755 /media/nexus4
7. Plug in the Nexus 4 and make sure MTP is enabled.
8. Mount with the following command:
sudo mtpfs -o allow_other /media/nexus4
9. When you have completed your work you must unmount:
sudo umount /media/nexus4
10. When done turn off USB debugging - it tightens up your security
Now each time you need to copy from/to your Nexus 4 to your Linux computer you only need to plug in and run 8, then 9 when you have completed your work.
http://forum.xda-developers.com/showthread.php?t=2004182
1 comment:
I don't think you need to turn in usb debug to make mtp or ptp work; in fact of could be the other way round: disable adb before plugging in the usb so as not to confuse the host.
Post a Comment