yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Themes and Apps] Oranav:
I was having the issues reported here with i9300 CM10 latest nightly (20121013), so I decided to find what's wrong with it.

Note: this post is a bit technical; there's a tl;dr section at the bottom.

SGS3 Easy UMS is issuing "setprop persist.sys.usb.config mass_storage,adb" in order to make Android (specifically, the Android gadget driver) go into UMS mode.

The process which listens on such events is actually init. The "init.smdk4x12.usb.rc" file defines the USB-related properties to listen at.

However, apparently the CM10 file doesn't support mass_storage. Therefore, setting sys.usb.config to mass_storage doesn't do anything.

In order to fix the problem, I've added the following line to the "on boot" section:

write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung"

And the following lines to the bottom of the file:

on property:sys.usb.config=mass_storage
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 04e8
write /sys/class/android_usb/android0/idProduct 685b
write /sys/class/android_usb/android0/functions $sys.usb.config
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state $sys.usb.config

on property:sys.usb.config=mass_storage,adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 04e8
write /sys/class/android_usb/android0/idProduct 685e
write /sys/class/android_usb/android0/functions $sys.usb.config
write /sys/class/android_usb/android0/enable 1
start adbd
setprop sys.usb.state $sys.usb.config

The problem is, you must update your initramfs in order to edit this file by yourself. This means a new boot.img, and practically "flashing a new kernel".

I've edited Siyah Kernel 1.7b6 with the updated file, and attached it to this post. It works fine for me, but I obviously TAKE NO RESPONSIBILITY WHATSOEVER.

The proper way to fix this would be submitting a patch to CM's gerrit; I'll do it later.

Another temporary hack that would work is to modify Easy SGS3 UMS so it sets the f_mass_storage inquiry_string on boot, and issues the commands under the "on property:sys.usb.config=mass_storage,adb" section every time the user clicks on "UMS mode".

tl;dr

The attached kernel is a modified Siyah Kernel v1.7b6 that should fix the problem. It does work for me. Flash it with Mobile Odin.

I TAKE NO RESPONSIBILITY for it, don't blame me if it bricks your device or starts a thermonuclear war.
[Galaxy S III Themes and Apps] adammur:
Does anyone have it working with CM10 and lean kernel?

Not sent from my toilet with a soap bar.
[Galaxy S III Themes and Apps] Oranav:
I guess you meant "clean".

I'm compiling CM10 right now from scratch (in order to prepare the patches and submit them to CM's gerrit).

Anyway, for the time being, I've attached the kernel from the latest CM10 nightly (20121014), with UMS fixed. Works for me. Again, zero responsibility - use with caution.
[Galaxy S III Themes and Apps] adammur:
Actually I was referring to leankernel, the minimalistic kernel. Without it my battery is crap, even with the cm one.

Thanks for uploading those edited kernels anyhow, wish I had the technical knowledge to make it happen on lk 1.3. But I've got a whole 2 weeks of android ownership under my belt lol,in time perhaps.

Not sent from my toilet with a soap bar.
[Galaxy S III Themes and Apps] temasek:
Thanks you.

I cherrypicked your cm commit and now this app works on my cm10 build.

Cheers!
[Galaxy S III Themes and Apps] pogi1100:
Errr, are you sure this is Siyah 1.7b6? It looks like an older version and does not have the dual boot options that I had previously. I'm talking about Stweaks: it doesn't have all the overclocking options and the dual-boot menu is gone.
[Galaxy S III Themes and Apps] bradputt:
yes, it's not the latest 1.7b6

it looks like some very old version.

no dual boot options.
[Galaxy S III Themes and Apps] Le_Matriciel:
Run perfectly with your kernel :good:
[Galaxy S III Themes and Apps] NegativeOne:
Any chance in getting this to work on internal storage too? I saw a script for it at one point I think?
[Galaxy S III Themes and Apps] Craxx:
Hy Kopfgeldjaeger

please could you make an update, that the app is working without patching kernel like Oranov suggested?

Craxx;)

Send from my S3 with Tapatalk :)
[Galaxy S III Themes and Apps] adammur:
I would love to donate like $10 if it actually worked. I mean according to the above, it wouldn't work with CM without the patch and cm is extremely widely used.

Not sent from my toilet with a soap bar.
[Galaxy S III Themes and Apps] Ouzo:
Hi Kopfgeldjaeger, has anyone asked you if this will work with the new Note, or if it could be made to work? I don't have one yet so I can't try, but nonetheless I was just wondering....
[Galaxy S III Themes and Apps] phlepper:
Car Stereo question

I've installed the application and can get it to read / write my external drive from my Mac (Mountain Lion) without a problem. However, the reason I wanted to use the app in the first place was to connect my phone to my car stereo. The stereo has a USB input that will read thumb drives (and iPods). It will not read the phone (AT&T i747). Using Easy UMS does not fix the problem.

So my question is "should it?". Does Easy UMS make the phone look like a standard USB drive? If so, any thoughts why this wouldn't work with a car stereo that has USB input? Anything I can test or debug or log to see what the problem is?

Thanks,

phlepper
[Galaxy S III Themes and Apps] adammur:
Damn that's the only reason I want it to work also.

Not sent from my toilet with a soap bar.
[Galaxy S III Themes and Apps] MohammadAG:
I tried that with my pioneer stereo and indeed, it doesn't work.

I think it's related to the kernel exporting two mass storage devices with only one being attached, and the stereo picks up the one that isn't attached.

I'm not sure but using lun1 instead of lun0 might work
[Galaxy S III Themes and Apps] laloutre:
Hi,

[OFF TOPIC]

just to say to people interested it works well on my Note2, even under MacOS.

That's great, because for now there's no suitable way to mount a Note 2 on a Mac

[/OFF TOPIC]

Kudos to the dev !
[Galaxy S III Themes and Apps] Craxx:
Hy Kopfgeldjaeger

will there come a new version? :)

But i see gokhanmoral has also fix included in Siyah Kernel, so i test today;)

Craxx;)

Send from my S3 with Tapatalk :)
[Galaxy S III Themes and Apps] gumpelstilzchen:
It is a kernel problem, and I won't mess with people's kernels in this app! But if the patch gets accepted into CM10, the bug should be fixed for all - and for the time being, some people already are using that patch.

Thanks for your work, Oranav, by the way!

Regards
[Galaxy S III Themes and Apps] manikant_009:
This application renamed my Internal storage name to "mnt/mmc/Downloaded Data". How can i rename it back to normal.

Is their any way to access both internal & external memory while using "UMS Mode"
[Galaxy S III Themes and Apps] webbyboy:
not working for N7105 LTE Note II :(
[Galaxy S III Themes and Apps] EduMonzter:
internel storage can't be accessed in ums mode, just in mtp with windows
[Galaxy S III Themes and Apps] nerys71:
"WHY"

no one seems to be able to say "WHY" this is so (internal memory MTP only) mtp is horrible truly truly horrible. almost UNUSABLE.
[Galaxy S III Themes and Apps] Rob2222:
I can.

UMS needs, that the complete volume will be made aviable to the PC.

The S3 has application data and internal memory on the same volume.

Pro: You didnt have the 1,5GB data storage / 13GB internal divide like on the SGS2. You can now have 14GB data in data storage. No more problems like full 1,5GB data, while 13GB free internal memory.

Con: You cannot mount the internal sdcard storage space to a PC via UMS anymore, cause you cannot give the PC exklusive access to the internal data storage, cause its combined with app data area and if you would do so, you would steal all android apps the access to theire own data and they would crash.

BR

Rob
[Galaxy S III Themes and Apps] The Thug:
I have recently changed over from Omega's v27.1 (Sammy) to Omega v2 (AOKP) and notwithstanding upgrading 1.5beta to 1.7, I cannot mount my external SD card.

As AOKP is a CM based rom, I would have thought it would have worked.
[Galaxy S III Themes and Apps] gumpelstilzchen:
No, it did not. Think about your recent rom updates or whatever.

No,

explanation is some posts above this.

Exactly (but MTP also works with other systems, although it's of course not great)

Read the last pages. There's a bug in CM10 that should hopefully be fixed soon.

Regards
[Galaxy S III Themes and Apps] Craxx:
For me is also working great in cna3.66 with latest siyah kernel :)

Craxx;)

Send from my S3 with Tapatalk :)
[Galaxy S III Themes and Apps] Spir4:
Loving the app, works perfectly.

One question tho: what exactly does the middle button do?

The UMS button brings the phone in UMS mode, the MTP button in MTP mode, but the mount button?

Thanks !
[Galaxy S III Themes and Apps] mdalacu:
Please, make a version for Note 2, N7100. Thank you.

EDIT: It does work on Note 2! :) How can i check from the phone if it corrupts the SD card?

You should release this app for Note 2 and Note 10.1, both are suffering from lack of USB Mass Storage capability. Also, change the name of the app to reflect this .

Thank you again.
[Galaxy S III Themes and Apps] gumpelstilzchen:
When you have removed the phone from the PC, you can mount the SD card on the phone again with that button.

Regards
[Galaxy S III Themes and Apps] Spir4:
Thought it would be something like that, but it sometimes gives the 'unable to mount card' error. Now I've read above that this is a bug, so no worries then :)
[Galaxy S III Themes and Apps] joebloggscity:
I'm usign Easy UMS and it's excellent. Been usign it for months now. Currently using v 1.6.

However, my phone was updated this morning by the phone operator to Jellybean 4.1.

Problem is that when I open Easy UMS and click "UMS Mode" i get the following message:

"Root is available, but access was not granted. Aborting"

Why is this? Does Easy UMS not work on JellyBean? Really need this to work I don't like MTP and am very much in debt to this apk.
[Galaxy S III Themes and Apps] mdalacu:
I think that you need to check SuperSu app and see if the SGS3 UMS is blacklisted or something like that, also, make shure that you have busybox installed.
[Galaxy S III Themes and Apps] joebloggscity:
Okay thx, possibly i need to root my phoen again. I'll try tonight...

thx for prompt reply...
[Galaxy S III Themes and Apps] gumpelstilzchen:
You didn't click on 'allow' in the SuperSU Window or access was automatically denied. Have a look at the SuperSU app.

Regards

Edit: ah, the question was already answered as I can see
[Galaxy S III Themes and Apps] uli68:
I don't have root access so is there any other way to get my photos onto my PS3 using USB? Damn, why it the PTP mode not working?

Someone got an idea what use is the camera mode (PTP) on SGS3?
[Galaxy S III Themes and Apps] Craxx:
Did you allow root access for easy ums?

And check if you really have root, otherwise you have to root:)

Craxx;)

Send from my S3 with Tapatalk :)
[Galaxy S III Themes and Apps] feyrerm:
I have been using this app for a few weeks now and it works. Sometimes. I have an AT&T stock rooted phone. The problem I run into is other apps using the extSdcard, so I can't put it in ums mode, and sometime when I get it to go in ums maode it just plain won't show up. Other times it will connect and then disconnect randomly. I suspect all this is other apps trying to access the card.

My question is this... and I am no developer so it may be a stupid question, but coud you mount the extSdCard somehow through cifsManager, and then UMS the cifs share? This would allow the phone to access the extSdcard in normal MTP mode while allowing UMS mode to kinda a ghoast drive through cifsmanager. It would seem, if possible to solve the whole other apps accessing the card issue. I could of course not understand how it works.

Please let me know.

Thanks!
[Galaxy S III Themes and Apps] Damien74:
Why is Busy Box required? I am using ROM Toolbox and I think those won't go well together?

Sent from my Goner Simpsung S3 - XDA dev app.
[Galaxy S III Themes and Apps] mdalacu:
I think it needs the proper mount program.
[Galaxy S III Themes and Apps] noingwhat:
I can't seem to get it working on my VZW SCH-i535 running Synergy (default Ziggy kernel).

I was able to find /sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex/file with ES explorer and when I entered into the terminal emulator "mount | sed 's/ on / /g' | grep extSdCard | cut -f 1 -d ' '" it spit out "/dev/block/vold/179:97".

Assuming all went well, I tried to update the device drivers by selecting "Portable Devices > SCHI535" but then it tries to install two more devices ("CDC Serial" and both of which "SAMSUNG_ANDROID_SCH-I535") both of which failed. After this, the MTP will automatically reconnect to my computer.

Is it possible that I am missing a step / did something wrong, or does it appear this device is unsupported?
[Galaxy S III Themes and Apps] mermaidkiller:
Really promising. Does somebody test it on the Note 2 ?

I recently purchased the n7100 and missed UMS.
[Galaxy S III Themes and Apps] mdalacu:
N7100

Yes, i did and it is working perfectly! :good:
[Galaxy S III Themes and Apps] Crushader:
I'm using Wanamlite 14 LJ7 but it doesn't work, care to share which ROM you are using?
[Galaxy S III Themes and Apps] Zisworg:
On CheckROM EvoHD v6 DLJ4: everything's working properly. Thanks a lot Kopfgeldjaeger ;)
[Galaxy S III Themes and Apps] Crushader:
Okay, it works for Note 2 but I constantly get error that com.process.media is accessing the sdcard thus cannot mout to UMS. But I kept trying until it works, take a while lol...
[Galaxy S III Themes and Apps] mccurt29:
not working at all for me on the note 2
[Galaxy S III Themes and Apps] seabhac:
Out of curiosity... has this app been moded to be useful on the us versions yet?
[Galaxy S III Themes and Apps] mdalacu:
I am on stock odexed and rooted LJ3 Germany.
[Galaxy S III Themes and Apps] mermaidkiller:
Seems that the media scanner scans unmounted media?

Did you unmount the extSdCard ?
[Galaxy S III Themes and Apps] dangerclose:
Works great on my i747. Can't seem to figure out why it renamed my SD card to USB mass storage and my ext to SD CARD in windows. Anyone know how to fix this?
[Galaxy S III Themes and Apps] bobolinko:
Mess my phone up!

I was just about to click on the donate button, and decided to check if the sd card was still working in the phone.

Well, all 64gb is GONE! I can see some of it when the card is mounted on the computer, but not when it's back in the phone.

no pix no music no nothing!

Funny thing is my let audio can play half of the songs, albeit not all in completion. some songs play half way...

movies 24 of them whoosh!

Good thing I made a bckup of my files on the card.

uninstalling and advising not to phuck with this app! very disapointing. will take 220 minutes just to copy apps back after formatting sd card and

not even sure if it's going to work.
[Galaxy S III Themes and Apps] unholygid:
I think it's because you didnt set it back to MTP.
[Galaxy S III Themes and Apps] Crushader:
No, I didnt unmount the external sd card, I had it mount the whole time, somehow it seems like media scanner kept scanning it in the background, but I manage to keep trying until when the scanning was done and it connected as UMS.

Thing is I can't get the extSdCard to mount back to the phone once I'm done with UMS, it keeps giving me error Unable to mount Sdcard[1]

So I just restart the phone when i finished =[... will keep away from it for now to wait for further development on note 2 support.
[Galaxy S III Themes and Apps] :
It work good on my SGs3 I747M. Some things I notice, at first it wouldn't go into UMS, when looking closely at the loading box Doubletwist player was interfering and I had to remove it. After to remount I removed the sd card, pressed mount and re-inserted the sd card. I rebooted just to make sure everything loaded properly.
[Galaxy S III Themes and Apps] JDMpire:
Nope, no go. Does not work at all on my Macbook Pro, OS 10.8.2

It errors out saying:

When i press "Mount Card" it gets SU then says "Cant mount card [1]"

When i press "UMS mode" it also gets SU then says "/storage/sdcard1 is being accessed by [android.process.media, android.process.media, android.process.media, Couldn't read /proc/4951/cmdline, 0] - Stop the app or try again or reboot"

if I try it a second time and then some the error message changes slightly:

"/storage/sdcard1 is being accessed by [android.process.media, android.process.media, android.process.media, 0] - Stop the app or try again or reboot"

Whats the 3 instances of "android.process.media" that keeps accessing the card?

EDIT:

I got it working only for the external SD, but I need to go into the settings > apps> "Media Storage" and force stop that. Then it will work but ONLY if I force stop media storage. Afterwards I go back into the settings pane and that process has already turned itself back on.
[Galaxy S III Themes and Apps] geovass:
It works on my Mountain Lion 10.8.2. I am using Galaxy Note II with 4.1.1
[Galaxy S III Themes and Apps] jakebriggs:
I've made these changes to cm-10-20121031-NIGHTLY-i9300, and confirmed that it still works. Download the entire cm-10-20121031-NIGHTLY-i9300 here:

http://www.mediafire.com/?9wmis03cvm9cn98
[Galaxy S III Themes and Apps] cleverizzo:
This app works with encrypted extsdcard ? When I click in MOUNT CARD shows me the error message "Could not mount card:[1]" . When I click in UMS MODE appears the messages : "extsdcard/external_sd/sdcard1 not mounted" and "Could not get path of esternal sd card (extsdcard/external_sd/sdcard1) Maybe it's unmounted?"

Any ideas?
[Galaxy S III Themes and Apps] jakebriggs:
Post the info from the problems section in the original post, the output of the greps. I get that "cannot mount card error" when I hit mount, but it seems to work anyway!
[Galaxy S III Themes and Apps] mageus:
Doesn't work for me on a VZW GS3 (SCH-I535) with JB.

I originally had stock ICS (4.0.4 10/2012 build). The scripts from the following page enabled UMS reliably:

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

Those scripts reference "/sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex/file", so I assume your app would have worked also.

I installed the latest JB 4.1 leak for VZW GS3, and your program fails with the error: "neither s3c-usbgadget module nor android_usb lun file detected" (just like VICosPhi in post #430)

The scripts from the other post would make the phone freeze. I guess you have better error checking.

Here is my current file system:

mount

/dev/block/vold/179:97 /storage/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/sys/devices/platform/s3c-usbgadget doesn't exist.

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex doesn't exist.

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file exists and appears to be an empty file.

I presume .../lun/file is the correct path, but I'm not sure. Should I try using this path with the above referenced scripts? Think it would be safe to try?
[Galaxy S III Themes and Apps] noingwhat:
How exactly does the mass storage on these devices work? I would love to be able to boot my PC off the extSD of my phone, and I have been able to access it as mass storage when my computer is on, but my computer won't boot from it. It has no problems with a flash drive though. I thought mass storage was supposed to act just like a flash drive, correct? So why is it that my computer won't recognize my phone as a flash drive pre-boot?
[Galaxy S III Themes and Apps] stemer:
Confirmed working on international SGS3, WanamLite 4.2.1 and Siyah 1.7rc1 kernel but:

- phone must have energy saving mode turned off (cause it disconnects after few minutes and to connect it again you have to reboot phone)

- I think it's not necessary, but "Stay awake" in "Developer options" should be turned on.

I have used Banshee (more than 500 songs with conversion) on Gentoo Linux to sync my music and everything is ok. Also some file transfers were ok.
[Galaxy S III Themes and Apps] DPSK:
why the F is the UMS function removed in the latest android versions?!

can anyone explain to me?
[Galaxy S III Themes and Apps] nerys71:
cause someone at google is a moron. probably the same moron who would release a 4mp display tablet with only 16gb and no expandable memory.
[Galaxy S III Themes and Apps] Rob2222:
See this:
[Galaxy S III Themes and Apps] Jarmezrocks:
Hey Mr OP (wow your username is crazy!)

I have modified your app to now work for the Galaxy S3 LTE /4G (GT-I9305) variants of the Galaxy S3.

Would you like me to send you this apk file for you to post here? And would you mind if I post this in the i9305 general section for our users to use and try?

I went through your coding and I realised that the kernel was different so the communication was not getting through to

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex/file

LTE versions have

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun0/file

and

/sys/devices/virtual/android_usb/android0/f_mass_storage/lun1/file

Which I assume the latter is external SD?

We also don't have

/system/sd/

for you to write the temporary file.

So I corrected this to redirect to

/storage/sdcard0

;)

I have updated the icon for the app to have a little LTE symbol on the bottom. Other than that I think everything is the same? All donate URLs and credits are otherwise the same also. I only tweaked what hard work you guys have already done:) Thankyou btw.

Please PM for the apk, I won't just post it up here. You may also want to sign it with your own signature for GooglePlay or something?

EDIT: This is on stock rooted (CF-Root) GS3-LTE i9305 with stock kernel etc.

James

PS: Can we partition our internal SD card and then tell the EasyUMS to mount a partition on internal SD?

PPS: Maybe getting tasker to fire up EasyUMS when it detects the USB cable is plugged in?
[Galaxy S III Themes and Apps] CraigCampbell:
Without rooting?

I had a bad experience last time i rooted my phone. any way of building an app that doesn't require rooting one's phone?
[Galaxy S III Themes and Apps] Jarmezrocks:
Not a chance considering how samsung is locking things down these days. Sorry bud I wouldn't count on it
[Galaxy S III Themes and Apps] mageus:
I have a US Verizon SGS3 (I535). On stock ICS I used a script which referenced "/sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex/file" and worked. I upgraded to the leaked VZW JB ROM. Now, .../lun_ex doesn't exist anymore. However, neither does .../lun0 or .../lun1. I just have "/sys/devices/virtual/android_usb/android0/f_mass_storage/lun", which is a symlink to "/sys/devices/platform/msm_hsusb/gadget/lun0" However, there is no ../lun1 directory.

I'm guessing my lun0 directory is internal storage. So, where to find the external storage reference?

I have the same reference.