Galaxy S2 on Linux

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
I have laid my trusted XT720 to rest (passed it on to the wife :p ), and got myself the S2.

It seems that Google has changed a lot since the Android 2.x days, in particular there is no more USB_STORAGE mode, only MTP and PTP.

The default Android version being 4.0.3.

This is not playing nice with my Linux box and now I have to figure out how to get the two to make nice, file transfer being the mayor headache atm.

Is there anyone with some Linux experience on the S2?
I have now read you need mtpfuse and mtplib to get the phone to be recognised, got that sorted.
I can mount the phone now (after setting up udev rules and installing the relevant libs), BUT it refuses to create or add files to the phone.

Code:
mkdir /media/Galaxy
mtpfs -o allow_other /media/Galaxy/

sudo mkdir /media/Galaxy/Phone/Music/Ringtones
mkdir: cannot create directory ‘/media/Galaxy/Phone/Music/Ringtones’: No such file or directory

I know I can use WIFI to get what I want, but I cannot leave a thing undone! Anyone with knowledge on how they got their phones to make nice?
 

plod

Active Member
Joined
Dec 20, 2006
Messages
75
The problem might be the udev rules the mode would be the rights did you add something like

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666"
 

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
Code:
cat /etc/udev.d/rules/91-android.rules

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666"
It should be right.
 

plod

Active Member
Joined
Dec 20, 2006
Messages
75
Does the directory /media/Galaxy/Phone/Music/ exist when the phone is mounted? I did get it to work with the same settings as you have on Ubuntu so it should work.
 

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
I unmounted the phone and after trying to use wifi to move the files over I saw that both the dir was created and that the file has been transferred even though I got the error message.

What is annoying is that if you list the contents it shows up as not created, so for now you have to create a dir, disconnect phone, reconnect phone and carry on with what you wanted to do. Not ideal by any stretch of the imagination...

I'll try some larger files (movies) and other documents to see what happens.
 

BigAl-sa

Executive Member
Joined
Dec 26, 2006
Messages
6,652
I started a thread in linux about this, and one of the guys gave a really nice response.

I've given up with USB and rely on SMB over wireless for ICS and later. I really don't know what Google is trying to achieve with this change.
 

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
According to Google devs USB_STORAGE was a block on the future of the OS, I'll see if I can find the article about it.

http://www.xda-developers.com/andro...-usb-mass-storage-back-on-ice-cream-sandwich/

Basically you cannot have a partition mounted on two separated devices, in the past you had to unmount the SD card to mount it on the PC. Most ICS devices now have only one partition and with MTP you do not have to unmount the partition to use it on the PC as well.

There is a thorough article about it somewhere, just can't find the Google announcement right now.

Here is more:
http://www.reddit.com/r/Android/comments/mg14z/whoa_whoa_ics_doesnt_support_usb_mass_storage/c30q93p
 
Last edited:
Top