yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S III] DarthCivicus:
Awesome write up, this definitely helps me when trying to xfer files to my device... only problem I am having is that when I go back to MTP that it will recognize the device and allow me to start the xfer but after about 10-20seconds it will error saying device has been disconnected.... is this a bug, or something wrong with my USB Cord?
[Verizon Samsung Galaxy S III] Farabomb:
Just tried and it's copying fine. Working in OSX 10.6.8.
[Verizon Samsung Galaxy S III] jbzcar:
Also confirmed in 10.7.4. :)
[Verizon Samsung Galaxy S III] vudugan:
Does work but iffy on Xp. I finally decided to uninstall drivers from Xp. Rebooted PC and just plugged in phone. After it reinstalled drivers, it worked right away w/o going back into gscript. W7 ran first try.

VZW SGS3 Tap a Talk
[Verizon Samsung Galaxy S III] ryanf:
TACOS
[Verizon Samsung Galaxy S III] bamaredwingsfan:
If you flash a new Rom, do you have to enable this each Time you switch roms

Sent from my rOot3d Samsung Galaxy S3
[Verizon Samsung Galaxy S III] open1your1eyes0:
You have rerun the script after every reboot in fact.
[Verizon Samsung Galaxy S III] Farabomb:
Had a minor issue yesterday. Transferred some files from my work mac using mass storage, tried to take a picture later and it said external sd was full. System settings said 0 room, unmounted and reseated the card and still nothing. Rebooted and it came back. Could be related to the sd card warning you get with jellybomb /w toggles. Just figured I'd mention it.
[Verizon Samsung Galaxy S III] open1your1eyes0:
Anyone else experience something similar? It's possible the system needs to mount the SD Card as MTP mode again to work properly on the OS. It would make sense because rebooting fixed the issue since rebooting returns it to MTP mode anyways.
[Verizon Samsung Galaxy S III] vudugan:
Yep, ran into this. opened Gscipt and clicked the MTP mode and extsd reloaded.
[Verizon Samsung Galaxy S III] parcou:
How do I backup the MTP area

So I did the script and works. Now I can access those songs on my sdcard on my PC and transfer them as a drive letter again so I can listen to music in the car, jogging, etc.

I still want to use the MTP mode since I already moved all my files over to it and don't want to do it again...(music is not on the phone)

So when it comes to flashing a new rom down the road is there a way to backup the MTP...can I boot my rooted phone into CMW and back the internal storage to the ext sdcard?

Heck at the same time I need to see when I backup the rom where does that go :)
[Verizon Samsung Galaxy S III] stiltzkin:
I can confirm this as working with Linux (Kubuntu 12.04) and CyanogenMod 10. GScript throws "stderr: no such file or directory" and then force quits, but the drive shows up as available immediately. Thanks OP.
[Verizon Samsung Galaxy S III] MaverickCoast:
Opening ExtSD Card problem

I followed instructions, everything worked, BUT how do you mount the ExtSD Card on your phone on your phone (NOT on the PC)?

Before I could go to "/mnt/extSDCard" and open my ExtSDCard on my phone. Now I can't do that. :confused:

Matter of fact I tried switching back to UMS with GScript lite and I STILL can't find my ExtSDCard.

Thanks!
[Verizon Samsung Galaxy S III] antawnm26:
I'm getting stuck on step 9

9. Press the "Load file" button and select "UMS Mode.sh", then press the "Save" button and the UMS Mode script will be added to the list

its not allowing me to select anything at all just says select a file(.sh from sdcard)
[Verizon Samsung Galaxy S III] open1your1eyes0:
Interesting...I believe you are one of the few people who actually can actually get this working on CyanogenMod. Technically it should not because from what I heard it uses a different system structure.

You have to return to MTP Mode for your SD card to be remounted back to your phone.
[Verizon Samsung Galaxy S III] sanjsrik:
Anything that involves 21 steps, isn't that bit much? Is there no way to streamline this process?
[Verizon Samsung Galaxy S III] open1your1eyes0:
If you read the steps you'll realize I actually go into much more detail than necessary for absolute newbies. If you read each step also you'll understand why the have to be separated. If there's one thing you take from Android is that you should not be lazy about learning how things work and wimp out for those "one-click" methods. That is just my opinion but I'm sure you'll find many here that would agree with me as well.
[Verizon Samsung Galaxy S III] XooLoo:
Followed the steps. It worked! THANK you! :)
[Verizon Samsung Galaxy S III] antawnm26:
I'm running synergy v1.3 on dark horse theme. windows vista..

I get to step 9 and hit load file it doesnt give me an option to select anything...Verizon gs3
[Verizon Samsung Galaxy S III] open1your1eyes0:
Did you follow #4, #5, and #6 properly exactly as stated?
[Verizon Samsung Galaxy S III] antawnm26:
yes,but will try again will let you know
[Verizon Samsung Galaxy S III] DROID3R:
thank you this worked to perfection!
[Verizon Samsung Galaxy S III] antawnm26:
i misread or interpreted wrong and put the file on my exsdcard..

worked perfect thanks
[Verizon Samsung Galaxy S III] ericerk:
How does one make internal work.

echo 0 > /sys/devices/virtual/android_usb/android0/enable
umount /mnt/storage/sdcard0/
echo "mass_storage,adb" > /sys/class/android_usb/android0/functions
echo "/dev/block/vold/179:97" > /sys/devices/virtual/android_usb/android1/f_mass_storage/lun_ex/file
echo 1 > /sys/devices/virtual/android_usb/android0/enable

What I tried, it failed.

SD EXTERNAL WORKS.

Internal storage won't however.
[Verizon Samsung Galaxy S III] X2guy:
So its my understanding you need to run this procedure on a windows 7 then after it may connect with my mac?
[Verizon Samsung Galaxy S III] X2guy:
Also, does this work if your on a custom ROM? My rom connects my phone to a windows 7 comp but shows neither the internal or external memory under it.
[Verizon Samsung Galaxy S III] pedroflovera:
Thanks!..

Very Useful!.

Work for Linux too, i use Kubuntu and is perfect..

Thanks!...
[Verizon Samsung Galaxy S III] XRSTOY1:
I can't get thid to work using a JB rom? Is there something in the script that needs changing?
[Verizon Samsung Galaxy S III] Jarredw:
If you edit the script and change the line that says f_mass_storage/lun_ex/file

To f_mass_storage/lun/file

All your doing to get it to work is removing the "_ex" at the end of lun. Save the script then reload it in gscript

Scratch that. I'm able to view the card in windows now but it shows up as a cd drive and seems write protected now
[Verizon Samsung Galaxy S III] clive48:
Hi

I have Rooted N8000 with JB 4.1.2 ROM (Germany)

Pl tell me if this UMS will work on my Note.

Thanks
[Verizon Samsung Galaxy S III] macpro88:
BUMP

Just got the S3 a week ago, and like all the other Android phones I've had that have been ICS or higher, all have MTP, and I freaking hate it. Its slow, buggy, doesn't always work, and I just hate it.

Quick question before I do this later today, has anyone done this on the new Jelly Bean update and does it work?

Thanks y'all.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mygti02:
Hi guys,

Im trying to setup a VPN connection on my phone but cant figure out how to do it. Its a cisco connection....the following credentials is what i need to be able to enter. Gateway, Group name, User name, Group password, user password. If anyone could point me in the right direction that would be very helpful! Thanks!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mygti02:
Never mind, i got it figured out.
[AT&T Samsung Galaxy S II SGH-I777] skittles:
SAVE YOUR GOOGLE PLAY MUSIC OFFLINE MUSIC TO EXTERNAL SDCARD

So I've been researching this issue for a long long time and have tried so many different approaches. I've finally found one that works! You can now save your google play music to your external sd instead of the internal sdcard.

This is based on the post found here. Please go and thank the original author. This will probably work on any phone.

So what this basically does is mount the google play music cache to a directory on your external SD on boot.

Requirements:

1. Root

2. external SD(obviously)

Steps

Using whatever task manager you have or just go into settings->apps->running, close google play music.

Open your file manager and browse to /sdcard/Android/data/com.google.android.music/cache and delete all of the files found in music dir and artwork dir in this directory. This is very important step. If you do not delete your cache then your files will take up space but will no longer be available after this process.

Browse to the root diretory of your external sdcard and create a directory called "MusicCache".

Browse to the root of your internal sdcard and create a text file called "MusicScript.txt".

Using your favourite text editor open the the file and past the following: "mount -o bind /emmc/MusicCache/ /sdcard/Android/data/com.google.Android.music/" and the save the file. Please note that if your using stock room, then /emmc/ might be /external-sd/. Please make sure to check the directory name for your external sd and replace /emmc/ with whatever your external sd directory is named.

Go to the google play store and install script manager - Smanager. Open smanager, and on first open you should see an option to select root, check that option and click ok and make sure to grant root to the app when the su dialog appears.

In Smanager browse to the root of your sdcard and click on and hold the "MusicScript.txt" to open a options dialog. Select "open as" and then select "Script/Executable".

Then Select "Su" and "Boot" and hit save.

You might not need this stop but it might solve some issues. Go to settings app->apps->google play music-> and hit clear data.

Reboot your phone.

Open up google play music and click on Choose on device music, and you should see the total space available equal to what is available on your external SD Card

(Optional) Hamster dance.

Note: While downloading all of your music offline you may want to go to the settings app->developer options->check Keep Awake to keep the phone awake while charging so that the phone won't go to sleep. I did this so that I could finish up the download while keeping my phone charger connected. You should definitely turn this option off after your done.

**I assume no responsibility if this damages your device in any way**
[AT&T Samsung Galaxy S II SGH-I777] switters1:
Thanks! I've been trying to figure out how to do this. I figured I'd just have to wait for Google to get their act together. But external storage has clearly not been a priority for them.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Nice!
[AT&T Samsung Galaxy S II SGH-I777] skittles:
I'm glad I could help someone. I've been mostly a lurker on this board. But I've benefited so much that I felt I had to give back once I got this working. I've been at this issue for a long long time.

BTW, did it work for you?
[AT&T Samsung Galaxy S II SGH-I777] mfreywald:
Awesome, I'm going to give this a try when I get home from work today. I'll let you know if I got it working. Very cool of you to share this.
[AT&T Samsung Galaxy S II SGH-I777] tripstermcgee:
Very cool, I'll definitely try this later today

Sent from my SGH-I777
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Just use Directory Bind...much easier
[AT&T Samsung Galaxy S II SGH-I777] skittles:
From my understanding directory bind did not work for google music.
[AT&T Samsung Galaxy S II SGH-I777] MotoMudder77:
AOKP. not sure if CM has it. Swap storage location.

But thats a nice find for those that dont. ;)
[AT&T Samsung Galaxy S II SGH-I777] skittles:
I have AOKP and no such swap storage location settings. I've looked for this before.
[AT&T Samsung Galaxy S II SGH-I777] ss2pheonix:
Can't get it working

I'm on a htc evo lte and i cant seem to get this to work. In the root directory my sd cards are sdcard and sdcard2 but sdcard is mounted to /mnt/sdcard and sdcard2 is mounted to /mnt/sdcard/ext_sd how would the script look for me?
[AT&T Samsung Galaxy S II SGH-I777] skittles:
Just use the following instead of what I have posted for step 5.

mount -o bind /mnt/sdcard/ext_sd/MusicCache/ /mnt/sdcard/Android/data/com.google.Android.music/

Let me know if works out for you.
[AT&T Samsung Galaxy S II SGH-I777] ss2pheonix:
oh i forgot the ".google" my bad

it works thanks!
[AT&T Samsung Galaxy S II SGH-I777] MotoMudder77:
Its in there. has been for some time, hell if you've done any kind of research before you posted that, you'd see hundreds of posts about it.
[AT&T Samsung Galaxy S II SGH-I777] skittles:
ah, you mean, settings->storage->storage configuration->layout configuration. But that moves all of your apps/media to external storage. The method I posted just moves gmusic cache which the solution I've been looking for.
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
yes it does. I've been using it for months...
[AT&T Samsung Galaxy S II SGH-I777] cdobeso:
Awesome, gonna try this today.
[AT&T Samsung Galaxy S II SGH-I777] Zion800:
It seems like everyone has gotten this working except me! I was able to create the symlink using your script, and I even see the cache directory on the external SD card. The odd issue is that the cache directory remains completely empty no matter how many songs I store offline. Even when I remove the symlinks, the files are not in /sdcard/Android/data/com.google.android.music. I have gone so far as to factory reset my phone twice (in two different ways) and the issue still persists. After factory resetting, my main goal was to just find where the offline files are being stored so I didn't even create symlinks.

I am using a Verizon Samsung Galaxy S3 with the stock rom.

Can anyone help me with this? Any help would be GREATLY appreciated.

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] skittles:
Can you first confirm that files are available offline in music. Simply check On device only in the pop menu when you hit the menu button.
[AT&T Samsung Galaxy S II SGH-I777] bkress:
Confirmed... I have also been using it since Google music came out. Directory bind is pretty awesome as it let's you redirect lots of data to wherever you want it. I use it for a few games also.
[AT&T Samsung Galaxy S II SGH-I777] nhonbeo:
Thank for your share !
[AT&T Samsung Galaxy S II SGH-I777] HellSassa69:
I ve got a very strange behaviour here:

when I tap "choose music on deveice" it shows me the free space on my external sd.

But the files which are downloaded are duplicated in the app folder sdcard/Android... AND on my emmc/MusicCache Folder.

Whenever I delete files in one of the directotrys they get deleted in the other directory too! What am I doeing wrong?
[AT&T Samsung Galaxy S II SGH-I777] lnxcat:
Google music

4.3.606 from jelly bean, shift the directory to /data/data/com.google.android.music/cache/

just change ur script accordingly will do
[AT&T Samsung Galaxy S II SGH-I777] uTomi:
Same probleme on my SGS3. Jelly Bean CM10 with new Play Music app. Download are duplicated! What is wrong?
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Unfortunately, as others have stated, files are merely duplicated to the external sd.

Also, the script breaks internal sd pc mounting.
[AT&T Samsung Galaxy S II SGH-I777] sti3:
I could use some help too. I am on the same device as Zion800
[AT&T Samsung Galaxy S II SGH-I777] skittles:
So basically what is happening is that the sdcard/android/... folder for gmusic no longer refers to a psychical location on your phone. The files in that location only exist in the new mounted location. So this normal behavior. The important thing is that your phone recognizes were the music files do actually exist psychicaly and counts the space towards the correct storage location( I.e. internal memory, SD card, external sdcard).

Now, are you finding duplicate entries in the app or just in the folder location using a file manager?
[AT&T Samsung Galaxy S II SGH-I777] djbolden:
Tried this on my Droid3. I'm not having a problem with files being duplicated (yes, a file manager shows the same files in both locations, that's becuase the sdcard/... version is just a mount point for the sdcard-ext version), but I do seem to have a problem getting either location (sdcard or sdcard-ext) to appear in USB Mass Storage mode. Is that what you mean by " the script breaks internal sd pc mounting" ? I did get it to mount once after numerous tries but not again since then.

dj
[AT&T Samsung Galaxy S II SGH-I777] mignamichele:
Why don't work for me?

mount -o bind /mnt/extSdCard/MusicCache/ /mnt/sdcard/Android/data/com.google.Android.music/

I've a SGS3 whit stock rom.
[AT&T Samsung Galaxy S II SGH-I777] djbolden:
On my Droid3 I had to leave the /mnt off. The mount points ARE in /mnt, but the mount didn't work if /mnt was included.

dj
[AT&T Samsung Galaxy S II SGH-I777] mignamichele:
Whit root explorer i find the folder where play music save the cache-->/data/data/com.google.Android.music/

So i change the script with:

mount -o bind /mnt/extSdCard/MusicCache/ /data/data/com.google.Android.music/

and dont'work

i try whitout "mnt":

mount -o bind /extSdCard/MusicCache/ /data/data/com.google.Android.music

and dont'work...

:confused::confused:
[AT&T Samsung Galaxy S II SGH-I777] djbolden:
Looks like you directory strucutre is very different than mine - sorry, I can't help.

In case anyone is interested, the patch does work with Hashcode's KEXEC Cynogen build. In fact, it works slightly better because at least the external card mounts as USB mass storage when connected to a computer. The internal storage still doesn't mount and neither mount with the stock ROM.
[AT&T Samsung Galaxy S II SGH-I777] hlvs:
Duplicate files

First of all thanks for the guide. I used it and it seems it works. Now if I open Google Play Music and then Choose music on device, it shows the available space on the external SD card.

But now the files are in both locations: in the external SD (the folder MusicCache) and in the internal SD (/mnt/sdcard/Android/data/com.google.Android.music/cache). Is it a normal behavior? Physically the files are only in the external SD card or in both the locations?

My phone is a Galaxy S2 and the Google play music's release is the 4.3.606.400990.

Thank you again
[AT&T Samsung Galaxy S II SGH-I777] jack man:
pardon me if this has been mentioned before.

I was interested in doing this so I could use the music I purchased from the Play Store on other music players that I prefer.

I went to the Music Play store on my PC and saw that it allows two downloads of every song that you have in your library. The download is in mp3 format and it comes with all the correct tags and album art. Even allows you to select all songs in an album at once to download the whole album. Then I can just transfer them to my external sd card.

Didn't know if that was common knowledge, as I just ran across it today. It just seemed less troublesome that digging into the files on the phone.

(yes, I see how this mod is great if you don't have access to a PC)
[AT&T Samsung Galaxy S II SGH-I777] djbolden:
I believe yes, it's normal. What I think you are seeing is the external directory mounted at the internal mount point. If you enter the internal directory you are actually entering the mounted directory on the external card.
[AT&T Samsung Galaxy S II SGH-I777] silex.usa:
Newest Music version - new storage location

My music is being stored at: /data/data/com.google.android.music/cache. I have tried wiping google music and reverting to the version that came pre-installed. If I then start caching music it goes to the internal SD card at Andriod/data/com.google.android.music/cache like everyone is talking about here. If I then update to the latest version of Google Music: v4.3.609.436083 it begins storing all of the music at /data/data/com.google.android.music/cache again. If I move the music files to the location on my internal SD card where the other files were properly cached Google Music ignores them and begins re-downloading files into data/data This is a real problem as this area of the phone has even less space than the internal SD card. I am really beginning to regret my investment in a 64GB SD card (I am on a Galaxy S3). I am thinking this is new for all versions going forward because of music licencing? I can't see how they can expect us to share 2gb of space with all of our music and Apps. Is anyone else having this problem?
[AT&T Samsung Galaxy S II SGH-I777] hlvs:
Yes I think so. I checked the available space on my phone (settings->memory) after the download of some music by google play music. Although the songs are in both locations, only the available space of the external sd is less than before.
[AT&T Samsung Galaxy S II SGH-I777] tomcat84:
Not sure if Im being stupid now, but everything described in the opening post seems way too complicated to me...

I have done the following on my Galaxy S3 and it works just fine:

ln -s /mnt/extSdCard/GoogleMusicCache/cache /data/data/com.google.android.music/cache

(Folder names may vary. I have not typed this manually, but I used Root Explorer to create the link. Should be the same thing.)
[AT&T Samsung Galaxy S II SGH-I777] Altair8800:
Could you please explain how did you create the link? What should I do if I I ever want to remove the link? Thanks.
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Still using directory bind. Works great even on JB. Very easy to setup
[AT&T Samsung Galaxy S II SGH-I777] thetony:
looks like the google music directory was changed... no scripts or directory bind or es file explorer can detect any music where it used to be...
[AT&T Samsung Galaxy S II SGH-I777] Altair8800:
Check /data/data/com.google.android.music/cache

That is where music is stored now. Use Root explorer to make a folder in your external sd card.

Mine is called /mnt/extSdCard/GoogleMusic/Cache. Now select the folder and when the list pops up, go all the way down to the bottom and select make a symbolic link. Now go back to the cache folder of google music. rename the folder to cache_bak for something and paste your symbolic link here.

If you already have data in your cache folder then I would recommend moving it first to the your external sd card and then making a link of that folder.

Cheers.
[AT&T Samsung Galaxy S II SGH-I777] awantoch:
I think you all are really over-thinking this...

I found the absolute best and easiest way is by using symlinks. This can be accomplished with ROM Toolbox [Root Browser], without the need of scripting/commands/etc.

0. Open ROM Toolbox > Root Browser

1. Make a folder in your desired location (sdcard) called "Music" or something to that sort.

2. Tap and hold, select the option "Create Shortcut" at the bottom

3. Navigate to /data/data/com.google.android.music/

4. Paste (to create the shortcut)

5. Delete the "cache" folder in this directory

6. Rename the shortcut to "cache"

7. Enjoy!
[AT&T Samsung Galaxy S II SGH-I777] eromrab:
Says that most SD Cards don't support links...?
[AT&T Samsung Galaxy S II SGH-I777] mignamichele:
wow thank you! For me it work!

SGS3
[AT&T Samsung Galaxy S II SGH-I777] slonn:
I'd like to try this but when I go into the /data folder in Rom Toolbox nothing is showing. I'm sure the permissions are set correctly. Can this be done using another app?
[AT&T Samsung Galaxy S II SGH-I777] mignamichele:
The same problem. I solved with an old version of rom toolbox.

I think you cant'try with an other similar app
[AT&T Samsung Galaxy S II SGH-I777] slonn:
By any chance, can you direct me where to locate the version you're using?
[AT&T Samsung Galaxy S II SGH-I777] cdobeso:
You can also use root explorer to do the same. Just select create shortcut and then paste it into the Google Music folder and rename it. Worked for me.
[AT&T Samsung Galaxy S II SGH-I777] slonn:
i managed to find an old .apk of Rom Toolbox and the followed the instructions above. It seems to be working :)
[AT&T Samsung Galaxy S II SGH-I777] slonn:
Delete...
[AT&T Samsung Galaxy S II SGH-I777] waldo98:
I'm going to definitely try this later!