yashsingh1/xdaforums huggingface dataset:
[Nexus One General] Vegito168:
I haven't installed any apps after the doing the command, and still haven't. All my apps that I already had installed still work after moving them to the SD Card without any issues so far. I didn't do anything special. Just did the command via Terminal Emulator, then began moving my apps to SD, then rebooted to see if I would have any issues, and no issues. Then I rebooted once more just to be sure, and still no issues yet. That's a pain if your apps aren't working after moving them. Sorry to hear that.
[Nexus One General] Henchman:
I too recommend. Widget and system based apps. Like keyboard replacements be moved to the phone.
[Nexus One General] dogiedogie:
FML, spent the last 12 hours wondering why on earth it keeps deleting everything every time I restart. Clean install #4 anyone? :'(
[Nexus One General] NPS_CA:
I've rebooted many times - no lost apps

I did a clean install of froyo with a wipe and set install location to 2 then installed all my apps.

22 apps all running fine and all available after reboot

All were installed from market or from apk via app manager file intent. Did not use scripts at all.

Must Be an app registration issue for those who used the script to move apps.

Keeping widget apps on phone storage is essential as sd card init for apps can happen after widgets are loaded - therefore if those widgets are on sd they will fail to load

Also copying protected apps from my rooted g1 logged on via wifi only to my google market account. Using sufbs to copy to g1 sd card then use drop box with oi file manager to upload as a text file (lets u pick the copied apk). Then on my n1 install those protected apk's by selecting to download the file with drop box
[Nexus One General] Mikey:
Any help with this???

RT @sanmehat: android:installLocation="auto" or "preferExternal" in your apps to allow installation / moving to external storage on Froyo! See the docs!
[Nexus One General] Markdental:
+1 where do you type that?

What is the difference between this and the op method?
[Nexus One General] NPS_CA:
This is for developers building apps.
[Nexus One General] Markdental:
Got it. Thanks.
[Nexus One General] jerrycycle:
THANKS for the terminal line instructions. WORKS:D
[Nexus One General] xzr3b0rnzx:
I can't seem to move my app to SD... the option there but I just can't click on that option... help me please . I am running on stock froyo
[Nexus One General] Mikey:
From my understanding, this is best done when you dont have any apps installed at all.

Perform the command first then restore all your apps.
[Nexus One General] jerrycycle:
This is what this tread is about. There are instructions to get it working in the earlier post.
[Nexus One General] e4604:
question:

so at this point do i need a partition that ive created when i was running cyan? im just trying to free up some space
[Nexus One General] kassemalaa:
Oiginal Apps2sd

There seems to be a lot of issues with the "new" apps2sd... is there any way to enable the "old" apps2sd method that uses the ext and that we used with CM and other roms?
[Nexus One General] djdarkknight96:
Nope, goes on the fat32 area where your songs and other stuff go, I removed the ext4 i had to get 500mb back and the sdcard and the 2 scripts in this thread worked perfectly....
[Nexus One General] e4604:
Thanx, but say when cyan comes out with his rom(which ill go back to) will that require me create a partition all over again or what?
[Nexus One General] danguyf:
Me three. Every time I click the move button my phone reboots. *sigh*
[Nexus One General] Grimms:
Did this on the phone.. :)

Works in terminal emulator on the phone too :)

this is how i did it:

$su

$su#pm setInsatllLocation 2

this was done in Better Terminal Emulator Magic(free on the market)

EDIT:

I have the same problem as somebody else talked about, when trying to move an app the phone just reboots, the same happens when i try to install a new app from the market.. I LOVE NANDROID :)
[Nexus One General] djdarkknight96:
I always keep a copy of my sd card on my computer so if I have to get a new Sdcard, My whole phone (with nandroid files) is backed up. I can wipe the card and partition whatever size ext 2,3,4 or just the fat32 in recovery with Amon_RA or Clockwork....So if it has to go back to the old way, I'm good to go!:D

Edit: It was working fine now reboots...NANDROID IS MY FRIEND!!!! Will check up on this later!
[Nexus One General] e4604:
ah, thats true, totally forgot you could do that with custom recovery...cool beans:)
[Nexus One General] Markdental:
I don't think this works. I installed Google earth and it said it was on my sd but it still removed my internal phone memory as well. After uninstalling from the SD card the memory went back to my phone.

For those with all your apps on SD card. What is your internal free memory? Anyone else seeing what I am?
[Nexus One General] Mikey:
If it shows that its on card, then it is.

remember that data still gets saved on phone. That app is a data hog.
[Nexus One General] lwclam:
how can I revert the setting? 0? 1?
[Nexus One General] bobdude5:
worked like a charm :)
[Nexus One General] moffe:
When I'm change setInstallLocation to 2, all my installations from market makes nexus reboot same is if I want to move the existing apps on the phone.

Why does this happen to me? I have few GB:s left on my 16GB sd card.

So that shouldn't be the problem... :confused:
[Nexus One General] dudyk:
I am having this problem as well, from what I understand in the logs it seems that the package manager doesn't give the com.android.defcontainer the permissions needed to create the encrypted storage.

I'll investigate further and see if I come up with anything usefull.
[Nexus One General] Dror520:
i did this and installed a bunch of apps and then when i rebooted all the apps disappeared and when i go to manage apps i see them with a grayed out app icon with sd sign on them.

Does anyone have the same problem? thanks!
[Nexus One General] sugardad:
For X=1 Do

First Check your Current Install location

pm getInstallLocation

$ pm getInstallLocation
pm getInstallLocation
2[external]

Then set It to your Desired..

pm setInstallLocation X

$ pm setInstallLocation 2
pm setInstallLocation 2

X=1 : Internal Storage ONLY

X=2 : External Storage ONLY

X=0 : Auto (Choose Inst. Location by App Author Permissions)
[Nexus One General] vibesnake:
No problems on my phone.. I used the Terminal Emulator command and everthing is working as normal.. moved few apps except the ones with widgets, and rebooted the phone, worked fine. no issues at all.. going to install new apps from market and see what goes on... will update.
[Nexus One General] johnboywilson:
I have tried this also. Coming from cm rom full wipe and install of froyo.

Did the little adb shell tweak on the phone with terminal.

Apps moved to sd card fine.

Reinstalled all my apps with titanium to sd card also fine.

Rebooted phone all apps gone.

They are all showing in the applications menu but are greyed out.

Do we think this tweak is only working on certain phones and not everyones.

Other than this i love froyo, just had to go back to cm rom as i have over 200 apps.
[Nexus One General] moffe:
Just tried "Kitchen Timer" from market, it supports installation of the application on sd card.

When I try to move it to sd, phone reboots :( What could be the problem?

I went from CM 5.0.6 to froyo, without wipe. Everything works fine except this.
[Nexus One General] Raziel21:
Having the same problem here
[Nexus One General] cdmove:
can i do this in the terminal emulator??
[Nexus One General] jblazea50:
yes; 1st type su, then enter, then pm setInstallLocation 2
[Nexus One General] dixxa:
This tweak doesn't work for me.

I noticed some interesting stuff though, the directory .android_secure is chmod 000

Maybe that's why we can't move apps2sd.

when I try to chmod it 744 or anything else I got a error read-only file system.

but it's only for this directory. We should investigate in this more I think.
[Nexus One General] cdmove:
cool, thanks. I'm going to try this right.........NOW!!!
[Nexus One General] attn1:
pm setInstallLocation 0 - default.

pm SetInstallLocation 1 results in applications installed to ROM and are not movable to SD until the setting is changed to 2.

This is a pain in the ass. If someone wants a cookie, write a one button app that simply toggles between 0, 1 and 2 and displays status.
[Nexus One General] cdmove:
when i tried to move an app to sd...the phone reboots? and shows the X animation (the animation lasts less than 10 seconds) and then back to the main screen...
[Nexus One General] moffe:
Exactly the same for me :(
[Nexus One General] qwalker:
Re: Force all apps to SD on FROYO

Same for me...There is an app called 'kitchen timer' in market which has been updated to support froyo a2sd, so the move button is enabled without this pm change. But the phone also reboots when i tried to move the app.

I flashed paul's update zip on cm5.0.6, without wipe. I am using Launcher pro. Anyone has same situation?
[Nexus One General] dl.zerocool:
Doing it with SU.

Thank you !!!

I even't consider doing it with su then reboot before try installing.

Thank you !

[EDIT]

Of course after that, I had to go to -> applications -> move each application to SD.

Apparently not the entire application is moved to sd, only a part.

But well it works for all application and that's exactly what I needed.

[EDIT2]

New apps are automatically installed to SD ;)

[EDIT3]

If you had widget application installed before doing all the trick.

Then you have to reinstall them, just move it from sd make them disappear from widget menu and screen.

Of course when you reinstall them, they will be installed on sd ;)
[Nexus One General] cdmove:
i have the same set up as you. maybe this is why?

not really important, i can wait for Froyo CM.
[Nexus One General] chrisoyh:
After a reboot, do the widgets appear for selection at the home screen? Thanks.
[Nexus One General] lolittle:
After reboot i lose most apps that was on SD and all widgets accept stock :/

gave it 5 mins came back and most of them hav re-appeared... lost 11 apps in total .. they are installed just either with just a package image and 0.00 bytes or sum weird SD card image with the right amount of data :/ only option is to uninstall them all though
[Nexus One General] Chinpokomon:
That's because it is a command on the device. You can either do the command like this:

> adb shell pm set...

or like this

> adb shell

# pm set...

You are running this command on the device, not on the PC connected to the device.

Alternatively, you could run the pm command from a shell on the device and not even use a PC.
[Nexus One General] Chinpokomon:
Actually that was talked about at the Keynote. The reason has to do with availability. As others have mentioned that after reboot their widgets don't show correctly, that is because they are on the sdcard and it hasn't mounted at that point. Froyo Apps2SD works best for games, and the like. I moved Google Earth, Homerun 3D, and several other large apps and they work great, despite not haven't been actually configured to run with an Apps2SD entry in their manifest. I expect this won't be a problem as developers update their apps, but in the meanwhile this trick works to move apps that can run cleanly on the sdcard, but that aren't currently configured to do so.
[Nexus One General] sugardad:
In general

AFAIK till now some apps, live wallpapers, apps with widgets and especially widget only apps cannot be moved to SD and SHOULD NOT be moved for stability reasons (It's your call)

At first boot device boots clean, checks the Installed apps list and then checks the encrypted folder of apps @SD

slowly after check is done and all apps are verified and pass the process all apps will be In place @ your main menu.

My device is Bootloader Unlocked

and never had any problem since I received the FRF50 (and even downloaded the .zip provided here)

I'm running the official (Clean) FRF50 (

not

the Modaco Build currently)
[Nexus One General] Chahk:
By the way, the new "-s" switch on package manager forces apps to install onto SD Card even with InstallLocation being set to "0". Only caveat is that you have to do it manually:

adb install -s path-to-apk\name-of-app.apk
[Nexus One General] Markdental:
Does this work better than using the "move to SD" after using the method in the OP?
[Nexus One General] Chahk:
It's not better or worse, just a different way to force an app to the SD Card. The plus is that you don't need to change the default location (new installations from the Market will still go to the internal memory). The minus is that you need to download (or pull) the APK and (re-)install it manually via command prompt.
[Nexus One General] Gr8gorilla:
+1

Also any apps with a widget will not work from SD card. This I believe has been stated. Any other app works and the apps with widgets themselves will work but the widget will not work. This is not a terrible implementation of Apps to sd.

Also don't forget this seems to work best with a wipe and clean install. I had reboot problems with an install over a non-wiped CM 5.0.7-test2. Wiped and everything works fine.
[Nexus One General] Buck Shot:
thanks to the thread maker. I have the option to move all. But when i move it still shows like 300kb on the phone from that app. But i cant complain when im moving an app thats 6.25mb Those damn puzzle games my daughters play with are big. 91mb free on phone. MORE APPS MORE APPS!! LOL
[Nexus One General] joel.bourquard:
Titanium Backup

Hi guys,

I just wanted to let you know that I added support for externally stored apps, in Titanium Backup 3.1.7 !

So (unless I missed something) you can now backup all your Froyo installed apps with TB :)
[Nexus One General] lwclam:
I got it! Thank you very much!
[Nexus One General] kilroy7777:
awesome job worked good.

i wasn't able to move them all. but it worked fine without modifying card at all with a default fat32 partition.

nice find
[Nexus One General] overground:
I wanna cookie! :p Well, I didn't write an app, but this works almost as well.

1. Download the attachment, unzip, then place all 4 files in /sdcard/gscript

2. Get GScript from the market

3. Get BarTender from the market (you can use Bar control alternatively, but it doesn't support folders).

4. Make a folder in BarTender and name it something like Install_Path, or whatever.

5. Open your newly created folder, then press the "+ Item" button.

6. Select "GScript" from the list menu that appears

7. In GScript press menu > press "add script" > press "load file" > press "save" then select the file just saved from the list. Repeat for the remaining 3 scripts (I left su checked, but probably not necessary).

Now, at the drop of the notification bar, you can view current or change your install options.

Note: These could be way more elaborate, but they're quick and get the job done.

Note2: Since 2.2, BarTender is displaying open folders oddly. Still works, just a little jumbled and discolored. Dev will fix tomorrow or the following day.
[Nexus One General] moffe:
Seems that the only way to get installation to sd card working is to do a wipe.

At least for me this worked...which is a pitty. After this I had to set up all widgets etc. again.

Well but now everything back as it was and apps to sd works :)
[Nexus One General] mamoulian666:
The 'pm SetInstallLocation' command doesn't exit/return for me. Just sits there. Indefinitely it seems.

I'm running it from within connectbot, having done 'su -' first, should be no different to the 'adb shell' or 'terminal' methods.

So it looks like it's having a problem changing the location... does it try to allocate the encrypted space when you set it to '2', and this is failing for me for some reason?

Do we know what files it create where on the SD? I can try deleting them then rebooting to see if it recreates them properly.

The '2' seems to be applied (even though the pm command does not exit) but I get the same issue as others with the phone rebooting whenever I try to install or move an app.
[Nexus One General] overground:
Check your current install location in terminal or adb shell:

pm getInstallLocation

The folder being added to is /sdcard/.android_secure
[Nexus One General] net.cat:
how did u do for apps/games's data? did u lost them?

howvere both Titanium and mybackup now are good with froyo ;)
[Nexus One General] mamoulian666:
pm getInstallLocation

returns

2[external]

but then the cursor just sits there on the line below, the command does not exit.

I tried deleting the .android_secure directory, after unmounting it. I rebooted and it's been recreated, and is mounted (not really sure how, its using tmpfs), and I can click 'move app' but it then reboots.

After a reboot the directory is still there and mounted, but empty.

So it suggests to me a problem creating/mounting the secure space.

...I assume the 'pm' command returns to the shell for everyone else, bit odd that it doesn't for me.

I was using CyanogenMod with apps2sd (manual) before flashing with the Modaco rooted Froyo .zip... I am assuming that will have overwritten all the CM a2sd stuff, but could there be some of it left lying around confusing things?
[Nexus One General] overground:
Did you wipe all your partitions and FAT32 the whole card. At this point, I'm kinda wishing I kept my partitions, cause this A2SD blows! Someone will fix this for us real soon, because even the masters can't live like this. :p
[Nexus One General] Chahk:
Are you doing this via ADB? If so, did you upgrade your SDK Tools installation to the newest version?
[Nexus One General] lordvikon:
hey i tried this but when i try to load the shell it its device not found

also when i try to set the location it says its not defined any ideas???
[Nexus One General] mamoulian666:
Nope, still got the ext4 + swap on the SD card, right now (without CM) it shouldn't see/mount those partitions, just the 6gig FAT32 one.

Nope, using connectbot (same as terminal) and doing 'su -' first.
[Nexus One General] abtin:
i use win7 64bit and download sdk android-sdk-windows06 but i cant conect with adb and say device not found
[Nexus One General] Chahk:
You need to also install the USB driver which is included in that package you downloaded.
[Nexus One General] 1wayjonny:
Hey I just thought I would chime in and put the nail in its coffin for the apps2sd. Is this thread I have mentioned my findings after messing with this for a few hours.

I came to find that the backup apps are only good for freeing storage on the internal memory after a discussion with my brother. He forwarded me a link which had another link which landed me at the android page explaining apps2sd in detail.

The page states:

This basically confirms my findings that the apps when moved to the SDCARD are only good for that android installation ONLY!

It leaves the user data behind as in the Cyanogen method but signs the move to sdcard *.apk and makes it secure.

Since this is locked down the only obvious reason to have this is just to back up files to storage card when running low and moving back when needed again.

BOOOOO!!!!!!!!!!

Well back to cyanogen for me for apps2sd

Link:

http://developer.android.com/guide/appendix/install-location.html
[Nexus One General] jonze5:
u gatta install the usb driver from pdanet. just google pdanet and download the 64 bit version.

that worked for mr on my 64 win7
[Nexus One General] jonze5:
wont unmount

after moving the apps 2sd.. whenever i mount my usb to my comp, it never unmounts. and when i take off the usb cable, phone freezes.. or it would still be on mount... so i have to reboot..

anybody else??
[Nexus One General] muzicman0:
I also have the soft reset issue (click on move to SD, and phone reboots)...can someone that this works for check to see what the permissions are on their .android_secure folder on the SD card. mine is ---------, and I can't change it to anything useful, and I'm wondering if that is the reason for the reset.

I am going to try to reset the permissions when I get home, but would like to know what it should be set to.

Thanks!

mm0
[Nexus One General] jblazea50:
are you using a .34 kernel? if so, that's a known issue for that kernel; if you don't want to deal with any issues, try using the stock kernel that came with Froyo (.32.9, i think)
[Nexus One General] brashmadcap:
How to fix most problems people are having.

First off, and I think this was mentioned before, if you are trying to pmSetInstallLocation 2, and you came from Cyanogen WITHOUT wiping, your phone will reboot any time you attempt to move or fresh install an app to the SD card. To reiterate, in order for this to work, if you moved from Cyanogen, you MUST wipe. Clearing cache, fixing permissions, etc. will not do the trick.

Secondly, if your launcher will not show your apps once you've installed them to SD, switch to Home++. Home++ re-populates the list of applications manually when you bring up the drawer with the applications in it. It's slightly slower (lazy load is what I think they call it actually) but it WILL re-populate the list every time you pull it up. It doesn't just rely on the links that you set. As far as adding app shortcuts to the home screen on Home++, I don't know; I haven't tried it yet. YMMV. Please let me know if this works and helps you. :D

- P

N1, froyo, rooted
[Nexus One General] ebernie:
Want an app?

Hi guys, I wrote a quick app that modifies installLocation. Requires root though.
[Nexus One General] muzicman0:
yep...a wipe fixed my issues. thanks.
[Nexus One General] overground:
Very nice...thanks. Unfortunately, this whole stupid schema does not seem to be a viable replacement for the previous implementations we've been used to.
[Nexus One General] ebernie:
This is just a temporary thing. A transition period before devs update their app to install to SD by default.

But this won't happen for all apps, some will need to remain in internal storage.
[Nexus One General] Chahk:
https://twitter.com/chahk/status/14552914687
[Nexus One General] overground:
Well, I don't have or want twitter, but I am of course interested if you received a response and it's contents. At least you're barking up the right tree. ;)
[Nexus One General] elnoxvie:
I am not sure why you guys want to change all apps to SD. Some applications like home replacement apps still best leave them on the phone or those with widgets.

I know it's painful but at least, those program can still work correctly. :)

Anyway, i have written a program to easily install them to SD in one click (The setup is a bit painful though). This is using another installation approach which required no changing of Install path and capable to force the program to install to SD even though the code is not modified.

The hassle though you need this program to install to SD everytime but if it's from market, it will be updated correctly to where you installed them, in my case to SD.

NOTE: For market program, you will need AppSaver to save APK file to your disk and use this program to install it SD.

Sorry, my english is a bit crappy but hope you guys enjoy the program as much as i am. :)

If you are happy with the program, please donate to this poor man. :)

Program attached:

required dotnet 3.5 to work + adb installed.

Thanks.
[Nexus One General] 1wayjonny:
No it is pointless if you read my posting on page 16, source.android.com states when it backs up to the SDCARD it serializes the *.apk to *.asec which can not be used with any other installation.

Meaning if you switch roms the apps2sd is defunct, even if you reinstall the same ROM the OS will not pick up the apps from the prior installation.

I have tested it for hours and thought this after many reinstalls of the same ROM, but the link on page 16 confirms that google designed it that way.

The only purpose this has is to free up internal memory without redownloading the app. It allows you to move it back and forth... thats it.
[Nexus One General] lolittle:
Thankyou .... just what i needed :)