Usb storage mass and ICS

Danielfr

Senior Member
Aug 29, 2008
253
22
18
Antwerpen
Solution:


How to enable USB mass storage on Android 4.0 ICS Samsung Galaxy S2?
1.Bring up Settings.
2.Click More… (under Wireless and network).
3.Then select USB utilities ~ Set USB cable connection mode.
4.Select Connect storage to PC then.
5.Connect USB cable from phone to PC.
6.Select Turn on USB storage.
7.That’s all.
 
Last edited:

VAXXi

Senior Member
Mar 19, 2012
139
177
83
Bucharest
vaxxi.net
OR, if you hate going through the menus everytime, you can do like I did and enable the USB mass storage by default (instead of that MTP which doesn't work on Mac OS).

Solution A - put this in your init script (if you have a kernel which supports init scripts, currently only CF-Root works on ICS).

Code:
setprop persist.sys.usb.config "mass_storage,adb"
Solution B - add/change the same settings in build.prop (you probably have now "persist.sys.usb.config=mtp,adb".

Code:
persist.sys.usb.config=mass_storage,adb
And reboot. When you connect your cable, it will default to USB mass storage mode just like it did on Gingerbread.
 

Danielfr

Senior Member
Aug 29, 2008
253
22
18
Antwerpen
OR, if you hate going through the menus everytime, you can do like I did and enable the USB mass storage by default (instead of that MTP which doesn't work on Mac OS).

Solution A - put this in your init script (if you have a kernel which supports init scripts, currently only CF-Root works on ICS).

Code:
setprop persist.sys.usb.config "mass_storage,adb"
Solution B - add/change the same settings in build.prop (you probably have now "persist.sys.usb.config=mtp,adb".

Code:
persist.sys.usb.config=mass_storage,adb
And reboot. When you connect your cable, it will default to USB mass storage mode just like it did on Gingerbread.
I have "persist.sys.storage_preload=1"
 
  • Like
Reactions: penfold99 and post8

Elemetrix

Senior Member
Apr 28, 2010
190
10
0
Nice solution above but I just really wish it could be handled like my old HTC on GB with the dropdown notification.

Sometimes I just want to charge, sometimes mtp will do but more often mass storage.
 

VAXXi

Senior Member
Mar 19, 2012
139
177
83
Bucharest
vaxxi.net
That has nothing to do with what I wrote; as these are computers, even one letter makes a big difference, nevermind one entire word ;)

I've checked the default build.prop files on XXLPQ and ZSLPE and they don't seem to include this setting by default, so you probably have to add it manually; either remount /system as r/w and edit through vi in ADB, either use build.prop Editor from the market.

@Elemetrix: changing the system property mentioned before gives you the old style setting instead of MTP.
 
Last edited:
  • Like
Reactions: Elemetrix

xinfinityoO

Senior Member
May 14, 2011
2,209
574
0
Wellington
That has nothing to do with what I wrote; as these are computers, even one letter makes a big difference, nevermind one entire word ;)

I've checked the default build.prop files on XXLPQ and ZSLPE and they don't seem to include this setting by default, so you probably have to add it manually; either remount /system as r/w and edit through vi in ADB, either use build.prop Editor from the market.

@Elemetrix: changing the system property mentioned before gives you the old style setting instead of MTP.
editing build.rpop..didnt work
 

VAXXi

Senior Member
Mar 19, 2012
139
177
83
Bucharest
vaxxi.net
What exactly didn't work ? is it still going to MTP, is it not working at all anymore ?

Easiest way to check is to do a
Code:
getprop | grep usb
in Terminal Emulator and see if the values have changed.
 

xinfinityoO

Senior Member
May 14, 2011
2,209
574
0
Wellington
What exactly didn't work ? is it still going to MTP, is it not working at all anymore ?

Easiest way to check is to do a
Code:
getprop | grep usb
in Terminal Emulator and see if the values have changed.
it is still picking as mtp,adb when i grep it. but i have confirmed i changed it in build.prop.. found under systems
 

VAXXi

Senior Member
Mar 19, 2012
139
177
83
Bucharest
vaxxi.net
it is still picking as mtp,adb when i grep it. but i have confirmed i changed it in build.prop.. found under systems
Was the build.prop saved ? can you grep the property name in build.prop and check it's still there after rebooting the phone ?

The
Code:
getprop | grep usb
should give you two more properties: sys.usb.config and sys.usb.state. They should have the same mass_storage,adb value.
 

xinfinityoO

Senior Member
May 14, 2011
2,209
574
0
Wellington
Was the build.prop saved ? can you grep the property name in build.prop and check it's still there after rebooting the phone ?

The
Code:
getprop | grep usb
should give you two more properties: sys.usb.config and sys.usb.state. They should have the same mass_storage,adb value.
yes it was saved.. i even checked with root explorer.. and the rest of properties also states the same mtp,adb. can you attach your buildprop for me to test..

thanks
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone