[Q]Kitkat and USB mass storage mode

Cavey.co.uk

Senior Member
Jun 25, 2006
266
13
18
www.cavey.co.uk
So I used a HTC One X for two years and I used it a lot as a Dropbox synced external USB mass storage device, so am kinda interested in getting my S4 doing the same thing. Pretty much out of the box I left it updating and it's now a shiny S4 running 4.4.2.

Sadly, after the update it seems that it is somewhat crippled.

Apparently, the thing to use is USB mass storage enabler, for which it needs root. So I rooted using Autoroot (and triggered Knox 0x1) and installed Busybox, which is all working well. I also found that apps cant write to the SD Card, so I fixed that too....

However, all the different ways I have tried the USB mass storage app, the best I can get is an empty USB drive.

I've trawled through a series of other threads and blogs, but they all seem to recommend using the same applications and techniques, which seems not to be working for me.

Any other suggestions greatly received.
 

jjdoctor

Inactive Recognized Developer
May 3, 2011
2,730
4,165
0
Rawalpindi
So I used a HTC One X for two years and I used it a lot as a Dropbox synced external USB mass storage device, so am kinda interested in getting my S4 doing the same thing. Pretty much out of the box I left it updating and it's now a shiny S4 running 4.4.2.

Sadly, after the update it seems that it is somewhat crippled.

Apparently, the thing to use is USB mass storage enabler, for which it needs root. So I rooted using Autoroot (and triggered Knox 0x1) and installed Busybox, which is all working well. I also found that apps cant write to the SD Card, so I fixed that too....

However, all the different ways I have tried the USB mass storage app, the best I can get is an empty USB drive.

I've trawled through a series of other threads and blogs, but they all seem to recommend using the same applications and techniques, which seems not to be working for me.

Any other suggestions greatly received.
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...
 

Attachments

Ame123

Senior Member
Dec 30, 2012
677
62
0
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...
How to use it my freind?? Should i just browse to location of the script and open them.and execute??

Sent from my C6902 using Tapatalk
 

Cavey.co.uk

Senior Member
Jun 25, 2006
266
13
18
www.cavey.co.uk
Thanks to jjdoctor. Works like a charm. I have a Samsung S9505, Kitkat 4.4.2, rooted with Knox 0x1.

  1. I installed SManager from google play.
  2. I downloaded the scripts to /storage/emulated/0/documents/scripts/massstorage
  3. I opened SManager and navigated to the above script directory.
  4. I selected the "Mass Storage" script.
  5. I enabled "su" (green skull and crossbones second from left) and "bg" (looks like an &, second from right)
  6. I selected "run"
  7. Black screen with lines of text (it's a terminal) and it then appeared as a USB Mass Storage device.

Even does not dismount it from Android, which is nice. I hate to think how that's gonna blow up in my face at some indeterminate point in the future. Almost tempted to add some conditions so I can use it as a toggle.... but for now its awesome.
 

rael75

Senior Member
Nov 5, 2013
108
14
18
Thanks to jjdoctor. Works like a charm. I have a Samsung S9505, Kitkat 4.4.2, rooted with Knox 0x1.

  1. I installed SManager from google play.
  2. I downloaded the scripts to /storage/emulated/0/documents/scripts/massstorage
  3. I opened SManager and navigated to the above script directory.
  4. I selected the "Mass Storage" script.
  5. I enabled "su" (green skull and crossbones second from left) and "bg" (looks like an &, second from right)
  6. I selected "run"
  7. Black screen with lines of text (it's a terminal) and it then appeared as a USB Mass Storage device.

Even does not dismount it from Android, which is nice. I hate to think how that's gonna blow up in my face at some indeterminate point in the future. Almost tempted to add some conditions so I can use it as a toggle.... but for now its awesome.
i had the same problem.Thanks jjdoctor
 
  • Like
Reactions: rekman

intron1

Member
Jun 4, 2013
39
3
0
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...
THIS IS AMAZING. Thanks so much. I have been searching for a few days now for a solution to this. This worked perfectly and now allows me to use USB Mass Storage Enabler app to switch back and forth between mass storage and mtp. YAY.

:good:
 

tibaland

Senior Member
Nov 30, 2011
118
13
0
THIS IS AMAZING. Thanks so much. I have been searching for a few days now for a solution to this. This worked perfectly and now allows me to use USB Mass Storage Enabler app to switch back and forth between mass storage and mtp. YAY.

:good:


this thread help me too thanks!
 

SpellDreams

New member
Aug 7, 2014
1
0
0
The path of SManager is wrong

It worked on my Galaxy s3 but the path to the script with SManager is wrong.

I had to go to the folder manually to launch the script.

In the black exec screen:

cd storage
cd emulated
cd legacy
cd Script
exec sh UMS (*I renamed the file UMS)
 

Jay_9090

Senior Member
Dec 19, 2004
70
9
0
Paris
Hello,

Not Woking on 4.4.2 N9005 Note 3... :crying:

Say can't create /sys/devices/platform/msms_hsub/gadget/lun0/file : No such file or durectory
 
Last edited:

sell-o

New member
Sep 17, 2014
3
0
0
solution for s4 kitkat usb mass storage problem

simply code *#0808#
Select MTP + ATP
Press OK
Press Reboot
That's All. This Works for my i9500 without root