[APP] USB Mass Storage for Ice Cream Sandwich & Jelly Bean [v.1.2.0-pre - 02.02.2012]

Search This thread

Bexton

Senior Member
Sep 26, 2011
643
1,128
50° 56' 33" 6° 57' 32"
[APP] USB Mass Storage for Ice Cream Sandwich & Jelly Bean [v.1.2.0-pre - 02.02.2012]

Hey all!

Note: This App was developed in the early days of Ice Cream Sandwich Ports. At this time none of the Ports had native USB Mass Storage support and this App was meant as a temporary workaround to use UMS nevertheless. So this App won't be interesting for you, unless the ICS or JB Port you use still doesn't natively support UMS. If that is the case, here comes help:

Update for Jelly Bean: I successfully tested the App (v1.1.4!) with the first test release of a Jelly Bean Rom for Nexus One.

Update for MTP: I probably found a way to permanent support UMS for devices that originally use MTP, but I don't have a device to test this. So, if preferably a Galaxy Nexus owner would be so kind to test a few things for me, please pm me. Thanks![/url].

USB Mass Storage for ICS (that doesn't have native UMS support (yet))
USB Mass Storage for ICS and JB (that doesn't have native UMS support (yet))

Description
The app starts automatically after booting up the device and automatically detects when the device is being connected via USB to a computer. Then a notification pops up in the notification bar and by tapping on the notification you will open a GUI to enable/disable USB Mass Storage; just/almost like the original UMS feature.​





Confirmed supported devices (JB)
  • HTC Nexus One
  • Samsung Galaxy Mini GT-S5570
  • Sony Ericsson Xperia X8

Confirmed supported devices (ICS)
  • HTC Desire
  • HTC Desire HD
  • HTC Droid Incredible
  • HTC Evo 3D
  • HTC Evo 4G
  • HTC HD2
  • HTC Nexus One
  • Huawei Sonic U8650
  • Kindle Fire
  • LG P350 Optimus Me
  • LG P500 Optimus One
  • Motorola Droid 3 (XT860)
  • Samsung Galaxy Ace (S5830)
  • Samsung Galaxy Mini GT (S5570)
  • Samsung Galaxy Note (N7000)
  • Samsung Galaxy S (I9000/I9000B)
  • Samsung Galaxy S 2 (I9100G)
  • Samsung Galaxy Gio (S5660)
  • Samsung Infuse 4G
  • Samsung Moment
  • Sony Ericsson Xperia X8
  • Sony Ericsson Xperia X10i

APK Download
For the devices listed above, the App works like a charm.
  • Latest stable version (1.1.4): Download APK (you'll probably want this one!)
  • Latest version (1.2.0-pre): Download APK
  • Older versions: see post attachemets.

A few Notes:

Sync- / Multiple Partition-Issue
If you have multiple partitions on your SD card, you might have a problem with file list syncing. When UMS is enabled and you alter files on your SD via Computer, you won't see the changes on your device (and vice-versa). The app will work nevertheless. All copied/deleted files are there/gone! It is just a sync problem. Resync and you'll see it.

Pre release version (Sync- / Multiple Partition-Fix)
Beside the stable version 1.1.4, there exists a pre-release version of 1.2.0 that fix the sync issue. Feel free use this version, but be aware of the fact that not all of the settings from the menu are working yet! At the moment, this is basically v1.1.4 with improved layout and sync fix. So please don't report bugs for the settings that doesn't work.

MTP
Another thing to note is that devices using MTP (such as the Galaxy Nexus) most probably won't be able to use UMS via the App at all. There have been reported a few suggestions to fix that, but atm those fixes doesn't work. I'm working on that, but i'm doing this in my sparetime and don't have a device that uses MTP myself, so it's hard to work on that. Anyway you can try.​


Changelog
1.2.0-pre
  • Cleaned Layout
  • Changed device map referrer from hard coded mmcblk0 to be dynamically recognized
  • Adjusted translation files.
  • Few minor other changes.
1.1.4
  • Layout changed from two buttons to one toggle button.
  • Changed device map referrer from vold/179:1 to mmcblk0
  • Adjusted translation files.
  • Few minor other changes.
v1.1.3
  • Added Multi-language support.
  • Added local language files for German, Spanish, Dutch, Swedish & Norwegian.
v1.1.2
  • Notification fixes & improvements.
v1.1.1
  • Notification fixes.
v1.1.0
  • Added auto-detection of USB connection.
  • Added notifications support.
  • Added auto-start after boot.
v1.0.3
  • Code clean up.
v1.0.2
  • Code clean up.
  • Added menu button to close the app properly.

If you have any issues, let me know.

Cheers!
 

Attachments

  • device-2011-12-12-144951.jpg
    device-2011-12-12-144951.jpg
    13.1 KB · Views: 13,659
  • device-2011-12-12-145136.jpg
    device-2011-12-12-145136.jpg
    26.8 KB · Views: 12,356
  • umstoggle-1.jpg
    umstoggle-1.jpg
    51.7 KB · Views: 13,129
  • umstoggle-2.jpg
    umstoggle-2.jpg
    49.3 KB · Views: 11,324
  • net.bexton.android.UsbMassStorageToggle-1.0.1.apk
    34.3 KB · Views: 3,120
  • net.bexton.android.UsbMassStorageToggle-1.0.2.apk
    26.9 KB · Views: 637
  • net.bexton.android.UsbMassStorageToggle-1.0.3.apk
    26.8 KB · Views: 588
  • device-2011-12-13-212054.jpg
    device-2011-12-13-212054.jpg
    19.3 KB · Views: 10,415
  • device-2011-12-13-212258.jpg
    device-2011-12-13-212258.jpg
    23.5 KB · Views: 9,140
  • device-2011-12-13-212335.jpg
    device-2011-12-13-212335.jpg
    23.5 KB · Views: 8,540
  • net.bexton.android.UsbMassStorageToggle-1.1.0.apk
    33.9 KB · Views: 574
  • net.bexton.android.UsbMassStorageToggle-1.1.1.apk
    34.1 KB · Views: 504
  • net.bexton.android.UsbMassStorageToggle-1.1.2.apk
    34.1 KB · Views: 525
  • net.bexton.android.UsbMassStorageToggle-1.1.3.apk
    37.9 KB · Views: 1,626
  • net.bexton.android.UsbMassStorageToggle-1.1.4.apk
    36.3 KB · Views: 85,657
Last edited:

dang025

Senior Member
Jan 8, 2011
127
7
can someone mirror these for me. K cant seem to successfully download it either on phone or computer.

Thanks

Sent from my Nexus One using XDA App
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
Screw the original android UMS. One thing I have always hated about UMS was that all of my sd partitions (Have 3) promps on my computer when I activate it. Only using 179:1 (Fat partition) is quite nice.

However a nice feture (If you have the time) would be a partition list to choose which to mount?
 

Bexton

Senior Member
Sep 26, 2011
643
1,128
50° 56' 33" 6° 57' 32"
Screw the original android UMS. One thing I have always hated about UMS was that all of my sd partitions (Have 3) promps on my computer when I activate it. Only using 179:1 (Fat partition) is quite nice.

However a nice feture (If you have the time) would be a partition list to choose which to mount?

Thanks. Yep, partition list is already on my to-do list. ;) But first i want to get Tethering working before going on with the options. Anyway, source is online at github, so if you like; i'm still taking pull requests. ;)
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
Thanks. Yep, partition list is already on my to-do list. ;) But first i want to get Tethering working before going on with the options.

Well Tethering would be nice :)


Anyway, source is online at github, so if you like; i'm still taking pull requests. ;)

Yes well my strong side is PHP, JavaScript and Linux Shell Scripting. Have played some with Java, but not near enough for this (Have looked at it already).
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
Hehe, mine as well. Just reading the Android documentaion carefully brought me with no Java experience to that result. And a Java developer would probably laugh about the app's code. But in the end it works, so what. ;)

Impressive, well perhaps I should read some android documentation.
 

Bexton

Senior Member
Sep 26, 2011
643
1,128
50° 56' 33" 6° 57' 32"

It is working with that rom. the problem is not the apk, but a permission problem with either the superuser.apk or the su binary itself. i fixed it by removing the superuser.apk via shell rm and flashing the signed superuser zip from chains website (http://downloads.androidsu.com/superuser/Superuser-3.0.7-efgh-signed.zip) via recovery. after that root permissions were fixed and the ums app, as well as any other root app (like titanium) worked again.
 
  • Like
Reactions: mori90

itsy

Senior Member
Apr 18, 2010
76
14
Hey, nice app, thanks for that ;)

Just a question, can you implement a checkbox (or whatever :-D) to disable the notification while the App is still running?

I know, it isn't the end of the world but I don't like my notification bar "spammed" :-D
 

Bexton

Senior Member
Sep 26, 2011
643
1,128
50° 56' 33" 6° 57' 32"
Hey, nice app, thanks for that ;)

Just a question, can you implement a checkbox (or whatever :-D) to disable the notification while the App is still running?

I know, it isn't the end of the world but I don't like my notification bar "spammed" :-D

GER: Tschuldige, dass muss leider warten. Ich hab die App ohne jegliche Java Kenntnisse geschrieben und jede Änderung bedarf längeren Nachlesens in den Referenzen und dann geht's mit Trial & Error weiter. ;) Zur Zeit will ich erst mal schauen, dass ich Tethering zum laufen bekomme, bevor ich mich den Optionen zuwende.
--------------------
ENG: Sorry, but it will take some time. I wrote the App without any Java experience and every change requires reading the Android references carefully and then trial and error. ;) At the moment my main focus is more on getting tethering working before i'm gonna implement some extra options.
 

Bexton

Senior Member
Sep 26, 2011
643
1,128
50° 56' 33" 6° 57' 32"
It's funny that i am the one who asks as i wrote this App. But actually i just did a bit of Java coding and i am far away from being a linux fs/udev/mmc/vold expert. So my question to the experts out there: Could somebody please explain me in detail what is the difference between

echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
and
echo /dev/block/vold/179:1 > /sys/devices/platform/usb_mass_storage/lun0/file

Because all i see is that both commands to the lunfile mount the sdcard as mass storage..!?

Thanks in advanced!
 
Last edited:
  • Like
Reactions: shivang2811

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
It's funny that i am the one who asks as i wrote this App. But actually i just did a bit of Java coding and i am far away from being a linux fs/udev/mmc/vold expert. So my question to the experts out there: Could somebody please explain me in detail what is the difference between

echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
and
echo /dev/block/vold/179:1 > /sys/devices/platform/usb_mass_storage/lun0/file

Because all i see is that both commands to the lunfile mount the sdcard as mass storage..!?

Thanks in advanced!

There are no difference as both device maps referrers to the same minor and major numbers (Same device). Take a look at this

If you CD to /dev/block and type "ls -la" and then CD to "/dev/block/vold" and type "ls -la" you will in both cases see the numbers "179, 1" right before the date index.
 
  • Like
Reactions: Bexton

Top Liked Posts

  • There are no posts matching your filters.
  • 132
    [APP] USB Mass Storage for Ice Cream Sandwich & Jelly Bean [v.1.2.0-pre - 02.02.2012]

    Hey all!

    Note: This App was developed in the early days of Ice Cream Sandwich Ports. At this time none of the Ports had native USB Mass Storage support and this App was meant as a temporary workaround to use UMS nevertheless. So this App won't be interesting for you, unless the ICS or JB Port you use still doesn't natively support UMS. If that is the case, here comes help:

    Update for Jelly Bean: I successfully tested the App (v1.1.4!) with the first test release of a Jelly Bean Rom for Nexus One.

    Update for MTP: I probably found a way to permanent support UMS for devices that originally use MTP, but I don't have a device to test this. So, if preferably a Galaxy Nexus owner would be so kind to test a few things for me, please pm me. Thanks![/url].

    USB Mass Storage for ICS (that doesn't have native UMS support (yet))
    USB Mass Storage for ICS and JB (that doesn't have native UMS support (yet))

    Description
    The app starts automatically after booting up the device and automatically detects when the device is being connected via USB to a computer. Then a notification pops up in the notification bar and by tapping on the notification you will open a GUI to enable/disable USB Mass Storage; just/almost like the original UMS feature.​





    Confirmed supported devices (JB)
    • HTC Nexus One
    • Samsung Galaxy Mini GT-S5570
    • Sony Ericsson Xperia X8

    Confirmed supported devices (ICS)
    • HTC Desire
    • HTC Desire HD
    • HTC Droid Incredible
    • HTC Evo 3D
    • HTC Evo 4G
    • HTC HD2
    • HTC Nexus One
    • Huawei Sonic U8650
    • Kindle Fire
    • LG P350 Optimus Me
    • LG P500 Optimus One
    • Motorola Droid 3 (XT860)
    • Samsung Galaxy Ace (S5830)
    • Samsung Galaxy Mini GT (S5570)
    • Samsung Galaxy Note (N7000)
    • Samsung Galaxy S (I9000/I9000B)
    • Samsung Galaxy S 2 (I9100G)
    • Samsung Galaxy Gio (S5660)
    • Samsung Infuse 4G
    • Samsung Moment
    • Sony Ericsson Xperia X8
    • Sony Ericsson Xperia X10i

    APK Download
    For the devices listed above, the App works like a charm.
    • Latest stable version (1.1.4): Download APK (you'll probably want this one!)
    • Latest version (1.2.0-pre): Download APK
    • Older versions: see post attachemets.

    A few Notes:

    Sync- / Multiple Partition-Issue
    If you have multiple partitions on your SD card, you might have a problem with file list syncing. When UMS is enabled and you alter files on your SD via Computer, you won't see the changes on your device (and vice-versa). The app will work nevertheless. All copied/deleted files are there/gone! It is just a sync problem. Resync and you'll see it.

    Pre release version (Sync- / Multiple Partition-Fix)
    Beside the stable version 1.1.4, there exists a pre-release version of 1.2.0 that fix the sync issue. Feel free use this version, but be aware of the fact that not all of the settings from the menu are working yet! At the moment, this is basically v1.1.4 with improved layout and sync fix. So please don't report bugs for the settings that doesn't work.

    MTP
    Another thing to note is that devices using MTP (such as the Galaxy Nexus) most probably won't be able to use UMS via the App at all. There have been reported a few suggestions to fix that, but atm those fixes doesn't work. I'm working on that, but i'm doing this in my sparetime and don't have a device that uses MTP myself, so it's hard to work on that. Anyway you can try.​


    Changelog
    1.2.0-pre
    • Cleaned Layout
    • Changed device map referrer from hard coded mmcblk0 to be dynamically recognized
    • Adjusted translation files.
    • Few minor other changes.
    1.1.4
    • Layout changed from two buttons to one toggle button.
    • Changed device map referrer from vold/179:1 to mmcblk0
    • Adjusted translation files.
    • Few minor other changes.
    v1.1.3
    • Added Multi-language support.
    • Added local language files for German, Spanish, Dutch, Swedish & Norwegian.
    v1.1.2
    • Notification fixes & improvements.
    v1.1.1
    • Notification fixes.
    v1.1.0
    • Added auto-detection of USB connection.
    • Added notifications support.
    • Added auto-start after boot.
    v1.0.3
    • Code clean up.
    v1.0.2
    • Code clean up.
    • Added menu button to close the app properly.

    If you have any issues, let me know.

    Cheers!
    5
    Hi guys,

    i'm back and i apologize for not responding sooner.
    I have finally fixed some issues with the app, it should be bugfree in regard of the app
    and its options right now. if you have feature requests, please tell me and i might look into it if it's worth imo.

    to come to the main feature not working on some devices, i think i have an idea for that
    and will implement a test soon where you i will add a logging feature which you have to send me
    so i can try to figure out how mounting works on the devices that have problems right now.
    :cowboy:

    I attached version 2.45 now (it wont help people that had problems with 2.x) since the method didnt change to mount,
    but as said, will soon try to address this...

    I will also create a new thread then so i can properly manage a list with working/not working phones and roms as bextons
    is flooded with work and hardly responding right now.
    5
    Hi guys,

    An update is available:
    I also was able to contact Bexton which received this update, too.
    Also i want to get feedback on this release. I will PM now everyone from the last
    pages who asked for help. :)

    Best Regards,
    calav3ra


    D/L Link on my Dropbox Account: https://www.dropbox.com/sh/igvrz0nzuv6hmz0/ywIHdqXgZ0

    Changelog:
    USB Mass Storage Toggle

    Version 2.4:

    - change code to mount all sd-cards found, not just one.
    - fix bug with detecting initial mount-state
    - fix bug with detecting sd-cards
    - added widget to use the usb-storage even more quickly
    - added option to vibrate (1-1000 milliseconds, 0 to deactivate)
    - added option to disable popups
    - changed notifications to be activatable, instead of sticky and non-sticky.
    - improve description of preferences
    - cleaned up current translations to be more clear and similar
    - removed time being shown on the notifications
    - removed quit-item in the menu, as it doesnt make much sense on android.

    - TODO: add all previously existing translations again (french, spanish, italian, ...), right now, only english and german are available.

    Version 2.3:
    - changed app to include either the overflow menu (modern devices with no hardware menu button) or
    the normal menu (old devices with hardware buttons)
    3
    Huge update

    Hey folks,

    I know you've been waiting for updates for some time now and I am sorry it took that long. However, thanks to the effort of XDA user calav3ra_de, I have some news for you:

    1.) A new version that comes with many bugfixes and improvements (all credits to calav3ra_de).
    2.) I made another attempt to get UMS working over MTP. If your device natively uses the MTP protocol, open the settings of the App and check "Force UMS / Suppress MTP". Now you should be able to use UMS. If not, please try to reboot and try again. Please let me (and others) know if that works.

    Here is the download link to version 2.0: http://d-h.st/2nc

    PS: The new version takes changes in the settings menu into account, unlike the old version. ;) So, if you need to adjust the mount point(s) or the lunfile path, you can do this in the settings, too.
    PPS: I will update OP as soon as I get feedback as for MTP..
    3

    About not mounting: There was a small bug, an oversight by me, which is fixed in the next version.
    But this doesn't mean unfortunately, that it will mount really on your phone. It is still unclear to us which device
    configurations exist on the different android devices.

    v 2.44
    Changelog:
    - notification icon now disappears when not connected via usb (as the default android mass-storage app does)
    - fixed bug with displaying wrong state of connection on start.
    - fixed centering of text on main UI.
    - added code to display text when not all partitions could be mounted.
    - translations reworked to fit more the default android app.
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