Intuitive guide to Apps2SD? - Hero CDMA General

I knew this time would come....
I've got too many apps on my phone and Im running low on space, and I've noticed my phone has been dragging lately.
I have an 8GB class 6 SD card, so hopefully speed shouldnt be an issue.
I have yet to use A2SD...
If I partition my drive, do I lose everything that's on there? Obviously that's not a problem as I can just move everything over to my computer then copy it back, but if I can leave the data on there and partition that'd be great.
Im having a hard time finding a step by step "from day one" guide.
Mind pointing me in the right direction? The only thing Ive found in the wiki is moving to a new SD card with A2SD.
Im currently running DC 2.07.2

BACK UP SDCARD
Boot into recovery. Partition SD card (default values)
Download http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip
Flash above .zip as any normal ROM
Boot phone
Open command prompt and type:
adb shell
a2sd install
Tada.

Ok great, got that part down.
Now moving the already installed apps over to the SD card? What else do I do from here?
Thank you for the help!

Actually, looks like everything went ok...
ls -l /data reveals all the locations as /system/sd/app
I didn't bother to look at free internal space before installing, but my interanal free storage is now at 130MB. Sound right?
Last question i have for now....
Now that all my apps are on the SD card, if I were to flash a new ROM (say a new ROM Flipz comes out with) that has A2SD support... I dont' have to re-install them as both the apks, odex, and dalvik are all stored on the SD card right?

poor_red_neck said:
Actually, looks like everything went ok...
ls -l /data reveals all the locations as /system/sd/app
I didn't bother to look at free internal space before installing, but my interanal free storage is now at 130MB. Sound right?
Last question i have for now....
Now that all my apps are on the SD card, if I were to flash a new ROM (say a new ROM Flipz comes out with) that has A2SD support... I dont' have to re-install them as both the apks, odex, and dalvik are all stored on the SD card right?
Click to expand...
Click to collapse
The only version that I'm aware of that moves Dalvik-cache to the sd card is Apps2SD version 2.5. I don't know if anyone has that in the ROMs yet. Many of them are either using an Apps2SD that was built for Fresh 2.0d, Apps2SD version 2.0, or the Apps2SD which is common in the 1.5 builds.
Your apps in /data/app and /data/app-private are on the sd card. You can flash Apps2SD version 2.5 (A2SD) from http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip if you want to move the dalvik-cache.
EDIT: I really should read the instructions that was posted before I stick my foot in my mouth. The file is the one located at Darktremor, which is the version 2.5...so, yes...your dalvik-cache is on the sd card.

So I tried the above method, but all my apps stopped working and when I go to reinstall them, it says "Insufficient Space for App"...
What did I do wrong?
EDIT: Okay, nevermind, it seems to be working now. I tried installing the app again and it installed fine the second time. Trying another one now.

I did this recently and just found out that I cannot install/download apps from the market, it just gets stuck there. Does it know where its downloading too after a2sd is installed?

Related

All Cache to SD

i was wondering is there a way to put all the apps cache in the sd because for my search it seems like you can only do it for some. Im also running the Cyanogen rom 3.6
I know there is an app in the market named ClearMe (or there was) that will allow this if you are looking for a less manual method
Edit: you said all apps. I'm not sure of a method.... yet..
not just cache to sd, storage to sd
ruffrider5956 said:
i was wondering is there a way to put all the apps cache in the sd because for my search it seems like you can only do it for some. Im also running the Cyanogen rom 3.6
Click to expand...
Click to collapse
I have been wondering about a couple of things since I flashed Cyanogen's ROM. 1) Calendar storage is on internal storage. I have 5MB there so that sucks. Is there any way to change that? 2) Various programs, while the app itself is installed on SD, some data, but not all, goes to the phone's internal storage. This seems random. Is there any way to move ALL storage and ALL cache to the SD? When I was on JF v1.51, all data and cache was on SD. I have 63mb free internal but on JF I had 73mb free at all times. Now I fluctuate. Any thoughts?
aaronratner said:
I have been wondering about a few things since I flashed cyanogen's rom. 1) calendar storage is on internal. I have 5mb there so that sucks. Any way to change that? 2) various programs, while the app itself is installed on as, some data, but not all, goes to the phone. This seems random. Anyway to move ALL storage and ALL cache to the as? When I was on JF v1.51, all data and cache were on sd. I have 63mb free internal but on JF I had 73mb free at all times. Now I fluctuate. Any thoughts?
Click to expand...
Click to collapse
Why do you need 73mb free? Is 63mb not enough? I'm not trying to be a jerk, I just think you might be worrying about something that is not an issue. The phone works ok with 20+ MB free and works great with 30+ MB. If you have too much free memory, it is just sitting there doing nothing. You want to use the phone's resources the best way you can, not just have them sit there being unused.
I really don't see the point in moving ALL cache to SD. I've found that the phone boots up much faster if your Dalvik-Cache is using internal memory. It is about 30MB on my phone. I did move my app, app-private, media, and data to my SD card. I've heard arguments that it is not a good idea to move the data over but I have over 100 apps and my data folder is about 6 MB. So a Class 6 card could move that entire folder in about 1 second.
Nice first post, but...
Just for reference, I don't really care if I have 10MB free. My phone is running very smoothly. Most of the questions that I ask are purely for educational purposes. I was wondering what the difference was between the apps to sd I did on JF1.51 (I did it manually and I'll show it at the end of this post for reference) and the built in method in cyanogen's ROM. I was curious about why the free memory fluctuated on cyanogen's and not JF's.
I think that some apps are using the phone's internal memory and some are using the ext2 partition. One example: I use NewsRob (an RSS reader). It asks me where I want to store the downloaded RSS feeds and I said my SD card. It created a folder and stored the file on my SD card (not the ext2 partition but the fat32). However, the internal memory was also affected even though the app itself is on SD (on ext2). Another example is my calendar app. The storage, of which I have 5MB, is stored on internal memory. On JF's it was not. Why? What is done differently?
If I enter the following commands in terminal emulator...
Code:
su
df system/sd
...I get 553920K total, 106180K used, 447740K available (block size 4096).
However, when I go to Settings > SD card & phone storage I get 540MB under total space and 409MB available.
That doesn't seem to jive or am I missing something? Hey, everything seems to be working well so I don't really care on that end. However I do care that I don't understand why this is the way it is.
Reference: My apps to sd method on JF.
In terminal emulator
Code:
busybox cp -a /data/app /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
Then in Recovery Terminal (Alt+X on JF menu in Recovery Mode)
Code:
mount data
rm -rf /data/app
ln -s /system/sd/app /data/app
rm -rf /data/data (optional)
ln -s /system/sd/data /data/data
rm -rf /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot
I'm using "move cache for root users" - first result after searching for "cache."
It moves Browser, Market, GMaps, Street View, Gmail, and Steel caches to SD.
If you have apps2sd I would assume all caches would be on the SD card, not positive tho.
juphro said:
I'm using "move cache for root users" - first result after searching for "cache."
It moves Browser, Market, GMaps, Street View, Gmail, and Steel caches to SD.
If you have apps2sd I would assume all caches would be on the SD card, not positive tho.
Click to expand...
Click to collapse
using that program as well and yes it does put all the cache on your sd card.
imbonez9 said:
using that program as well and yes it does put all the cache on your sd card.
Click to expand...
Click to collapse
I too use that program. It's called TA Utility. It works well but I'd like more than that. For example, as stated in my original description of the "problem" is that there are other apps that don't get included in this. For one thing, calendar. That's 5MB right there. There are also various program that use some internal storage even if they cache the bulk of the files on the SD (fat32 partition). I don't actually think that this is a problem. I am just very interested in understanding the inner workings of the a2sd that I had done on JF and the a2sd that is done automatically on Cyanogen's ROM.
Another program that is a "problem" is the Work Email that was ported over by Cyanogen from myTouch. Even if you don't use it, opening it once adds more than a MB of data to the internal storage. While I removed the storage, if I wanted to use the Work Email app for some reason it would "cost" me a meg. Again, this is not a real issue as I have nearly 200 apps installed and still have 64MB of internal storage left. I just want the "why" behind all this.
My question, then, is why do certain apps "cost" me internal storage while others do not? It cannot be random. There needs to be a reason and there also needs to be a way to change that. I just don't know why and how.
aaronratner said:
I too use that program. It's called TA Utility. It works well but I'd like more than that. For example, as stated in my original description of the "problem" is that there are other apps that don't get included in this. For one thing, calendar. That's 5MB right there. There are also various program that use some internal storage even if they cache the bulk of the files on the SD (fat32 partition). I don't actually think that this is a problem. I am just very interested in understanding the inner workings of the a2sd that I had done on JF and the a2sd that is done automatically on Cyanogen's ROM.
Another program that is a "problem" is the Work Email that was ported over by Cyanogen from myTouch. Even if you don't use it, opening it once adds more than a MB of data to the internal storage. While I removed the storage, if I wanted to use the Work Email app for some reason it would "cost" me a meg. Again, this is not a real issue as I have nearly 200 apps installed and still have 64MB of internal storage left. I just want the "why" behind all this.
My question, then, is why do certain apps "cost" me internal storage while others do not? It cannot be random. There needs to be a reason and there also needs to be a way to change that. I just don't know why and how.
Click to expand...
Click to collapse
I''m not sure its the app that is taking up the room but the space it needs to park it on the phone. Like i installed docs2go. It adds to my internal but not as much as the whole program is.
[SOLVED] - Solution
I have figured out the answer to my original question for all those who are interested. I wanted to know the difference between the A2SD that I used on JF (I did it myself) and the auto-A2SD in Cyanogen's ROM. It's very simple. The /data/data/ folder on Cyanogen is not moved to SD whereas I has it sysmlinked on JF.
If you are running Cyanogen, run the following in TE...
Code:
su
du -h /data/data/
to see what you have stored. I am going to spend some time on the forum looking to see what, if anything, can be safely moved (in a stable way) to /system/sd/ on Cyanogen. I will either report back here or start a new thread if I think my findings are worth sharing (meaning, if I come up with anything more than what everyone else but me already knows, LOL). I suspect it might be a bit of an issue since Cyanogen warns against using any other A2SD methods while using his ROM. Time will tell.
I believe that the reason /data/data is not moved to sd anymore is because it proved to be unstable for most (not all) people here. Also, if you manualy move /data/data to sd at some point on Cyan's rom it will be moved back to internal memory automaticaly next time you reboot. This is just the way Cyan has it set up due to the problems people had when the whole data folder was moved.
Agreed
borodin1 said:
I believe that the reason /data/data is not moved to sd anymore is because it proved to be unstable for most (not all) people here. Also, if you manualy move /data/data to sd at some point on Cyan's rom it will be moved back to internal memory automaticaly next time you reboot. This is just the way Cyan has it set up due to the problems people had when the whole data folder was moved.
Click to expand...
Click to collapse
I fully agree with that. /data/data on SD was NEVER stable for me. I don't think my phone lasted more than three days after moving it. My main reason for posting was to understand what was different between what I did on JF and what Cyanogen did by default. I now fully understand the difference and, most importantly, the reasons behind it. I just have to keep and eye on which programs write data and how much data they write and what, if any, should/could be deleted. The calendar storage, for example, cannot be deleted or calendar entries disappear. For me, it's 5.5MB.
Perhaps, if I am really bored, I (or someone else) will write and app or script that can remove data/cache for ANY app added to a list. For now, I have the obvious caches moved over and a cache cleaning app for those caches moved to SD. A more efficient and more customizable method for this process is definitely needed but I have learned that these "problems" seemed to get "solved" as Android grows up. For now, manual methods will have to do.

Apps 2 SD on Modaco 1.1 ROM

Hi there,
I've got everything working on my newly reflashed Sprint Hero. (Thanks to everyone that contributed to the gigantic thread....read all (currently) 28 pages...you guys made it easy).
My question is whether apps 2 sd is actually working?
I've put completely bare ROMs on my hero (reverted back to stock ROM, wiped it, wiped & partitioned the sdcard to fat32, ext2 & swap, then flashed with 1.1). I then go to install an app and it doesn't show up on the SD card and my internal memory decreases (indicating that its not on the SD card?)
Don't think I've missed any relevant details, but Im keen to get this working.
Any help would be greatly appreciated.
It sounds like you did everything correctly.
try this:
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/sd
ls
This should say:
[0;0mapp [0m
[0;0mapp-private [0m
as in /system/sd/app
/system/sd/app-private
then type:
cd /system/sd/app
ls
this should list the programs on the ext2 partition of your sdcard and, if you type:
cd /data/app
ls
you would still see the programs listed, but it is just telling you what you have installed they are not actually there, from what I understand.
Also, the internal memory on my phone also went down, but it went down 5 or so mb instead of 20 or so mb.
While I'm here would you mind telling me if when you said
dom2114 said:
(reverted back to stock ROM, wiped it,...
Click to expand...
Click to collapse
do you mean you reverted to a Nandroid backup then you performed a factory reset, and then flashed with 1.1, because I was wondering if this is possible?
hi there crake
really appreciate the detailed reply.
did everything you said and everything was exactly as you described, except that in /system/sd, i also have a lost+found folder
did the next 2 steps you outlined and yes, /data/app was a duplicate of /system/sd/app. I didn't realize that these were the locations (one being the actual location and the other being the 'symlink') of the ext2 partition.
One final question for you. How big was your fat32 partition? It didn't look like there was a way to control how big you want the fat32 partitions relative to the ext2 partition (& the swap partition...not sure what that is).
In answer to your question: yes, thats exactly what I did.
I wanted a 100% free implementation of modaco 1.1 (i.e. no apps etc). Here's what i did just FYI:
Flashed my nandroid backup back on
Hard reset it
Turned the phone on and just put my basic gmail/facebook login details in
Turned it off and decided to take another nandroid backup in case I wanted to go back to this state...(so I now have 2 nandroid backups)
Enabled USB transfer and copied this new backup off
Wiped the SD card & dalvik cache and then partitioned the card to fat32, ext2 and swap
Transferred the Modaco ROM to the SD Card
Flashed the phone w/ Modaco
End result was a 100% 'stock' Modaco ROM...if that makes any sense.
Appreciate an answer and any info as to the partition sizes.
EDIT:
Realized that this 'new backup' I performed (in the 4th step above) is useless if I end up wiping/repartioning the sdcard as this ROM refers to apps that the modaco ROM moved to the SD. These will obviously be removed after a format/repartition.
Thanks for the info, I used the 2gb (1.8-ish) sd card that came with my phone, after partitioning, the fat32 partition was somewhere around 1.4 gb. There was no option to modify partition size so I assumed it partitions the ext2 to a predetermined size and the rest is partitioned as fat32.
crake001 said:
Thanks for the info, I used the 2gb (1.8-ish) sd card that came with my phone, after partitioning, the fat32 partition was somewhere around 1.4 gb. There was no option to modify partition size so I assumed it partitions the ext2 to a predetermined size and the rest is partitioned as fat32.
Click to expand...
Click to collapse
I believe its around 450MB, mine is like 446MB as ext2, the rest of my 8GB sd card is FAT32. It automatically did this, but when I go to All Applications, Apps to SD isn't even listed as an installed application. I went to the market place and installed Apps to SD 2, and it told me I needed to read the tutorial (wtf ?).
So my guess is, the MoDaCo ROM does all the work for you that the Apps to SD program would normally do, and it just always saves it to your SD card.
simplyphp said:
I believe its around 450MB, mine is like 446MB as ext2, the rest of my 8GB sd card is FAT32. It automatically did this, but when I go to All Applications, Apps to SD isn't even listed as an installed application. I went to the market place and installed Apps to SD 2, and it told me I needed to read the tutorial (wtf ?).
So my guess is, the MoDaCo ROM does all the work for you that the Apps to SD program would normally do, and it just always saves it to your SD card.
Click to expand...
Click to collapse
Yeah, thats the conclusion I came to. In the adb shell, if you type apps2sd, something starts happening...Im not smart enough to know what though. Figured Id mention if someone wants to play around
Thanks you all for the info. This was exactly what I was looking for. Wanted to know the size of the ext2 partition and how to control it if we even could but looks like it's automatic as stated. Then to find a way to check to make sure the apps were getting installed on the partition.
I installed the MoDaCo 1.1 over top of all my apps/settings etc. I do have my SD card partitioned via my recovery image option.
What do I need to do to get all those apps over to my sd card and off my phone?

APPS2SD Confusion.

From the recovery image to get APPS2SD by simply running the format the SD using Ext2+Swap+fat32 right?
I have a class 6 card. How do I know if this actually works? I formatted and my internals space did not change?
Are there major benefits of doing APPS2SD?
Yes, first format the SD card.
To see if its working,
Check your Settings -> SD card & phone storage -> Internal phone storage. Make note of what it is at. Install some apps, maybe even try reinstalling some of the apps on your phone. Then, check the internal storage again and see if you have some more space.
As for the benefits, it just frees up your internal memory on your phone. I don't think it makes your phone faster or anything.
The question I have about APPS2SD is this. How come when I use it my internal memory drops after I install apps. I have not used it since I had to go back to the original Sprint ROM to do the update and installing the same apps I had before, my internal memory was about the same as it was when I used APPS2SD. I used the recovery screen to format to Fat32-Ext2-Swap and files were on the sd card when I checked, but my internal memory still drops everytime I install something. What is the real benifit of this if the internal memory drops anyway. I am real confused about this and have not decided if it is worth using since I have read it can damage your memory card. Can someone with knowledge of how this works please explain it.
Thx for all the great Info found here.
AppsToSD only puts the apps themselves on the SD. The internal memory is still used by the boot-cache, dalvik-cache, and actual app data like settings, saved games, cache, etc.
Must it be ext3?
What if i have ext2?
rvenes said:
Must it be ext3?
What if i have ext2?
Click to expand...
Click to collapse
If youre using one of the newer recovery images there should be an option to upgrade ext2 to ext3
as for the difference...im not to sure exactly
Tipharet said:
How do I know if this actually works? I formatted and my internals space did not change
Click to expand...
Click to collapse
Answer: . . . . .
nelson8403 said:
Just because the apps are installed to the SD card doesn't mean they don't store things on the phone.. cache is stored on the phones, theres a /data/data folder on the phone that the apps populate as well, it just doesn't take AS MUCH space on your phone as a non appstosd
also to make sure your apps are working go into your adb shell, type in
Code:
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
Click to expand...
Click to collapse
rvenes said:
Must it be ext3?
What if i have ext2?
Click to expand...
Click to collapse
As far as I know it works just fine on ext2.
As far as the difference, the nutshell version is that ext3 is pretty much just ext2 with journaling hacked in. If you don't know that that means, do a google search on "journaling file system".
There should be no downside whatsoever to switching to ext3. It can still be read from and written to by anything that can use ext2, and it adds more robust error recovery.
Caveats: I'm not sure how well, or if, that error recovery works on flash memory devices. My expertise is working with large servers that use hard disks. I also don't know if there are tools in our android builds that take advantage of the benefits that ext3 provides.
Having said that, I'm still confident that choosing to upgrade to ext3 offers NO downside, and while there might also be no upside, there is also the potential for a huge upside.
My advice: Do it.

How to install apps2ext on paul 2.2

Hello. I am struggling with this for three days now. I can't seem to make it work. So I think I need a detailed how-to because obviously I am doing something wrong.
I am using this clockwork recovery image: http://android.modaco.com/content/z...27215/oled-tft-2-5-1-8-clockworkmod-recovery/
Then I go to clockwork recovery mode and create 1GB ext partition. Wipe everything from everywhere.
After that I install paul's alpha3 prebake.
What happens is I have 1GB less storage on my class4 8GB SD, but don't see the ext3 partition (where should I look for it exactly)
In normal use the only way you'll know if its working or not is if you run out of space or not.
To find your ext partition look in '/sd-ext' or '/system/sd', you might need a file explorer that can use root privileges, I use estrongs. If the directories 'app' and 'app-private' are there then its working.
If your still sure its not working double check that the prebaked version comes with apps2sd...not all do.
Thank you. I think the prebaked alpha3 version doesn't have the apps2sd scripts. I tried to install Darktremor Apps2SD 2.7.5.2 but it killed my OS and had to flash it again. So is there any specific a2SD that I can use with this rom?
OK. I installed the Japanese jellyfish ROM yesterday and everything works like a charm so I guess prebaked alpha3 didn't have the apps2sd scripts.
Thank you again for your help, mate!
what is apps2ext?
It basically gets some storage space from the SD card and lies the system that it's part of the apps section of the internal memory
cynepmeh said:
It basically gets some storage space from the SD card and lies the system that it's part of the apps section of the internal memory
Click to expand...
Click to collapse
so it is basically like a different storage architecture for the SD card? Like we can have fat32, ntfs etc?
I am no expert here. From what I know - scripts create some symlinks so the app storage is actually placed on the sd, but the system doesn't know that and thinks it is still the old place. The path is the same, but it actually is something like a shortcut. The ext is probably because it needs to be linix partition or something...
This is what I think and it may not be true however

Moving Data from SD card

I have a stable reloaded 500 setup on my cell & do not want to wipe it. I currently have a 16 gig SD where all of the apps are stored. I want to install a 64gig SD card without having to wipe & move everything to it. What is the easiest way to do this? I tried copying everything from the 16 gig SD card to the 64 then I installed the 64 but a lot of things were missing, mainly the apps. So Im not sure how to get all the apps and everything currently on the phone to the 64 gig sd card. Thanks for the help!
Not sure if your plan will work or not, but you might just need to run a2sd reinstall and see if your apps come back.
Just a guess here, but it's possible a2sd needs to see hidden files that set certain a2sd "flags". Sometimes when you copy files via drag and drop you miss hidden files (ie files whose filenames begin with a " . " ).
Sent from my PC36100 using xda app-developers app
How do I run a2SD re install? Can I just backup all my apps to titanium then wipe a2sd and jus setup a new a2sd on the 64gig sd card? I just want to get around wiping the ROM since its been solid for over a year. Also, if you setup a2SD does all apps go to there section of the SD and not internal storage on cell? I notice that whenever I install an APP some space is still taken up on internal storage...I appreciate the response!
well, before we cover all the other questions, let me just focus on the first one.
if you did this :
I tried copying everything from the 16 gig SD card to the 64 then I installed the 64 but a lot of things were missing, mainly the apps.
Click to expand...
Click to collapse
then just try the following additional step:
- launch terminal emulator (hopefully this is not one of the missing apps)
- enter the " su " command first
- then enter the command " a2sd reinstall "
after phone reboots do you see your apps?
A couple of things. Firstly before you try and use a 64GB Micro SD Card on an OG EVO you must first make sure it is formatted correctly. Otherwise it will not work properly, if at all. The second thing is, if your going to run A2SD. You must partition your SD card first.
I did format. The phone read it perfectly. But I dont want to have to wipe. Just transfer what is on my a2SD parition & move everything from the 16 gig SD to the 64gig SD & also whatever is on internal to stay there.
Pivo187 said:
I did format. The phone read it perfectly. But I dont want to have to wipe. Just transfer what is on my a2SD parition & move everything from the 16 gig SD to the 64gig SD & also whatever is on internal to stay there.
Click to expand...
Click to collapse
Did you partition the 64GB card for a2sd? What don't you want to have to wipe?
TEAM MiK
MikROMs Since 3/13/11
I dont want to have to wipe the ROM & reinstall the ROM and all the apps I have on a2SD currently. Or I cannot avoid that?

Categories

Resources