yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] Lucas0511:
Hi Stephan, we happily use your app on the HTC Flyer under the http://xdaforums.com/showthread.php?t=1795342 JB ROM, working fine and reliable. However some of us would prefer to see the Flyers large internal ROM visible on our desktop PCs, rather than the SD. The ROM developer wrote me the following feedback, but I cannot really make sense of it:

"Originally Posted by Dexter_nlb

you need to modify the mass storage app to point ot the internal /data area , as you do not have a "virtual internal sdcard", but simply the /data/media as reserved for storage. it will need to share your complete /data area to the pc to make it work.

i have not used the sdcard binary to fuse the directory, which could make the sharing maybe work better. but thats how it is right now."

Any chance your app could help us see internal storage over USB? Thanks for looking into this. Greetings to Hamburg.
[Nexus One Themes and Apps] calav3ra_de:
Hi,

i don't see any problems implementing this. It's more a question of how to do it, if its not possible already. Will discuss this with Stephan.

Greetings to your place.
[Nexus One Themes and Apps] keyra74:
tested on nexus 7, says lun0 not found on first startup then launch without mounting as UMS

i'll wait for a fix, just saw that someone told you about the lun0 problem
[Nexus One Themes and Apps] Eleanor_Ir:
Thanks～
[Nexus One Themes and Apps] GregórioAxiaMagno:
Don't work in x10i with MiUi v4 (ICS 4.0.4)

Why? Need a help...
[Nexus One Themes and Apps] Toothless:
I have Galaxy Nexus and the app don't work..

Can you develop for Galaxy Nexus?? Thanks :)
[Nexus One Themes and Apps] Toothless:
Up

Inviato dal mio Galaxy Nexus Chic White
[Nexus One Themes and Apps] Narwhal73:
Wow awesomeness. one of the major flaws of CM9.1 RC2 for ace is the lack of usb storage, now thats fixed! :laugh:
[Nexus One Themes and Apps] seteBR:
I have a SGTab GT-P6210/ICS 4.0.4 rooted and i have a issue with this app. The App SW is 2.0 but show "Error! You cannot enable UMS without USB Connection".

PS. USB connection is OK but in MTP mode.

Please, what do i do?
[Nexus One Themes and Apps] Jhowlett:
Hi !!!

Somebody knows if this app works on Samsung Gtab 2 P3110 under stock ROM or CM 9.1.0 plz?

Thx ;)
[Nexus One Themes and Apps] Rapture Veteran:
Have we come to a fix on the notification popping up after boot yet? I assume no
[Nexus One Themes and Apps] TylerDurdenK:
Just tried both versions on my One X running ARHD 14.1, and it's not working. Still stuck on MPS...
[Nexus One Themes and Apps] claudioc661:
Samsung Gtab 2 P3100

I have it with CM10 but the app does not work?

Can anybody help?

Thanks,

Claudio
[Nexus One Themes and Apps] BlueEyes99:
so i got myself a razr i (coming from samsung galaxy s with cm10 support a huge let down hahaha)

anyway, your first 2 versions on the op dont work at all. but version 2 works, but not the normal way you intended. force ums/suppress mtp does the trick. after activating that one and rebooting. my phone uses ums mode without even activating your app. this means that its using the devices own UMS. which is of course not bad at all.

so i guess i should just have to edit default.prop to change the value of persist.sys.usb.config to mass_storage instead of mtp to make this persistent
[Nexus One Themes and Apps] praveenmarkandu:
Can someone please clarify if this works with a device with INTERNAL STORAGE like a Galaxy Tab 10.1 or a Galaxy Nexus?
[Nexus One Themes and Apps] cgiznluca:
Lenovo Thinkpad tablet with ICS 4.0.3

I am trying to get it running on my Lenovo Thinkpad Tablet with ICS 4.0.3 standard (rooted).

I have tried both versions: they both seem to start properly and I get the green droid telling me

UMS is active, but I do not get any drive mounted on Windows 7.

In version 2.0, if I go to the options, I have:

VFAT mount points: false

EXT mount points: false

Lun-datei pfad: false

VFAT al standard: Yes

Force UMS: Yes

I have the feeling it does not find the proper mount points to explore: I should I configure them?

Are there any instructions available anywhere?

In this thread I found some hints, but no real explanation of hoe to configure the app.

Thanks!

Gianluca
[Nexus One Themes and Apps] cgiznluca:
Lenovo Thinkpad tablet with ICS 4.0.3

I have tried to set the configuration in the options:

VFAT mount points: /sdcard

EXT mount points: /external_sd

Lun-datei pfad: /sys/devices/virtual/android_usb/android0/f_mass_storage/lun0/file

They look reasonable, even though I do not understand really what the lun file is.

I have rebooted and tried several things, still no drive under windows 7

(usb debugging is off and I have tried both usb in power charge and data transfer modes).

Looking at the logs (attached) I notice in particular the following exception:

11-29 17:07:04.169 D/su ( 2421): 10199 net.bexton.UsbMassStorageToggle executing 0 /system/bin/sh using shell /system/bin/sh : sh

11-29 17:07:04.169 I/System ( 2288): Failed to destroy process 2421

11-29 17:07:04.179 I/System ( 2288): libcore.io.ErrnoException: kill failed: ESRCH (No such process)

11-29 17:07:04.179 I/System ( 2288):	at libcore.io.Posix.kill(Native Method)

11-29 17:07:04.179 I/System ( 2288):	at libcore.io.ForwardingOs.kill(ForwardingOs.java:77)

11-29 17:07:04.179 I/System ( 2288):	at java.lang.ProcessManager$ProcessImpl.destroy(ProcessManager.java:257)

11-29 17:07:04.179 I/System ( 2288):	at net.bexton.UsbMassStorageToggle.UsbMassStorageToggleActivity.runRootCommand(UsbMassStorageToggleActivity.java:600)

11-29 17:07:04.179 I/System ( 2288):	at net.bexton.UsbMassStorageToggle.UsbMassStorageToggleActivity.tryRealMount(UsbMassStorageToggleActivity.java:316)

11-29 17:07:04.179 I/System ( 2288):	at net.bexton.UsbMassStorageToggle.UsbMassStorageToggleActivity.tryMount(UsbMassStorageToggleActivity.java:304)

11-29 17:07:04.179 I/System ( 2288):	at net.bexton.UsbMassStorageToggle.UsbMassStorageToggleActivity.onClick(UsbMassStorageToggleActivity.java:194)

11-29 17:07:04.179 I/System ( 2288):	at android.view.View.performClick(View.java:3517)

11-29 17:07:04.179 I/System ( 2288):	at android.view.View$PerformClick.run(View.java:14162)

11-29 17:07:04.179 I/System ( 2288):	at android.os.Handler.handleCallback(Handler.java:605)

11-29 17:07:04.179 I/System ( 2288):	at android.os.Handler.dispatchMessage(Handler.java:92)

11-29 17:07:04.179 I/System ( 2288):	at android.os.Looper.loop(Looper.java:137)

11-29 17:07:04.179 I/System ( 2288):	at android.app.ActivityThread.main(ActivityThread.java:4424)

11-29 17:07:04.179 I/System ( 2288):	at java.lang.reflect.Method.invokeNative(Native Method)

11-29 17:07:04.179 I/System ( 2288):	at java.lang.reflect.Method.invoke(Method.java:511)

11-29 17:07:04.179 I/System ( 2288):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)

11-29 17:07:04.179 I/System ( 2288):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)

11-29 17:07:04.179 I/System ( 2288):	at dalvik.system.NativeStart.main(Native Method)

May be from the logs some of you clever guys can come up with a good idea or tell me what I am configuring wrong :)
[Nexus One Themes and Apps] cgiznluca:
Lenovo Thinkpad tablet with ICS 4.0.3

Some additional details on the specifics of the TPT ICS:

The internal card is: /mnt/sdcard and there is a link as /sdcard

The sdhc slot is: /mnt/external_sd and there is a link as /external_sd

I am personally interested in mounting on Windows 7 the external_sd

The lun file I see is in:

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

I do not see a lun0 or a lun1

It seems to me that the device for the external_sd is (fom /proc/mounts):

/dev/block/vold/179:17 /mnt/external_sd vfat

while the internal sdcard is:

/dev/fuse /mnt/sdcard fuse

I have tried to set 179:17 in lun/file but id does not help either.

Any suggestion?

Thanks in advance!

Gianluca
[Nexus One Themes and Apps] thecompany:
Can someone confirm that this works on a one x plus? Can't seem to get it to working..
[Nexus One Themes and Apps] toxicneo:
Galaxy nexus with 4.0.1 version

I installed the app but it is not working in my phone.

OS version ICS -> 4.0.1

Galaxy Nexus
[Nexus One Themes and Apps] Orphee:
Hi,

The application does not seems to work on my Motorola RAZR HD XT925 on Jelly Bean 4.1.1.

In SuperSU log I have the following error :

echo /dev/block/mmcblk0 > /system/devices/platform/usb_mass_storage/lun0/file

sh : can't create /sys/devices/plateform/usb_mass_storage/lun0/file : No such file or directory

I searched with adb where I could find the lun0/file, and on my phone it is located here :

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

Don't know if it helps.

Please fix this ! :D

Thank you.

Edit :

I tried 2.0 legacy, and no error anymore, it auto find the correct path, but it does not work better.

Nothing appears on computer, still MTP enabled.
[Nexus One Themes and Apps] [x]:
I didn't read through this tread thoroughly, but I figured I'd give my input/results.

Does not work for Motorola Xoom Wi-Fi 4.1.2
[Nexus One Themes and Apps] Raryn:
Any chance of a solution that also works on the Razr Maxx HD? Tried multiple versions of this app and a couple others, nothing that seems to restore USB Mass Storage. The file transfer program on a mac is terrible, way slower than it used to be.
[Nexus One Themes and Apps] serraxer:
Razr M JB 4.1.1 not work, stupid google.
[Nexus One Themes and Apps] calav3ra_de:
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)
[Nexus One Themes and Apps] calav3ra_de:
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.
[Nexus One Themes and Apps] devil-kin:
Re: [APP] USB Mass Storage for Ice Cream Sandwich & Jelly Bean [v.1.2.0-pre - 02.02.2

Where can we find this version?
[Nexus One Themes and Apps] calav3ra_de:
I said in the next version (upcoming) :)

Right now i found out that on boot, the application might start too soon. Then telling: No partitions found.

That's why i'm still looking into it.

Edit: v2.44 is coming soon. Right now lots of testing is going on, should work smooth then.
[Nexus One Themes and Apps] tebra:
just one question: does this app creates or changes files in / or /system/ directory?
[Nexus One Themes and Apps] whoosename:
Installed v2.4 today, works great :good:
[Nexus One Themes and Apps] pspfat1004:
Not working on Motorola Razr i 4.0.4.
[Nexus One Themes and Apps] didixx:
hi ,

Not working on Motorola Razr i 4.0.4 , you have a solution please ?
[Nexus One Themes and Apps] xxcombat:
Not working on Motorola Atrix HD JB 4.1.1 , you have a solution please?

adb shell

su

setprop sys.usb.config mass_storage,adb

setprop persist.sys.usb.config mass_storage,adb

setprop sys.usb.state mass_storage,adb

mount | grep sdcard1

/dev/block/vold/179:97 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,g id=1015,fmask=0702,dmask=0702,allow_utime=0020,cod epage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

echo "/dev/block/vold/179:97" > /sys/devices/platform/msm_hsusb/gadget/lun0/file

cat /sys/devices/platform/msm_hsusb/gadget/lun0/file

/dev/block/vold/179:97
[Nexus One Themes and Apps] Kusie:
Can anybody confirm this is working on a rooted Nexus 7 device with latest Android 4.2.2. ???

This app might be the reason to finally root my device, too.

Thanks,

K.
[Nexus One Themes and Apps] mgfranz:
Does not work on HTC Evo LTE 4G with JB

Tested on my HTC Evo 4G LTE with the JB upgrade, does not work.
[Nexus One Themes and Apps] JerryQP:
Latest version (1.2.0-pre): Download APK

Works on ZTE Avid 4G ICS 4.0.4 by MetroPCS the first stable did not work for my device.
[Nexus One Themes and Apps] ziyadkv:
not working in s3 mini

:( pls make it to work with s3 mini
[Nexus One Themes and Apps] shinzou87:
2.0 legacy, 1.2 (pre) and 1.1.4 not working on Xoom MZ601 everest with Team EOS 4 (4.2.2) nightly 150.

Gonna be waiting for 2.4 (link dead) or 2.44 when it's out.
[Nexus One Themes and Apps] calav3ra_de:
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.
[Nexus One Themes and Apps] mdobrzan:
Fauile! Did you granted Root permissions?

Hi,

That's what I get when trying to use UMS - even message is not in proper English :D

I got S2 on 4.1.2, not rooted. Any ideas?

thanks
[Nexus One Themes and Apps] calav3ra_de:
Which version of the app? Guys, i dont recommend using anything but the latest version really, the older ones are not supported anymore...

PS: How should the app work then on your phone? It needs root....
[Nexus One Themes and Apps] TheClownDE:
HTC One S

Hi,

just want to let you know that it doesn't work on my rooted HTC One S.

I'm using ViperOneS v2.1.0.

As far as I can see nothing happen when I "activate" the Droid. (No knew entry in dmesg on my Linux Mint system!)

Greets The Clown
[Nexus One Themes and Apps] swieder711:
(cleanup)
[Nexus One Themes and Apps] swieder711:
Bump. Anyone?

I am getting ready to install this on my recently upgraded Thunderbolt. My new ROM came with 1.20. Looking forward to the new features and fixes in 2.45.

Can the Zip file for 2.45 be installed over 1.20 which was baked into my ROM? I would clear Cache and Dalvik first.

thanks

Scott
[Nexus One Themes and Apps] calav3ra_de:
Hi swieder711,

just try it out and please tell me if it worked. I think it won't work since the signatures (keys used to sign) are different between bexton and me.

It should probably just say "Installation failed". No need to clean/wipe anything !! :) The file is an .apk file, no flashable zip.

Perhaps you mixed up the part that an .apk actually IS a zipfile, but it is not to be confused with a flashable zip (an edify script for CWM recovery and the like)

I still am looking into finding a way to make it more compatible with other ROMs, please be patient :)

If v 2.45 works worse for you, for whatever reason, just uninstall it and install 1.20 again. There is no problem in doing that at all :)
[Nexus One Themes and Apps] swieder711:
I tried it and it didn't work. The installation went fine, but my device would not turn on UMS. I tried removing the old app first which didn't helpm.
[Nexus One Themes and Apps] calav3ra_de:
Can you give me the logcat? That'd be great!

Edit:

Added v 2.47 which allows to send in some experimental data via email to me.

It also will tell you in case something went wrong with root-privileges (which might happen sometimes),

for example this happened to me on first run of the app this morning.
[Nexus One Themes and Apps] chamblard:
Hello,

it doesn't work for me.

My phone : xperia pro mk16i with FreeXperia 10.1 cyanogenmod,

nothing change than before.

tried with wondows 7 and Linux ubuntu 12.10

thank per advance for helping me ;)
[Nexus One Themes and Apps] g_pu:
MTP gone

Just for your information.

I tried the USB Mass Storage app on my Samsung Galaxy Nexus running Cyanogenmod 10.2.

None of the versions I tried (1.1.4, 1.2.0-pre, 2.45, 2.47) worked.

Application was runnig and I could switch to Mass Storage mode but notthing happened on my Win7 PC.

The device still showed up as "Media Player", no additional drive .

Then I tried the option "Remove MTP from build.prop/persist.sysusb.config.

Did not help at all... but after enabling it (reboot) and disabling the option (reboot) the

device did not show up in windows any more (no "Media Player" any more).

Guess the "revert" when disabling the option did not work properly.

Anyway, wasn't a big deal, I did a nandroid backup before installing the app :D
[Nexus One Themes and Apps] Tyetiger:
Has anyone tried this app on the new galaxy s4??
[Nexus One Themes and Apps] amohamedi:
S4 USB Mass Storage APK

Has anyone tried the subject file with S4?

I was trying to use double twist to sync with my itunes on my PC, but although my windows explorer sees both internal and SD memories on S4 but double twist doesnt and says the memory is not set to mass storgage.
[Nexus One Themes and Apps] lbacana:
Works fine ..

I have XT925 with JB 4.1.2.

Tanks a lot.
[Nexus One Themes and Apps] calav3ra_de:
I will post a new version soon, which should run on more ROMs soon. :cool:

The last version actually only worked if the filesystem of the sdcards was fat/vfat, which is... :silly:

well... not the case for everybody, especially some linux users or speedjunkies.

I never was aware of that problem until yesterday when i changed my sdcards to ext4. :cyclops:
[Nexus One Themes and Apps] miillaaad:
Great Thread

goood

useable for me

tanx a lot
[Nexus One Themes and Apps] ryanlath:
v2.47 does not work on stock S4 Verizon rooted.:(
[Nexus One Themes and Apps] luchobarrios:
how did you do? I can't see anything different. I still have a mtp device on "My Computer".
[Nexus One Themes and Apps] wizzardsk:
Does is work on LG E455? I tried both versions, 1.14 and 1.20pre and no luck :(
[Nexus One Themes and Apps] wwatu:
this doesn't seem to be working on padfone 2 :/
[Nexus One Themes and Apps] iAnoop:
Great mod.

It solved the problem I have with Cyanogenmod 10.2.
[Nexus One Themes and Apps] Fiendish1989:
Hi, I need to resolve my problem with kenwood kdc-bt51u because I want to connect my Oppo Find 5 with paranoid 3.99 based on 4.3 that have only MTP with Kenwood that support Only UMS like usb key! I need it my previous phone is an iPhone and after change and this bad discovery I'm very sad!
[Nexus One Themes and Apps] mscheaf:
I have confirmed this does not work on Galaxy Victory LTE. Phone shows up as cd-rom in windows and and audio players that use ums don't recognize it.
[Nexus One Themes and Apps] rashtninja:
It did not work on Glaxy tab 7.0 plus
[Nexus One Themes and Apps] Pankaj Rai:
thanks
[Nexus One Themes and Apps] coolhot_fdb:
Do you still develop on this tool? It doesn´t work on my Acer A510 with CM11 or OmniRom. Alwasy says: "You cannot activate UMS without USB-Connection". Of course there is a connection and Windows Explorer shows the device. I tried MTP and PTP.
[Nexus One Themes and Apps] pilgrim011:
Great job, man.:) One suggestion - could you change the behaviour of the app after boot, so it stays in the status bar? Currently it pops up right after boot/reboot.
[Nexus One Themes and Apps] famewolf:
Op I'm also using this with a T-Mobile HTC HD2 under tytung's ICS port.....so you may want to add HTC HD2 to your list of supported devices.
[Nexus One Themes and Apps] truviet911:
Nice one. Thanks alot
[Nexus One Themes and Apps] Bexton:
Well, i would like to be able to change that. ;) This is also what i think it sucks (beside the "notification spam" when tha app is running in background).

Thing is i am mainly a PHP developer, running my own business. And while i can not complain about this is running really succesfull, the side-effect is, i'm having almost no free time. 7 days a week. My time i can spend per day ion that is av´bout half an hour.

Beside this, this app is actually my first experience with JAVA. That makes eveverything takes some more time as i need to read the references, look up some examples and then trial and error. ;)

As you can read from the app's description it is actualy intended to start as a backround service, but actualy now the receiver send the intent to the main activity. This needs to be changed. But to figure out how i need to do some more trial and error. ;) Or need someones advice.

So everybody reading this is invited to help with that. The APK source is available via my GitHub: https://github.com/eyecatchup/net.bexton.android.UsbMassStorageToggle

The bottom line. Thanks for the feedback. It is on the todo list (with max priority). But takes some time or help. So please be patient / lenient with me. ;)

Cheers!
[Nexus One Themes and Apps] pilgrim011:
Are you kidding me?:eek: You're doing this in your spare time, for free, and you're asking me to be patient?:D You're too nice.:) Cheers
[Nexus One Themes and Apps] dk_zero-cool:
Without trying to sound like a Android Java expert, what you need (I think) is to make a small Service to place in your BootUpReceiver instead of the Activity. This service should then be the one starting your Activity when USB cable is pluggedin.

Maby this can help give you an idea.
[Nexus One Themes and Apps] Bexton:
Thanks for the link, will have a look at it tomorrow.

Sent with passion.
[Nexus One Themes and Apps] squadzone:
You are awesome man :)

you should add Samsung Galaxy Mini GT-S5570 to device confimed :)
[Nexus One Themes and Apps] fritsypeij:
Pretty nice :)

I wanted you to know that the Dutch translation for "currently" should be "op dit moment" and not "tegenwoordig" (which means something like "nowadays").
[Nexus One Themes and Apps] Bexton:
Thanks. I got another translation from another Dutch user. If you want, you can have a look at it here: https://github.com/ics-passion-dev/...mmit/b64eb47bad3fef1241ad8d5625acc972890b9307 . Cheers
[Nexus One Themes and Apps] Bierfreund:
Unfortuntely does not work on the phone with official ICS, the Galaxy Nexus :)

I know, it's not listed under supported devices.
[Nexus One Themes and Apps] Bexton:
But this is only because the GN doesn't support it. ("Official") ICS does. ;)

BTW: AOSP is also official. ;)

Edit: @Bierfreund: i just stumbled upon this blog post (german language) saying that my app works for the GN. http://www.androidnext.de/howto/galaxy-nexus-massenspeichermodus-mac/ Have you actualy tried it?