yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Themes and Apps] Jarmezrocks:
Thanks another user just PM'd me asking me if I can send them an update for their device....same as your self. He had given me the second reference that you had listed, and I was after the one that had the reference for f_mass_storage which thankfully you have provided.

Now I still have not heard a peep back from the OP (I even sent a PM just incase they don't watch this thread anymore) to ask for permission to make these specific modifications to his files? So I am not sure what to do about re-uploading them here prior to hearing back from him?

It's kinda important for guys who have experienced a bad flash, still have root but something funny like systemUI or phone apk keeps crashing and disallowing MTP to connect? This is what happened to me yesterday or day before that made me determined to get this solution working for my device. I spent more time digging through cupboards trying to locate a sdcard expander that was in working condition lol. I had one....but it failed....like then and there!:silly: Hopefully the OP will understand that this not about status and cred (all cred to the original devs actually) but more as a necessity to help you guys have a working solution?

Do you have a recovery with a working mounting point for any SDcard? We don't....i9305 recovery can't mount anything except the file system/cache/data/dalvik and so in in recovery all storage is a NO-GO at the moment...which sux:(

I will send you and this other guy a PM with attachment to test for me if you like? Seeming I cant test this one my self.

Thanks for your info. It helps.

---------- Post added at 04:44 PM ---------- Previous post was at 04:40 PM ----------

Oh and my educated guess is that

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun = internal SDcard

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun0 = external SDcard

Just as a guess? Looking at the numeric coordination of just about most Samsung devices I have seen before this?? I could be wrong? But I have yet to see an internal SD that has a bigger number than external SD? Only things where people have hacked and done symlinks and swapped things around would I see that there might be a difference????

Someone more qualified can obviously correct me here. I'm flying by the seat of my pants right now. Feel confident? Wana be my guinea pig?:p

---------- Post added at 04:52 PM ---------- Previous post was at 04:44 PM ----------

Hey man,

The guy I was speaking to via PM just contacted me. Beat me to it....he was already making attempts at it before great to hear that there is another device to add to the list.

Congrats to PepDawg on his first modification. Never decompiled an apk before. Good on him
[Galaxy S III Themes and Apps] hykhleif:
plz port this mod for galaxy note 2
[Galaxy S III Themes and Apps] gumpelstilzchen:
Added an option for going back to MTP mode. Please tell me if it works for you :o
[Galaxy S III Themes and Apps] mortuus82:
Cant you access the internal memory on windows or? i dont have an SD card yet and connecting usb to windows only gives me scanner and photo options.. where is mass storage? :confused:
[Galaxy S III Themes and Apps] derfo:
Many thanks for this app! 5 stars...
[Galaxy S III Themes and Apps] DiaboluZ:
Both working here :D
[Galaxy S III Themes and Apps] tanjiajun_34:
No way for internal sdcard as well? :(
[Galaxy S III Themes and Apps] cba1986:
Not working Siyah kernel. It only shows two unmounted drives.
[Galaxy S III Themes and Apps] Gadgetz:
Good work, can't wait to try this out
[Galaxy S III Themes and Apps] Zanr Zij:
Same here! Omega v5.0, Siyah kernel v1.01, Win 7 x64, latest SS driver. Also fail to change back MTP mode :)

Sent from my GT-I9300
[Galaxy S III Themes and Apps] wirawan1234:
Hi, it doesn't work for me

I'm using Omega 5.1, Win 7 64 bit

It only show 2 unmounted drives in UMS, and i can't go back to MTP...

Edit: Can go back to MTP after changing it manually as a media device
[Galaxy S III Themes and Apps] cheesywad:
nor me... Omega, various kernels, win7 x64

good old x64 w7...

:(
[Galaxy S III Themes and Apps] blackbird89:
Man, life saver, thank you very much sir!
[Galaxy S III Themes and Apps] hurray:
I am now on Omega 5.1 (going back to the original Kernel to see if my issues comes from the delivered SiyahKernel).

I can access the external sd-card but the internal sd-card are shown as an empty drive.

Going back to MPT and activate UMS after does not solve this issue.
[Galaxy S III Themes and Apps] gumpelstilzchen:
You cannot access the internal card with this method, so this seems to work for you now.

Can all others who can't get it to work confirm that they use a non-stock kernel?
[Galaxy S III Themes and Apps] shaft77:
Two suggestions things to make it easier to ensure that one has the latest version:

That the thread title contains the app name, i.e. "SGS3 Easy UMS"?

That the app contains a link to this thread.
[Galaxy S III Themes and Apps] d4fseeker:
Nice seeing someone build a user interface around the low-level bash-voodoo :D

After some time of usage and experimentation, I've come to the conclusion that the filesystem takes too much damage from being mounted in 2 different locations which might cause data loss, corruption and other issues on concurrent or cached writes (especially on the filesystem index).

So I recommend unmounting the filesystem for the phone before using it externally.

This brings the commands to:

One-Time preparation

setprop persist.sys.usb.config mass_storage,adb

To revert to MTP mode

setprop persist.sys.usb.config mtp,adb

Mount SDcard (Unmounting might fail when SDcard is in use, so don't just assume it works!)

umount /mnt/extSdCard
echo /dev/block/vold/179:17 > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file

Unmount from computer (Warning: as usual 'eject' on computer first)

echo "" > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
vold

This will make it no longer possible to use the contents on the external SD card when it is mounted on the computer, the rest of the phone (including 99% of your apps) will still work.
[Galaxy S III Themes and Apps] hurray:
I think I have to better explain what I see :)

- the external sd-card (under /mnt/extSdCard) is mounted properly and I can access it.

- the internal sd-card (under /mnt/sdcard) is only shown as an empty drive and I can't access it.

I tried now different kernels (last one is SiyahKernel 1.1 ) and I tried to install the USB drivers again but with no success. => every time I see 2 drives. One is empty and one is the external sd. If I remove the external sd I see 2 empty drives. :D

edit: I think I tried too much for this evening. Now all 2 drives shown alway empty. :( looking for tomorrow :D
[Galaxy S III Themes and Apps] scandiun:
Thank you so much
[Galaxy S III Themes and Apps] SlimJ87D:
Reporting in. I have a 64GB SanDisk formatted as a exFat and it seems to not work with this app. I formatted it to Fat32 and it still does not work with this app.

My Kingston 4GB worked as a Fat32 with this application no problem.

Is there a possibility that this program has a disk size limitation?
[Galaxy S III Themes and Apps] d4fseeker:
The program only runs a few system commands which in turn map the raw filesystem(!) as a drive to your computer.

Try running the commands manually on the shell to check if any issues occur, please use this description:

http://xdaforums.com/showpost.php?p=27282116&postcount=58
[Galaxy S III Themes and Apps] SlimJ87D:
So you think this might get the 64GB SD Card to work?
[Galaxy S III Themes and Apps] mdalacu:
But it does work for N7100, i use it every day. But i hope that the developer will republish the app with a more generic name.
[Galaxy S III Themes and Apps] DanKicker:
hum??

Mdalacu, how did you make it worked, I'm using a PC, I've installed the apk and the busybox app on the phone... what's the next step?
[Galaxy S III Themes and Apps] mdalacu:
So, it is working only for exernal SD Card. First, start up the app and press UMS (if you get an error that the card is in use then wait a few secconds and try again, also you can try to kill the gallery process), then connect the phone to the PC. Do your stuff with the files and when you are finished, from the pc, safely remove usb sotrage. From the phone now, press mount and a few seconds later, press mts. Now you can disconect the phone from the pc and close the app.
[Galaxy S III Themes and Apps] DanKicker:
When I click UMS or any other option, it just pops up play store to download busy box, even if it's already installed.
[Galaxy S III Themes and Apps] vadda:
After installed BusyBox from Market, you need to start the installation step of BusyBox and choose Normal install.
[Galaxy S III Themes and Apps] DanKicker:
I'll be honest and look like a dink... but I don't get it.
[Galaxy S III Themes and Apps] Zanr Zij:
Confirmed worked on Note 2 N7100!

Sent from my GT-N7100
[Galaxy S III Themes and Apps] kipghost:
Got this same error and couldn't find a solution posted.

But I was able to get UMS working with T-mobile S3 using this method written for Verizon S3:

http://xdaforums.com/showthread.php?t=1785243
[Galaxy S III Themes and Apps] deezid:
Works fine on my Note N7100, too :)
[Galaxy S III Themes and Apps] mageus:
Jarmezrocks,

Just to clarify some things you've said:

- So you decompiled the OPs program and was able to rewrite it? Code must be modular or interpreted to be that easy. I know nothing of android programming.

- What were you talking about recovery and the SD mount point? I used TWRP to flash a ROM, which was stored on the SD card (I535) . How else would you do it? Keep the ROM file on the internal SDCARD partition?

- I don't have 2 storage references, only 1 -

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun

which symlinks to

/sys/devices/platform/msm_hsusb/gadget/lun0

I dont have separate lun and lun0 directories. So how do I know if this directory references internal or external storage?

- I never got a PM with the file. I'd be glad to try it out, as long as you've got error checking to make sure it doesn't hose anything.

- There are so many references to the UMS code that are discongruous, the 3 that the OP lists and this one

http://xdaforums.com/showthread.php?t=1785243

I'm sure that, aside from error checking, the relevant terminal commands must be fairly simple. Can someone post the main terminal commands needed? At this point I'm presuming the above link above has the sufficient commands.
[Galaxy S III Themes and Apps] mcbyte_it:
Wow, this is great, it works with my:

CM10 daily (20121110), installed as 2nd ROM with Siyah kernel v1.7rc2.
[Galaxy S III Themes and Apps] cruelink:
Those who made this app are awesome

Hi all, i had the same problem with connectivity, my pc just popped up some notice that the id of my device was missing, my device manager has no problem detecting the device, it has proper connection, only the ums/mtp or storage device was not properly connecting, i dont have this problem before, i just had this when i copied some files and i didnt eject the connection from the usb of my pc. it's not a very usual problem and i dont think its the only cause but i just had it one day. then i came upon this site and found out about this app. i had it downloaded, installed and then i used it. the first time i used it, i picked on ums button. it didnt started all the way, my pc then installed some drivers it finished but has the same problem, it didnt solved the problem right away, then after all that i selected the last button, (The MTP) then it didnt started right away, again it installed some drivers it finished, it didnt show any signs this time if it was resolved or not. so i quit the utility, then i proceed to my usual way of connecting my samsung galaxy s3, i disconnected first then reconnected. voila, it's like it didnt had the problem from the first time. but i think the app has something to do with the connectivity being fixed. so i can say is the credit goes all to the app. Thank you..

by the way my samsung galaxy s3 has a model number of E210s.

thanks and more power developing and helping others like me.
[Galaxy S III Themes and Apps] PepDawg:
Hey mageus, I have PM'd you the version of this APK that should work with your phone (as it is the same phone as mine and I was experiencing the same issues you were). In reference to what you were asking Jarmezrocks, there are only very minimal changes made to the apk. It is in essence exactly the same as the one posted on the front page, but with a few directory changes made to match up to where a certain file (named file) is stored on your phone (also a directory location in which a temporary file needs to be created). Everything else, including error checking, is the same as always. Hopefully this clears some things up.

If anyone else wants my modified version of the apk (with Jarmezrocks' SGS3 Easy UMS LTE icon included ;)) PM me and I will send it to you.
[Galaxy S III Themes and Apps] mageus:
I tried it but it has strange behavior. Clicking UMS appears to work. However, when I mount it in linux, I can see all the directories in the root of the card, but not all of the sub-nested files or directories. I can see some files and folders, but not all. There doesn't seem to be a pattern as to the file type, location of the visible directories, depth of nesting, etc. I thought there might be a delay in loading the file/directory listing, like MTP, so I waited a few minutes but it didn't help.

I ejected the volume, and clicked 'Mount'. I got an error saying it could not be mounted. The notification panel then said 'media ejected' but then said 'preparing SD card'. I clicked 'MTP' and was able to see the directory in ES Explorer, but only under the Storage directory, not in root.

Can you send me the terminal commands you used or changed? I'm running CleanROM 4.5, so I may have a different directory structure than you.
[Galaxy S III Themes and Apps] :
Try using a Genuine micro usb cable and then directly connect it with no usb hubs or anything. Try the genuine usb cable and it usually works over none genuine micro usb cables. So try more than 1 cable and make sure they are directly connected with no hubs or extension cables. I had the exact same issue and I switched my genuine cable and directly connected and it worked right away. Before the drives would show up in grey and wouldn't actually work like what you and a few other people are having issues with.

***Transfer Speeds***

Speeds seem to be pretty darn slow compared to when I had cm7 on my atrix over usb mass storage. I'm getting 5MB/s on my 64GB Class 10 UHS-1 card where I get 12-15MB/s on cm7 mass storage on my atrix...

***Internal Storage on mass storage***

So I guess internal storage in mass storage isn't possible either?
[Galaxy S III Themes and Apps] markjo:
Agreed, speed is almost useless for me... currently waiting 21 minutes to transfer a file just 85 MB. What?
[Galaxy S III Themes and Apps] nesty9595:
Works perfectly with my SGN II rooted Rom Omega V5.0

Thinks.
[Galaxy S III Themes and Apps] djdig:
I am using a stock Sprint Galaxy S3 L710, phone is rooted, busybox, all the normal rooted apps installed, no custom roms.

I used Gscript to make this work:

echo 0 > /sys/devices/virtual/android_usb/android0/enable

umount /mnt/extSdCard/

echo "mass_storage,adb" > /sys/class/android_usb/android0/functions

echo "/dev/block/vold/179:97" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file

echo 1 > /sys/devices/virtual/android_usb/android0/enable

But once it comes on, it shortly fails after (phone locks up after 15 seconds or so, then have to reboot). I have noticed that in the the script I had to change the /lun extension to just /lun/file for it to work. Any help to get this to work would be appreciated.
[Galaxy S III Themes and Apps] djdig:
Just posting my fix to my previous post after playing around with it for so long.

Sprint Galaxy S3 - SPH-L710 (rooted, stock rom)

Android Version: 4.1.1

Used Rom Toolbox and loaded these 2 scripts.

Mass Storage.sh

echo 0 > /sys/devices/virtual/android_usb/android0/enable

umount /mnt/extSdCard/

echo "mass_storage,adb" > /sys/class/android_usb/android0/functions

echo "/dev/block/vold/179:97" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file

echo 1 > /sys/devices/virtual/android_usb/android0/enable

MTP.sh

echo "" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file

echo 0 > /sys/devices/virtual/android_usb/android0/enable

echo "mtp,acm,adb" > /sys/class/android_usb/android0/functions

echo 1 > /sys/devices/virtual/android_usb/android0/enable

vold

Can run the scripts from toolbox and no crashes now, I think it had something to do with Gscript lite.
[Galaxy S III Themes and Apps] adammur:
Just an fyi, cm10 latest nightly has ums mode working perfectly and easily on my 747m.

Sent from the future in a tie-fighter
[Galaxy S III Themes and Apps] Jarmezrocks:
I will remove this now. The OP has updated his OP :D

Thanks
[Galaxy S III Themes and Apps] bumrocky:
Hi. I'm using the T-Mobile SGH-T999 on rooted Stock Jellybean 4.1.1.

I get the error "Neither s3c-usbgadget module nor android_usb lun fule detected. Contact your kernel developer."

Are there any scripts I can try to run through Terminal Emulator or GScript?

I had a Script I was using earlier on ICS, but with the Jellybean 4.1 update, the scripts stopped working, too.

I need UMS to allow it to work with my radio in my car. Otherwise it shows up as an "N/A" device.

Any help is appreciated!!!
[Galaxy S III Themes and Apps] gumpelstilzchen:
Sorry that I have not read the messages you sent me in the last weeks; I was pretty busy with university stuff and haven't noticed any email notifications. Anyway - I have skimmed through the last pages and saw the talk about the decompiled and modified apk (no problem, if there are the credits to the guys involved with this method/app).

The next version now can detect an additional lun file. These are the three options:

/sys/devices/platform/s3c-usbgadget/gadget/lun0/file
/sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex/file
/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file

The last one is the new one; is this right for the I9305? I sadly have no means to test it, so here's the new version (will update the OP if it works):

http://dl.dropbox.com/u/22760184/android/sgs3-easy-ums/SGS3-Easy-UMS-v1.8.apk

Btw: Is this the right lun file for the external sd card? Are the others I should add?

Does the app now generally work for Note 2 users?

Regards
[Galaxy S III Themes and Apps] :
I did a full disk check checking sectors and everything on my 64gb stick it took forever but when it finished my speeds were back to normal and they got better. Now I transfer at up to 20MB/s! compared to 5MB/s on files. I'm on ntfs and using the paragon on the market and this app and all is well!
[Galaxy S III Themes and Apps] Jarmezrocks:
Note 2? I am not sure. I have heard that the note2 shares a very similar kernel to i9305, so I guess you will have to contact someone for testing and/or post in their area and find out?

James
[Galaxy S III Themes and Apps] sco005:
Galaxy Note 2 looked not working
[Galaxy S III Themes and Apps] dabuck:
Working on the AT&T Note 2

Working on the below with no problems:

AT&T Note 2 (SGH-I317) running I317UCALJ2

Stock kernel (3.0.31-215287 se.infra@SEP-91 #1 SMP PREEMPT Thu Oct 4 16:14:05 KST 2012)

Rooted with CF-Auto-root

Installed busybox v1.20.2-Stericson using smart install

Copying 20gb of data (@ ~16 MB/s) from my external sd to my computer as I type this.
[Galaxy S III Themes and Apps] geovass:
Works great on Galaxy Note II.
[Galaxy S III Themes and Apps] mageus:
Kopfgeldjaeger,

Your 1.8 successfully enables UMS on the phone side without further errors. When I mount the volume, I can see all files and folders in the root directory. However, many of the subdirectories and nested files do not show up. It is completely random. Some folders are fully populated. Some sub-folders populate, but I can't see files inside them. Some root folders do not have any daughter files/folders listed.

As a sanity check, I can see all folders/files from ES Explorer, and also if I remove the micro-SD card and mount it directly to my computer.

I have a VZW I535 with CleanROM 4.5 (JellyBean).
[Galaxy S III Themes and Apps] brolee93:
Can you add in v1.9 one option ;

when i plugg usb cable it is open your UMS apk please ?
[Galaxy S III Themes and Apps] KuliX:
Just to confirm:

Works great on GT-I9305.

Copied a 3.2 gb file from my Linux Laptop with a transfer speed > 30 mb/s to a sandisk 32gb, class 10 sdcard

THANKS
[Galaxy S III Themes and Apps] aZooZa:
Thanks to developer. Works great on my Mac (Lion) and S3. Donation paid in Play Store. Kudos!
[Galaxy S III Themes and Apps] Zanr Zij:
v1.7 and v1.8 work well on my Note 2 :)

Sent from my GT-N7100
[Galaxy S III Themes and Apps] dweber81:
Spring Galaxy S3 L710 Jelly bean

So I have a Sprint Galaxy S3 (L710) model and I have 1.8 installed. I maybe just a noobie but I click the middle button first to load my external USB card right? When I do so it says it can't find the USB card. Then it goes back and mounts. Am I supposed to do something with the first button first? Basically, the goal of me using this app is to be able to play music through my USB on my car stereo but at this time because of the new connection type my radio doesn't recognize the USB like it did when I had the Epic 4g. Can anybody help me? Thank in advance.
[Galaxy S III Themes and Apps] sputnik99:
1.8 is working fine on my Galsaxy S3 with ELK4 4.1.2 Stock ROM
[Galaxy S III Themes and Apps] brunodu91:
Could you explain to me like you make to run this apk in this rom plz??

i had to install it but it doesn't run

thx in advance
[Galaxy S III Themes and Apps] gdandrea97:
It works on P3310 ;) Thx
[Galaxy S III Themes and Apps] sunglint:
works on T-Mobile Gnote2 (SGH-T889 running Jedi-X ROM)

This worked very nicely on a T-Mobile GNote2 (SGH-T889) running V1 of the Jedi-X rom (to get Multiview.)

A note, I tried it, saw two devices come up on my CPU (WinXp), one the external SD card (exFat 64G) and another device that was innacessable.

I then "safely removed" the devices, remounted the SD card (takes a couple minutes to do disk check) and checked with ES Explorer to see that it remounted good. I then went to redo the USM mount and got an error that popped up about apps still using the card. I long-pressed the home key, clicked task manager (the pie chart on the bottom) and went to the RAM tab and found this option to kill all apps:

this cleared out all the running stuff and let me remount, copied things back and forth, etc.

Like "Stay Awake" this is a great little app that returns functionality that either was or should be on these ROMs.
[Galaxy S III Themes and Apps] link1227:
I'm having a problem, it connects to the computer, but it comes up as a cd drive. I can't copy things to it. Any help?
[Galaxy S III Themes and Apps] djdig:
This is my problem If I remove the card and put it in a SD reader it comes us as removable disk with r/w access and works as mass storage. As soon as I put it in the phone (sdcard) and run the script it shows up as cd drive and it is read only.

Is there a fix for this so it shows up as a removable disk and not a cd drive?
[Galaxy S III Themes and Apps] djdig:
I noticed in the init.qcom.usb.sh file that it has "support for exposing lun0 as cdrom in mass storage". Could this be part of the reason its going to read only (cd drive)?

Have the 10 user post limit, but I put a screenshot in the attachments.
[Galaxy S III Themes and Apps] IIMAVII:
Works perfect on my Laptop but sadly doesn't work on my Alpine CDA-II7Ri car stereo which is what I really wanted it for.
[Galaxy S III Themes and Apps] djdig:
When you plug it into your computer as UMS, does it show up as a cd drive, removable disk, etc..?
[Galaxy S III Themes and Apps] IIMAVII:
It shows up on my PC as 'Removable Disk (G:)' and 'Removable Disc (H:)' though only (G:) is accessible. But does not show up at all on my car stereo?