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.
Related
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.
Im using the Fresh .04 ROM. I understand Apps2SD is installed and functional. I did format my SD card correctly before installing and I suspect it should be working.
My question is:
I have been pushing a few apps to my /system/app directory using adb.
Is that on the SD card now or am I just pushing to the system RAM area and not taking advantage of Apps2SD.
I noticed my available space is at 90MB and with the Modoco ROM I had 104 available with most of these apps.
I feel like Im doing this wrong.
Apps2sd is not functional in 0.4. It was a bug that was discovered after the fact. You aren't doing anything wrong.
0.5 is being tested by about 10 people right now and all are saying it's working fine. So be patient and 0.5 will be out later.
What apps are you pushing to /system/app?
No, /system/app is not on the SD card. But it's not on the data partition either. The internal memory is partitioned as follows as far as I can tell:
/system 174MB total, generally around 10-20MB free depending on ROM and so forth
/data 163MB total. This is what reports as "phone storage" in the OS. Starts at around 140MB free.
/cache 133MB
I'm not sure how the rest of it really works but that's the gist of it.
AppsToSD moves the /data/app and /data/app-private folders (and nothing else) to the SD card. These are the folders that contain your Market and downloaded .apk files. Other things in the /data directory that use "phone storage" are the boot cache, dalvik cache, and app data (browser cache, preferences, saved games, etc).
jonnythan said:
What apps are you pushing to /system/app?
No, /system/app is not on the SD card. But it's not on the data partition either. The internal memory is partitioned as follows as far as I can tell:
/system 174MB total, generally around 10-20MB free depending on ROM and so forth
/data 163MB total. This is what reports as "phone storage" in the OS. Starts at around 140MB free.
/cache 133MB
I'm not sure how the rest of it really works but that's the gist of it.
AppsToSD moves the /data/app and /data/app-private folders (and nothing else) to the SD card. These are the folders that contain your Market and downloaded .apk files. Other things in the /data directory that use "phone storage" are the boot cache, dalvik cache, and app data (browser cache, preferences, saved games, etc).
Click to expand...
Click to collapse
Ok, I was pushing a few of the Original Sprint Apps and some of my purchased apps. Unfortunately, I had to download a couple apps from a "not so legit source" for the short term due to the Market screw up. However, dont look down on me, I only got the apps I legitimately purchased and couldnt download again after I formatted my card and such going from Modoco to Fresh.
Anyway, I just adb push "app name" /system/app after a mount from
a command prompt.
Once the Apps2SD is fixed, should i be doing this process a different way to take advantage of the SD card space.
Yeah, push to /data/app. There is a limited amount of free space in the /system partition.
jonnythan said:
Yeah, push to /data/app. There is a limited amount of free space in the /system partition.
Click to expand...
Click to collapse
Easy enough. Thanks.
jonnythan said:
Yeah, push to /data/app. There is a limited amount of free space in the /system partition.
Click to expand...
Click to collapse
Ok, so I loaded the Modoco ROM and pushed to /data/app. It seemed to push fine, but I dont see the app.
What am I doing wrong.
Did you reboot after you pushed it there?
jonnythan said:
Did you reboot after you pushed it there?
Click to expand...
Click to collapse
Yes, a I get a loop at the Sprint logo. I have tried doing a Nandroid Backup 2x and then upgrading to the new Modoco and pushing. Everything works fine until I push an app to the /data/app directory, then I get a loop.
Im going to try pushing to the sdcard and move to data/app using SU file Manager.
What file are you trying to put there?
jonnythan said:
What file are you trying to put there?
Click to expand...
Click to collapse
The "test" app im pushing is the Droid Facebook app. Facebook.apk.
I tried pushing Sprint_TV.apk too, with no success.
Its odd. If I push anything to that directory, it loops the startup at the Sprint logo. I just ended up pushing to /system/app and decided to forget about it. Im a neophyte and was getting ready to throw the phone out the window.
Sprint_TV might need to be in /system/app, which is wher it normally is. The Droid Facebook app might simply not work on the Hero. So...
jonnythan said:
Sprint_TV might need to be in /system/app, which is wher it normally is. The Droid Facebook app might simply not work on the Hero. So...
Click to expand...
Click to collapse
After alot of trial and error, I finally got the apps in the right place and to work correctly.
I pushed to /data/sd/apps
That appears to be where Apps2SD is setup to throw the apps.
Thanks for hanging in there with me on this thread.
Both apps work great in that directory. In fact, I moved alot of the stock apps to that directory and they worked fine. None of them got moved automatically. It seems the only time Apps2SD moves the apps is upon installation, so pushing or for apps that were previously installed, they didnt get moved.
Hey, it works for me, hopefully someone else will find this useful.
Lappie2010 said:
After alot of trial and error, I finally got the apps in the right place and to work correctly.
I pushed to /data/sd/apps
That appears to be where Apps2SD is setup to throw the apps.
Thanks for hanging in there with me on this thread.
Both apps work great in that directory. In fact, I moved alot of the stock apps to that directory and they worked fine. None of them got moved automatically. It seems the only time Apps2SD moves the apps is upon installation, so pushing or for apps that were previously installed, they didnt get moved.
Hey, it works for me, hopefully someone else will find this useful.
Click to expand...
Click to collapse
Apps that are in /data/app (the default location without apps2sd) will get moved to /data/sd/app and then a sym link is created that points from /data/app to /data/sd/app. Anything that is in /system/app (all default system apps) will not get moved. Modaco's rom had moved a few of them there but people were receiving FC's and moving them back.
Fairly new to custom ROMs... Started with Damage 2.0.2 and been updating all the way through to 2.0.7.2, but never attempted the A2SD. Can someone point me to a good how to guide on setting this up for the first time. I have found a few forum how-to's on switching SD cards with A2SD, but most things i am finding with searches are assuming it is already setup.
Please attach links or paste in a simple how-to for me. Thanks.
Also, will I be able to keep this ROM intact, (i know i will have to backup the SD card to repartition it...), but will i have to wipe the ROM as well after the ext is built to reinstall the ROM?
Make a copy of your SD card to your computer.
Reboot into recovery.
Partition Your SD card, I used 0 swap and 380 something for the ext.
Toggle MS through recovery and copy your SD card files back to your card.
Reboot.
Get Quick System Info from the market.(It shows how much memory is left on your partition, basically an easy way to tell if it worked)
durandetto said:
Make a copy of your SD card to your computer.
Reboot into recovery.
Partition Your SD card, I used 0 swap and 380 something for the ext.
Toggle MS through recovery and copy your SD card files back to your card.
Reboot.
Get Quick System Info from the market.(It shows how much memory is left on your partition, basically an easy way to tell if it worked)
Click to expand...
Click to collapse
What do you mean by toggle MS through recovery?
It's an option in recovery it allows you to view your SD card on you computer. MS stands for Mass Storage.
durandetto said:
It's an option in recovery it allows you to view your SD card on you computer. MS stands for Mass Storage.
Click to expand...
Click to collapse
So how do I move the current apps over to the SD card once it is partitioned and up and running?
http://geekfor.me/faq/apps2sd/
This link mentions some other methods to check if it's running. However, it's for fresh rom. Maybe others can chime in to say if the information is the same for damage control roms. As far as I know, the main trick is just partitioning the sdcard using the recovery tool as durandetto mentioned. If the rom sees an ext partition, a2sd will automatically start working. I too am using dc2.0.7.2.
For me, quick system info shows a2sd working, but my internal storage is much less than I thought it would be. I understand that app data is still stored on the internal storage, but can anyone tell me if my numbers are normal or not?
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
I probably have under 50 apps installed.
jonesdana said:
So how do I move the current apps over to the SD card once it is partitioned and up and running?
Click to expand...
Click to collapse
Your apps will automatically be installed on your sd card, at least mine were.
e30user said:
http://geekfor.me/faq/apps2sd/
This link mentions some other methods to check if it's running. However, it's for fresh rom. Maybe others can chime in to say if the information is the same for damage control roms. As far as I know, the main trick is just partitioning the sdcard using the recovery tool as durandetto mentioned. If the rom sees an ext partition, a2sd will automatically start working. I too am using dc2.0.7.2.
For me, quick system info shows a2sd working, but my internal storage is much less than I thought it would be. I understand that app data is still stored on the internal storage, but can anyone tell me if my numbers are normal or not?
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
I probably have under 50 apps installed.
Click to expand...
Click to collapse
I have around the same amount of apps and I usually have almost 80mb after I clear my cache.
Does it matter if the apps were downloaded from the market or from another source? Because I have about 35MB of internal storage left as well but my A2SD appears to be working as well. I might have 25 apps.
durandetto said:
I have around the same amount of apps and I usually have almost 80mb after I clear my cache.
Click to expand...
Click to collapse
I recently cleared my dalvik cache to fix some market apps not showing up. However, I just did it again so I can compare results to the numbers posted earlier.
Before:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
After wipe of dalvik cache:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.24MB
Is the dalvik cache the cache you're talking about?
Jonesdana - it might help if you mention what size sdcard you have if you're curious about typical partition sizes. I know that's one of the things I was curious about when figuring this stuff out. I have an 8gb card and set the ext3 partion for 1 gig(overkill, I know), swap 128, fat for the rest.
Deleted...
e30user said:
I recently cleared my dalvik cache to fix some market apps not showing up. However, I just did it again so I can compare results to the numbers posted earlier.
Before:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
After wipe of dalvik cache:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.24MB
Is the dalvik cache the cache you're talking about?
Jonesdana - it might help if you mention what size sdcard you have if you're curious about typical partition sizes. I know that's one of the things I was curious about when figuring this stuff out. I have an 8gb card and set the ext3 partion for 1 gig(overkill, I know), swap 128, fat for the rest.
Click to expand...
Click to collapse
Settings>applications>manage applications Sort by size and check the Browser, market, albums and others that you use regularly and clear cache. I doubt you'll gain 50mb, but you should gain something.
Isn't the point of this to not have to do that stuff? I don't see the benefit of a2sd from this thread.
Apps2SD
EDIT: Removed the original instructions because of errors. If you want to install A2SD version 2.5, follow these instructions on this thread:
http://forum.xda-developers.com/showthread.php?t=666420
My apologies for any issues the original instructions may have caused.
Now, for a bonus. If you installed A2SD verison 2.5, you can also move your dalvik-cache to your sd card. This will free up more space on your internal storage. This is completely optional and does not affect the operation of A2SD. Simply enter the phone's console via adb shell, then type /system/bin/a2sd cache. The dalvik-cache will be relocated to /system/sd/dalvik-cache. If you do this, make sure the phone is fully booted.
You can move your dalvik-cache manually without version 2.5.
In the adb shell, type the following commands:
mkdir /system/sd/dalvik-cache
chown 777 /system/sd/dalvik-cache
cp /data/dalvik-cache/* /system/sd/dalvik-cache
rm /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
And that's it.
tkirton said:
Okay...here's the breakdown of how to activate A2SD (a.k.a. Apps2SD)
1. (Optional) Download A2SD version 2.5: http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip. Save the file to your SD card. If you don't want to download this version, skip this step.
2. Reboot the phone into recovery mode.
3. Partition the SD card by selecting Partition SD Card -> Partition SD.
4. Once you have partitioned it, press the back button to go to the main recovery menu.
5. If you downloaded the A2SD version 2.5, flash the program by selecting Flash zip from scard -> a2sd-2.5-signed.zip. Otherwise, skip this step.
6. Reboot the phone. A2SD will start when the program boots and will automatically move your programs located in /data/app and /data/app-private.
7. To validate, go into the console of the phone by typing adb shell and press ENTER. Type ls -l /data and press ENTER. Look for the entries app and app-private. Check to see if entries look like the following:
app -> /system/sd/app
app-private -> /system/sd/app-private
If you see this, then A2SD is working.
Now, for a bonus. If you installed A2SD verison 2.5, you can also move your dalvik-cache to your sd card. This will free up more space on your internal storage. This is completely optional and does not affect the operation of A2SD. Simply enter the phone's console via adb shell, then type /system/bin/a2sd cache. The dalvik-cache will be relocated to /system/sd/dalvik-cache. If you do this, make sure the phone is fully booted.
You can move your dalvik-cache manually without version 2.5.
In the adb shell, type the following commands:
mkdir /system/sd/dalvik-cache
chown 777 /system/sd/dalvik-cache
cp /data/dalvik-cache/* /system/sd/dalvik-cache
rm /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
And that's it.
Click to expand...
Click to collapse
Using just the aps2sd 2.5 zip I always start with about 153 meg out of 159 meg and after all my apps are back using titanium backup (about 60 apps) I still have over 135 meg free. I never had this before I used this zip. I did not run the dalvik cache command either. After checking however my dalvik-cache is being moved to /system/sd/dalvik-cache. I see no diff in the phone than before I moved this to the SD either. It just frees up lots of space and lets you load many many more apps
so what exactly does one gain from doing this? just more space? i can't imagine there would be any increase in speed, and wouldn't this have a tiny negative impact on power usage? (small but theoretically still there)
I've never tried this either...
So, if your sdcard dies, could you just reflash the rom over itself and everything would be gravy?
-edit-
After you've installed a new card and formatted it properly, of course.
Can you flash the 2.5 over existing a2sd? or would you have to redo everything when done?
redram38 said:
Using just the aps2sd 2.5 zip I always start with about 153 meg out of 159 meg and after all my apps are back using titanium backup (about 60 apps) I still have over 135 meg free. I never had this before I used this zip. I did not run the dalvik cache command either. After checking however my dalvik-cache is being moved to /system/sd/dalvik-cache. I see no diff in the phone than before I moved this to the SD either. It just frees up lots of space and lets you load many many more apps
Click to expand...
Click to collapse
bbv203 said:
Can you flash the 2.5 over existing a2sd? or would you have to redo everything when done?
Click to expand...
Click to collapse
You can flash the 2.5 over the existing a2sd! I am not sure if you have to wipe the Davlik Cache, but I would recommend it. You will probably have a lengthy boot time as the Davlik Cache is written.
hmmmm...one way to find out I guess!
mjweisberg said:
You can flash the 2.5 over the existing a2sd! I am not sure if you have to wipe the Davlik Cache, but I would recommend it. You will probably have a lengthy boot time as the Davlik Cache is written.
Click to expand...
Click to collapse
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?
I've been having this problem on and off for a while, mostly I believed it was related to something getting corrupted when I restored my apps to a new Rom with Titanium Backup.
I am happy to say, that after scouring the web for days, and trying a lot of wrong information, I finally figured out how to fix this.
It's real easy. All you need to do is remove any *.apk files located in the /cache directory on your phone (did not even need to remount- though I did it as root just in case).
I never did figure out why only some apps will have this problem or how the problem first comes about, but I have successfully done this twice and have since been able to install/update files that had this error before.
Update (3/3/11): OK - After scouring the Internet for over a month I finally figured it out. My info above was only part right. The problem is specifically with ROMs/Kernels that move the dalvik-cache to the /cache directory (HTC puts it in the /data dir).
In any case, when it's in /data, it is using app space, and therefore you usually run out of app space and know about it. However, because this is in /cache, you don't really know what you are using. As you load up on apps, your dalvik-cache grows, and since these apps need the .dex files in the cache, even if you clear your cache, it will just get re-created.
the /cache dir is also where the apps are temporarily stored while downloading from the market. So....
1. If you are getting immediate download fails, that means that your cache is so full that you don't even have space for the temp file.
2. If you get "Invalid Package" that likely means that there was not enough cache left to install the .dex files (the download is also taking up some of this space).
Unfortunately, the only way to fix this is to either remove some of your apps, or move your cache to your SD card.
HOWEVER, I found this great app on the market called Link2SD, that allows you to only move select apps to the SD card, and you can also move the dalvik-cache files associated with these apps.
see this thread for specifics: http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
it lets you select which apps to move. You will need to create a new partition on your card, though.
So far results have been great and I can finally update the 30+ apps that have been stuck for me for the last 2 months.
almost forgot, if you adb shell or use terminal emulator, you can type "df" to see how much space is left on all your mounts.
My phone has been doing the same thing with the whole package file is invalid bs. I tried to follow your instructions on going to the /cache folder. When I went to the folder, it was empty, so I wasn't able to remove any .apk files. So now what? How do I fix this?
If you use a File Managemet app like ASTRO, it will show the folder as empty because you need root access to see the dir. However, if you use Terminal Emulator or adb shell (as root) you will see that there are indeed other directories, and probably these orphaned .apk files.
Hi,
I'm also having the same issue with invalid package. I cleared the /cahch direcotry and still have the issue -- Is there something else i can try before wiping and starting over?
thanks
Rudey
It could also be caused by the .android_secure folder on your SD card. Clearing this folder and letting the market restore them solves issues a lot ofthe time.
As always use TiBackup or something to backup all your apps first too to be safe.
As the OP, I can tell you that I have, in fact, been unable to fix this problem.
Initially the suggestion I posted above worked, however a couple of days later is was no longer working again.
I have tried every trick on the web, including:
1. Removing SD card.
2. Deleting the above mentioned folder
3. clearing market cache
4. Clearing all caches in recovery
5. logging out and back in to google talk.
The only thing that fixes it is a complete factory reset.
I currently have a combination of 3 errors:
1. No download at all.
2. Download unsuccessful
3. Invalid Package
some apps will still update, but what is really weird is that I am even getting invalid package on new apps (so its not a corrupt app already installed on the phone).
One last thought. Once I am unable to update an app, even if I remove it, I can no longer restore the backup using Titanium.
oughta try reformating your SD card and let the phone reformat it too.
sgt. slaughter said:
oughta try reformating your SD card and let the phone reformat it too.
Click to expand...
Click to collapse
don't see why this is different than un-mounting the SD which should do the same thing and has been tried.
sw99 said:
don't see why this is different than un-mounting the SD which should do the same thing and has been tried.
Click to expand...
Click to collapse
na actually reformating it will fully wipe everything on the SD and having the phone do it is best always as its always better to format with the device your using the disk on the most in general.
Found the problem, updated in OP.
sw99 said:
I've been having this problem on and off for a while, mostly I believed it was related to something getting corrupted when I restored my apps to a new Rom with Titanium Backup.
I am happy to say, that after scouring the web for days, and trying a lot of wrong information, I finally figured out how to fix this.
It's real easy. All you need to do is remove any *.apk files located in the /cache directory on your phone (did not even need to remount- though I did it as root just in case).
I never did figure out why only some apps will have this problem or how the problem first comes about, but I have successfully done this twice and have since been able to install/update files that had this error before.
Update (3/3/11): OK - After scouring the Internet for over a month I finally figured it out. My info above was only part right. The problem is specifically with ROMs/Kernels that move the dalvik-cache to the /cache directory (HTC puts it in the /data dir).
In any case, when it's in /data, it is using app space, and therefore you usually run out of app space and know about it. However, because this is in /cache, you don't really know what you are using. As you load up on apps, your dalvik-cache grows, and since these apps need the .dex files in the cache, even if you clear your cache, it will just get re-created.
the /cache dir is also where the apps are temporarily stored while downloading from the market. So....
1. If you are getting immediate download fails, that means that your cache is so full that you don't even have space for the temp file.
2. If you get "Invalid Package" that likely means that there was not enough cache left to install the .dex files (the download is also taking up some of this space).
Unfortunately, the only way to fix this is to either remove some of your apps, or move your cache to your SD card.
HOWEVER, I found this great app on the market called Link2SD, that allows you to only move select apps to the SD card, and you can also move the dalvik-cache files associated with these apps.
see this thread for specifics: http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
it lets you select which apps to move. You will need to create a new partition on your card, though.
So far results have been great and I can finally update the 30+ apps that have been stuck for me for the last 2 months.
almost forgot, if you adb shell or use terminal emulator, you can type "df" to see how much space is left on all your mounts.
Click to expand...
Click to collapse
Didnt solve my issue.. I had reformatted my phone and SD card and reinstalled my apps. It was working fine again but now its back to some apps update fine.. some get DOWNLOAD UNSUCCESSFUL and some get PACKAGE FILE INVALID.. any ideas.. Im on sprint lovers rom (latest)
It appears th LINK 2 SD needs a second partition that I dont have nor use with SPRINT LOVERS ROM and 2.2 .... am I missing something??
To the OP,
The program you linked to seems to be a variation of dark tremor's a2sd method (http://forum.xda-developers.com/showthread.php?t=715116). His lets you move data, cache, and/or dc to the ext partition, but doesn't (at least I don't believe it does) give you granular control over which apps remain in the standard location.
In my own use, I chose to move all user installed apps to sd, but dc remained on the internal memory (albeit, not in /data, but in the /cache partition). I figured this way, even if the sd card is missing, the phone will still boot. I won't have access to anything I installed, but whatever the rom came with will still be accessible.
Follow the instructions on that thread and create the second partition. You won't need more than 500mb. apps2sd or link2sd is the only way you can fix this problem unless you want to remove some of your apps.
Sent from my PC36100 using XDA App
gpz1100 said:
To the OP,
The program you linked to seems to be a variation of dark tremor's a2sd method (http://forum.xda-developers.com/showthread.php?t=715116). His lets you move data, cache, and/or dc to the ext partition, but doesn't (at least I don't believe it does) give you granular control over which apps remain in the standard location.
In my own use, I chose to move all user installed apps to sd, but dc remained on the internal memory (albeit, not in /data, but in the /cache partition). I figured this way, even if the sd card is missing, the phone will still boot. I won't have access to anything I installed, but whatever the rom came with will still be accessible.
Click to expand...
Click to collapse
Yes that's true, and I eventually went the app2sd route. However, I was trying to avoid that because of the slow speed of my sd card.
Sent from my PC36100 using XDA App
sw99 said:
Yes that's true, and I eventually went the app2sd route. However, I was trying to avoid that because of the slow speed of my sd card.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I'm not sure which app2sd method you're referring to, but keep the following in mind. I discovered this after my backup images failed to restore properly.
In the past, i'd be backing up boot, system, and data partitions. Obviously with dt's a2sd, I need to include the ext partition now. No problem. BUT, when restoring, i'd run into issues where my apps were present, but all settings were lost. After much confusion and head scratching, I tried wiping cache and dc AFTER the restore, but before the initial boot. The restore was a success now!
Apparently, with a2sd on the ext3, some remnants of cache or dc remain when backing up, even if cache is not selected. As part of any good restore, first thing is to always wipe, so now we end up with a hodge podge of files in the cache which I think causes the OS to revert all the settings back to default.
Just something to keep in mind.
i wanted to go back how my dhd was.. lots of problem.. i havent fix my radio problem yet and now this invaled package thing *face palm*
My phone is HTC G7, and I use data2sd to get 1.5G rom space, now there is still about 1.2G left, but I also met the "invalid package file" problem. I can't find any *.apk in /cache, (root, with "ls -a"). But if I uninstall some apps, I could install or update other apps successfully. I could not use Link2sd for I already have data2sd and I guess it's not a problem of insufficient space, because I still have enough rom space.
Do you have any new solutions?
supericexu said:
My phone is HTC G7, and I use data2sd to get 1.5G rom space, now there is still about 1.2G left, but I also met the "invalid package file" problem. I can't find any *.apk in /cache, (root, with "ls -a"). But if I uninstall some apps, I could install or update other apps successfully. I could not use Link2sd for I already have data2sd and I guess it's not a problem of insufficient space, because I still have enough rom space.
Do you have any new solutions?
Click to expand...
Click to collapse
The problem is not the apps, its the /cache running out of space. I suspect that the app you are using cannot move the dalvik-cache files (and is really just a shortcut to android's app2sd - which is not the same as darktremor or link2sd).
in terminal us df -k to see how much space you have on each mount to confirm that there is little space in cache.
If you really have that much space in your apps mount, then I would suggest moving the dalvik-cache back to its original location (search for instructions, as the only way I know how to do it is by installing darktremor's app2sd). If you are still having problems, you really are limited to either partitioning your SD card and using apps2sd or link2sd or removing apps.
hope this helps.
I have been having this issue for a couple of months now - with a bit of a twist. After wiping my dalvik-cache, my apps began to sucsessfully update - except for Google apps.
I have no idea why just those apps, but going into settings/Applications/Manage applications, and selecting each app, then clearing that apps cache, allowed those apps to sucessfully update also.
I am thankful I did not have to resort to the above fix.
Any solution if not rooted?
I've just started to get this error when trying to update the Google+ app. The error is only happening with Google+, every other app I update/install works fine.
I haven't rooted my device, and I'm hoping there's a way to fix the issue without rooting?
Device: Nexus One
Rom: Stock Android
Version: 2.3.4
Although I couldn't see anything in the cache directories, I checked in /system/app and couldn't find any package that looked like it would be Google+.