5,598,820 Members 33,650 Now Online
XDA Developers Android and Mobile Development Forum

Moto G - Linux usb connection. MTP doesn't work, where is usb storage mode?

Tip us?
 
shibumi77
Old
#1  
Senior Member - OP
Thanks Meter 31
Posts: 150
Join Date: Jan 2012
Default Moto G - Linux usb connection. MTP doesn't work, where is usb storage mode?

A week ago my old Ace 2 was stolen. Being broke at the moment, I was struggling to buy even a cheap ordinary phone, so any decent smart phone was out of range for me.

Out of the blue, a kind soul gifted me with the Moto G which is truly a beauty indeed. The jump from the ace 2 is huge.

Now, one thing I'm missing is the possibility that I had before of connecting the phone to the pc using the usb cable, and setting the phone in usb storage mode. With the Moto G seems I only can connect using MTP or PTP, and the problem is, I use linux and it doesn't seems to detect my phone when in MTP or PTP, so i can't access the files.

I tried with qlix but it says it doesn't detect any device, and I couldn't find much info in internet either.

Any ideas how can I connect using MTP to android? Or if it is possible to enable usb storge mode?

My distribution is Linux Mint Petra.

Thanks in advance
 
Shadow_2k
Old
#2  
Member
Thanks Meter 20
Posts: 36
Join Date: Feb 2011
Maybe this helps you to get it running with MTP.
http://forum.xda-developers.com/show....php?t=2584247

Classical USB Storage mode has been disabled or removed from Android 4.x+.
 
manudo
Old
#3  
manudo's Avatar
Senior Member
Thanks Meter 35
Posts: 413
Join Date: May 2013
Location: Quesada
Ok, the guy before me is right, since Ice Cream Sandwich, Android USB connection has changed in good and bad ways...
But in Linux, I suggest that look at the /dev directory when plugging the phone to the PC. I guess that it creates a usb directory to identify your phone from other periperials.
Now, if it has changes then look at the /media directory, it has all mounted devices in the PC if it has, you can access to it if you want.

I have a Xperia phone that uses MTP to connect computers but I use Linux, what I use? Yeah, the holy god's Ubuntu, with the 13.10 update can mount MTP natively so you don't have to worry about drivers and all that kind of stuff.
Can I get legal issues if I name a custom ROM like "Jelly Beans (sweetened with Splenda)"? Serious question. D:

Moto G (Stock KitKat 4.4.2)
Xperia Sola (Paranoid Android 1.6 - 4.0.4 ICS)

Currently busy because of college works and stuff, so I afk, sorry folks.
 
ferezvi
Old
#4  
Junior Member
Thanks Meter 2
Posts: 2
Join Date: Dec 2013
Default Add moto g to libmtp

Just add your device to libmtp fallow this guide:

Install mtp-tools and optionally the checkinstall package:

sudo apt-get install mtp-tools libusb-dev checkinstall
sudo mtp-detect
Take note to VID and PID numbers, example:

VID 22b8
PID 2e82
Download the latest libmtp source from the project site (libmtp.sourceforge.net). At the time of writing the version was 1.1.6, so this is would be an example:


tar xvf libmtp-1.1.6.tar.gz
cd libmtp-1.1.6
Add an entry to your in device in the source:

gedit src/music-players.h
Example:

{ "Motorola", 0x22b8, "Moto G (XT1032)", 0x2e82, DEVICE_FLAGS_ANDROID_BUGS }
Note, pay attention to the trailing commas (,) in the file like this:

[...]

{ "Motorola", 0x22b8, "Moto X (XT1058)", 0x2e63,
DEVICE_FLAGS_ANDROID_BUGS },

{ "Motorola", 0x22b8, "Moto G (XT1032)", 0x2e82,
DEVICE_FLAGS_ANDROID_BUGS },

{ "Motorola", 0x22b8, "Droid Maxx (XT1080)", 0x2e67,
DEVICE_FLAGS_ANDROID_BUGS },

[...]
Now configure, build and install (checkinstall is recommended over make install) the patched version:

./configure
make
sudo checkinstall
Reboot and thats it.
The Following 2 Users Say Thank You to ferezvi For This Useful Post: [ Click to Expand ]
 
gr1pper
Old
#5  
Junior Member
Thanks Meter 1
Posts: 2
Join Date: Aug 2010
Quote:
Originally Posted by Shadow_2k View Post
Maybe this helps you to get it running with MTP.
http://forum.xda-developers.com/show....php?t=2584247

Classical USB Storage mode has been disabled or removed from Android 4.x+.
Alternatively install Gnomad from your repo and use the data transfer tab.HTH
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes