FORUMS

[Q]Kitkat and USB mass storage mode

265 posts
Thanks Meter: 13
 
Post Reply Email Thread
25th April 2015, 05:21 PM |#61  
Junior Member
Thanks Meter: 0
 
More
Hi, how can I get the path to know which number is correct? (179:25 in your case).
I have an internal memory.
Thanks.

Quote:
Originally Posted by festival81

Thanks, you're a genius.
Works on galaxy light.

179:25
*/s3c-hsotg/gadget/lun0

17th May 2015, 10:18 AM |#62  
GokulNC's Avatar
Senior Member
Flag Chennai
Thanks Meter: 1,421
 
Donate to Me
More
Quote:
Originally Posted by jjdoctor

I have scripts that can enable it on KK. Check the attachment. It has 2 scripts. Copy them to ur phone and use Script Manager (SManager) to run it under Root, One to enable UMS and other to disable it.

I have made shortcuts of the scripts from SManager on my Home page so that I can press one to enable and other to disable it. have fun...

Can you please explain me how the script logically works.

I need this because DVDs, TVs and other phone's OTG don't recognize MTP protocol for File Transfer.
USB Mass Storage is the only way in these cases.

I own a different phone (not S4), so I want to know how to make a script for my phone.
Thanks
17th May 2015, 12:08 PM |#63  
manu8586's Avatar
Junior Member
Flag Poitiers
Thanks Meter: 1
 
More
Hi,
Didn't get any problem with USB mass storage on my S4. I just use Paragon NTFS&HFS+ or Total Commander for NTFS drives
27th May 2015, 04:43 PM |#64  
Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by dbotev

This worked for me:
Mass Storage Enable Routine for the External SD Cad on Samsung Galxy S3 I9305 with KitKat Android 4.4.4 Build KTU84P.I9305xxufnl1
1. Root the phone!
2. Update the SU Libraries (SUperSu on PlayStore)!
3. Install Mass Storage Mode Note3*ROOT (PlayStore)!
4. Install SManager (Script Manager , PlayStore)!
5. Create folder KitKatUMS somewhere on the internal SD card!
6. Place the scripts from the ZIP File into the KitKatUMS Folder!
Here is the text of the Enable Script (File Name “Mass Storage Mode”:
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:17 > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
7. Open the Script File “Mass Storage Mode” with SManager
8. Select "Su" (green skull and crossbones icon), "Boot" (cogwheel icon), and "Bg" (& icon). (Note:Selecting "Boot" will ensure that the script enabling UMS mode is automatically run each time the phone starts up )
9. Select "Save" and "Run"
10. Open the Enabler (Install Mass Storage Mode Note3*ROOT (PlayStore)
11. Select MSM Mode
If the Solution does not work with your phone, try folowing:
- Solution 2: The Path “…*/s3c-usbgadget/gadget/lun0/file” is not correct. Go to /sys/devices/platform/ using File Explorer and try to findout the corect driver path
- Solution 3: “179:17” is not the correct parameter... Open the mounted-devices-list (<root>/proc/mount) with text editor and look for the access parameter of your SD card.

For instance look for similar text: “/dev/block/vold/179:17 /mnt/media_rw/extsdCard vfat

Usually “179:17” or “s3c-usbgadget” are to be replaced with the proper values.
JJdoctor used in the primary script (Post #2) msm_hsusb instead s3c-usbgadget
Corect the script file with the proper text and try again!

All this is on your own risk!

Hello Samsung friends I don't have an S4, I have a Find7a. How can I modify this script to my phone? As it is now, it doesn't work, it says:
can't create /sys/devices/platform/msm_hsusb/gadget/lun0/file: No such file or directory
13th June 2015, 10:47 PM |#65  
Member
Flag Victoria, BC
Thanks Meter: 5
 
More
your script worked a treat, thanks!!!
20th August 2015, 07:49 PM |#66  
Senior Member
Flag Albany
Thanks Meter: 4
 
More
Hey there, everyone. I have a Verizon Galaxy s5 and the script that was provided didn't work as the directory was wrong. I would modify the script to have the correct one, but do not know what to change the script to. Can someone help? My S5 is running kitKat 4.4.2. I downgraded from lollypop in order to root.
6th January 2016, 01:55 PM |#67  
Junior Member
Thanks Meter: 0
 
More
Lenovo s860
For Lenovo s860

setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:8 > /sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun1/file
26th March 2016, 07:07 PM |#68  
Junior Member
Thanks Meter: 2
 
More
Tried hard for a few hours now on
Samsung GT-I9195I aka S4 Mini Plus aka S4 Mini Value Edition aka S4 Mini VE
(this is the S4 Mini with the quadcore CPU) with Stock Android 4.4.4

No App worked, but

setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:65 > /sys/devices/platform/msm_hsusb/gadget/lun1/file

did the trick for me.

Difference ist 179:65 and lun1 (not lun0)

It also mounts an additional CD-Rom drive but there is no access (and i dont need it because the other USB drive works fine for Read and Write)

Thank you all very much. Great Forum.
The Following User Says Thank You to b90210 For This Useful Post: [ View ] Gift b90210 Ad-Free
26th March 2016, 08:33 PM |#69  
Senior Member
Flag Wentworth-Nord
Thanks Meter: 202
 
More
Thumbs up
Quote:
Originally Posted by b90210

Tried hard for a few hours now on
Samsung GT-I9195I aka S4 Mini Plus aka S4 Mini Value Edition aka S4 Mini VE
(this is the S4 Mini with the quadcore CPU) with Stock Android 4.4.4

No App worked, but

setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:65 > /sys/devices/platform/msm_hsusb/gadget/lun1/file

did the trick for me.

Difference ist 179:65 and lun1 (not lun0)

It also mounts an additional CD-Rom drive but there is no access (and i dont need it because the other USB drive works fine for Read and Write)

Thank you all very much. Great Forum.

Nice - the CD-ROM thing is pretty much a side effect of gaining access, I got the same effect on my Note 2 connecting to the PC (although it is running 4.1.2). The CD-ROM is essentially the internal memory that you can't access (although there are ways to access it as well, but that is way more flaky and risky). The most important thing is you finally got full ownership of YOUR SD Card
2nd April 2016, 10:26 AM |#70  
BigJim.T32's Avatar
Member
Thanks Meter: 20
 
More
Quote:
Originally Posted by ramsdaro

A little for your information everyone

I installed the cyanogen mod 12 which claimed to have usb mass storage enabled on it.
It does and this works perfectly and I am very pleased with the performance. Just a simple option when you connect the device to change to usb storage.

http://forum.xda-developers.com/gala...od-12-t2943934

Bit of a quote-resurrection I confess, but could you elaborate please?

I'm running CM12.1, and have been trying for weeks to get true UMS (usb mass storage) to work, like it did back on my blade & Galaxy S2....
I've searched out apps and mods to enable it, and so far, no joy.

For me, CM12.1 "seems" to offer UMS - When I plug the phone in to my PC via usb cable and it mounts via MTP, I can then navigate to Storage Settings, and from there access a menu that gives the options for MPT, Camera, and UMS.
However, when I enable the UMS option, I can't actually read or write to the SD card in windows (using Win-7), so it's like the option is there, but disabled...
I see what I would expect (namely, the phone storage disappears from Windows Explorer, and the SD card appears as a flash drive), but when you navigate to the "flash drive", it appears as an empty drive with no data on it.

If you'd be so kind, would you explain in excruciating detail exactly what you did to enable true UMS on the S4 using CM12/12.1?

Many thanks!
2nd April 2016, 12:57 PM |#71  
GokulNC's Avatar
Senior Member
Flag Chennai
Thanks Meter: 1,421
 
Donate to Me
More
Quote:
Originally Posted by BigJim.T32

Bit of a quote-resurrection I confess, but could you elaborate please?

I'm running CM12.1, and have been trying for weeks to get true UMS (usb mass storage) to work, like it did back on my blade & Galaxy S2....
I've searched out apps and mods to enable it, and so far, no joy.

For me, CM12.1 "seems" to offer UMS - When I plug the phone in to my PC via usb cable and it mounts via MTP, I can then navigate to Storage Settings, and from there access a menu that gives the options for MPT, Camera, and UMS.
However, when I enable the UMS option, I can't actually read or write to the SD card in windows (using Win-7), so it's like the option is there, but disabled...
I see what I would expect (namely, the phone storage disappears from Windows Explorer, and the SD card appears as a flash drive), but when you navigate to the "flash drive", it appears as an empty drive with no data on it.

If you'd be so kind, would you explain in excruciating detail exactly what you did to enable true UMS on the S4 using CM12/12.1?

Check if this app helps:
http://forum.xda-developers.com/andr...-beta-t3240097
The Following User Says Thank You to GokulNC For This Useful Post: [ View ] Gift GokulNC Ad-Free
Post Reply Subscribe to Thread

Tags
external sd card, kitkat, root, samsung s4, usb mass storage

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes