Other apps have cache? - G1 Android Development

I just did the task of making a few of my apps cache moved to my SD card. I was wondering if Last.FM and AndNav have cache folders, and if so, any tutorial on how to have them moved?

Sistum Id said:
I just did the task of making a few of my apps cache moved to my SD card. I was wondering if Last.FM and AndNav have cache folders, and if so, any tutorial on how to have them moved?
Click to expand...
Click to collapse
last fm the official app of it does have it under
/data/data/last.fm.android
about andnav i have no idea hasnt used it.. but u would do
su
cd /data/data/last.fm.android
rm -R cache
mkdir /sdcard/cache/lastfmCache
ln -s /sdcard/cache/lastfmCache cache
exit

Smokuevo said:
last fm the official app of it does have it under
/data/data/last.fm.android
about andnav i have no idea hasnt used it.. but u would do
su
cd /data/data/last.fm.android
rm -R cache
mkdir /sdcard/cache/lastfmCache
ln -s /sdcard/cache/lastfmCache cache
exit
Click to expand...
Click to collapse
Correction to your step 1
It should be cd /data/data/fm.last.android
btw - here are others that can be moved to the SD card the same way. I'm sure there are others which i haven't installed yet.
audua.auduaReader/
com.android.browser/
com.android.vending/
com.google.android.youtube/
com.icenta.sudoku.ui/
com.ikamobile.moviefinder/
com.imeem.gynoid/
com.nextmobileweb.fbook/
com.rerware.android.MyBackup/
com.shinycore.picsayfree/
com.stylem.wallpapers/
flycast.player.android/
fm.last.android/
com.aws.android/
com.google.android.gm/
com.google.zxing.client.android/
com.twidroid/
net.veveo.ui.android/

TheBlur said:
Correction to your step 1
It should be cd /data/data/fm.last.android
btw - here are others that can be moved to the SD card the same way. I'm sure there are others which i haven't installed yet.
audua.auduaReader/
com.android.browser/
com.android.vending/
com.google.android.youtube/
com.icenta.sudoku.ui/
com.ikamobile.moviefinder/
com.imeem.gynoid/
com.nextmobileweb.fbook/
com.rerware.android.MyBackup/
com.shinycore.picsayfree/
com.stylem.wallpapers/
flycast.player.android/
fm.last.android/
com.aws.android/
com.google.android.gm/
com.google.zxing.client.android/
com.twidroid/
net.veveo.ui.android/
Click to expand...
Click to collapse
oh lol.. wrote it wrong from my phone then sorry.

TheBlur said:
Correction to your step 1
It should be cd /data/data/fm.last.android
btw - here are others that can be moved to the SD card the same way. I'm sure there are others which i haven't installed yet.
audua.auduaReader/
com.android.browser/
com.android.vending/
com.google.android.youtube/
com.icenta.sudoku.ui/
com.ikamobile.moviefinder/
com.imeem.gynoid/
com.nextmobileweb.fbook/
com.rerware.android.MyBackup/
com.shinycore.picsayfree/
com.stylem.wallpapers/
flycast.player.android/
fm.last.android/
com.aws.android/
com.google.android.gm/
com.google.zxing.client.android/
com.twidroid/
net.veveo.ui.android/
Click to expand...
Click to collapse
or move /data/data/ folders onto sd hehe

Smokuevo said:
or move /data/data/ folders onto sd hehe
Click to expand...
Click to collapse
Would this put all your apps cache on the sdcard? Also what command can I type to see what cache folders I have on my phone for my programs?

Anyone know the one for Myspace? My sister uses it and the cache is eating my internal space (I'm holding off on moving the apps to my sd because when I was making the partition, Paragon froze and I had to reinstall Vista )

reverse cache move
Ok so I moved the youtube cache to my sdcard. Now it won't play videos at all. How do I move the cache back to the phone?
I did:
cd /data/data/com.google.android.youtube
rm -R cache
mkdir /sdcard/cache/youtubeCache
ln -s /sdcard/cache/youtubeCache cache
How do I move it back? And can you not have the youtube cache on the sdcard?

speoples20 said:
Ok so I moved the youtube cache to my sdcard. Now it won't play videos at all. How do I move the cache back to the phone?
I did:
cd /data/data/com.google.android.youtube
rm -R cache
mkdir /sdcard/cache/youtubeCache
ln -s /sdcard/cache/youtubeCache cache
How do I move it back? And can you not have the youtube cache on the sdcard?
Click to expand...
Click to collapse
Just go to Settings --> Applications --> Manage Applications --> YouTube --> Clear data
That should reset it.

TheBlur said:
Just go to Settings --> Applications --> Manage Applications --> YouTube --> Clear data
That should reset it.
Click to expand...
Click to collapse
Bah I completely forgot about that. Well youtube is working again, anyway to put youtube cache on the sdcard?

Related

How to check app to sd???

How to check if i have my app to sd card or not???
kenny9438 said:
How to check if i have my app to sd card or not???
Click to expand...
Click to collapse
go to terminal and:
df
see if your /system/sd/ device is being used. Did you make all the symlinks?
mine is being used but also the phone memory is decreasing also. help?
thx i think im not sure...checked out that i have my app to sd thx
I'm having the same problem. I did all the steps on this tutorial from maximus but when I d/l an app my intermal memory decreases and my sd memory remains the same. I went to terminal and wrote df and I don't know what to look for lol I did see system/sd or something like that though. But I'm not sure what that means. Sorry for being such a noob, I'm new to this
Same prob here fellas....
I followed the instructions for the Hyk apps to sd wiki tutorial.
when I check my sd card, it shows the apps
cd /system/sd/app
ls
and I can see that the /system/sd has 25MB used which sounds ok but at the same time, I only have 35MB left on the phone, it was 48 yesterday and all I've done is install apk files via my computer using adb install command.
Why is my internal memory going down and how can i fix it.
To answer my own question.
I think we also need to move dalvik-cache... though not really that important, it's nice to keep the 70-71mb free.
I moved the cache and it went from 35MB to 70MB free.
Keep in mind that moving your apps to sd does not move your cache for default programs. I noticed my memory dropping and realized that it was my browser, maps, market, etc cache. I followed some tutorials on here to move those and my memory hasn't been dropping anymore!
there are three directories that get increased when u install an app
/data/app - stores the apk file
/data/data - stores cache and databases that the app uses
/data/dalvik- app cache used by the system
if u move only one of the above directories ur internal space will still decline
su
cd /data
ls -l
this way you can see if its linked correctly- should show the app folders linked...
MontAlbert said:
su
cd /data
ls -l
this way you can see if its linked correctly- should show the app folders linked...
Click to expand...
Click to collapse
Thanks for this! How can I tell which caches I have linked?
Thanks

Missing Phone Memory after JF1.5

So I rooted my phone and installed JF1.5 last night. As of right now I have no plans to move anything over to the SD card as I am still learning, but for some reason I am missing phone memory.
I have the same apps installed as before I rooted and I am at 23MB where I was at ~40MB before I rooted the phone on RC33.
Can anyone point me in the right direction? I tried searching and came across with a solution, but that seems to be if you are moving stuff to the SD card. I tried to run the commands:
Code:
cp -a /data/dalvik-cache /system/sd/dalvik-cache
rm -r /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot
And I get an error after the cp about /system/sd/dalvik-cache being 'read-only'.
Your help is greatly appreciated.
Those steps will only work if you have apps to sd. Do not try to do that without it, you'll mess up your phone. As for the greater amount of space being used, did you do a wipe when upgrading to JF1.5? If not it carries over all data to the new ROM so if you used the browser at all, the cache for it is usually fairly large and could account for a lot of that missing space. Try clearing that(in browser press menu->settings->clear cache)?
I have the same problem, and came accross the same solution to find out its only for people that have apps2sd... the help would definitely be appreciated
It sounds like its an additional cache for something. Try the following:
Restart your phone - did that work?
Go into app management and clear the data for the android market app.
It's possible there's another 1.5 app that causing cache to build up, but almost rest assured it's cache and probably market cache if you just redownloaded all your apps from there.
If all else fails(and I mean ALL else) you can try these commands:
su
busybox rm -rf /data/data/*
busybox rm -rf /data/dalvik-cache/*
reboot
but leave that as an absolute last resort. If you mess up even 1 character in that, you can really mess up your phone.
should be:
su
busybox cp -a /data/dalvik-cache /system/sd/
rm -rf /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot
Click to expand...
Click to collapse
double post. sorry.
Okay I am just going to re-install JF and start from scratch to see if I can clear some of this memory up.
Just want to make sure - I do alt+w, THEN alt+s to wipe and then reload JF1.5?
Sorry to double post, but I just did a fresh install of JF1.5 preluded by a wipe (alt+w) at the bootloader screen.
The JF1.5 build starts out with 52MB of Available Space. This seems to be pretty low based on what I can remember from the regular updates. Can anyone shed some light or am I just better off doing cache/apps2SD to clear up some room?
Wow I was just wondering if I was the only one....I currently have available 24Mb nd I used the commands that is located at the H wiki web site....which worked well to bring back my application which were located in my Ext2 partition....I recently wiped my cache from the market like u guys said it nd it wiped around 5 -10 mb from my avalable (had 14 mb)...so now I am wondering is it the Cache from the phone dat is taking all the available space on my phone (which I think its pretty impossible)
Okay so I have half of my apps installed and I am down to 31MB already.
I am going to move something to the SD Card -- which is the easiest and least risky to move to the SD Card? It seems like the dalvik cache is the biggest and clears up the most space. Can anyone point me in the direction of a tutorial for this or any cache to SD? Thanks.
Stigy said:
Can anyone point me in the direction of a tutorial for this or any cache to SD? Thanks.
Click to expand...
Click to collapse
Sure, look in my sig.

New and improved Apps to SD(more stable, more powerful, etc) Tutorial

Well, some of you may have heard my ramblings around here that I've been working with some of the devs here(JF and MartinFick deserve major praise, probably more than me) on getting a better way to do the whole apps to sd thing.
After 3 days of talking/discussing/working on it, I've finally reached the fruits of that investigation and thought I'd share. This new method uses the filesystem unionfs to essentially meld the /data directory with the /system/sd directory, so that they appear to be one. This has the potential to allow users to move specific apps to or from the sd card, is far more stable than the normal symlink method(will still boot, etc even if there's no SD card) and should be easier to set up. Now, onto the tutorial of setting this up.
BIG DISCLAIMER NOTE: This is a major hack of the phone and it is fully possible that it will break your phone(I've seen no permanently bricked phones but that doesn't make it impossible). Use this method, and my app along with it at your own risk.
REQUIREMENTS:
1: This only works on JF(possibly only on 1.5, not sure about the others) and The Dude's v.1.0 or greater. The Dude's 1.0 or greater actually does the steps in this tutorial for you so you can just run appstosd2 and set it all up from there if you're using his ROM.
2: This still requires you to have 2 partitions set up, first FAT32 and second ext2. Although you can use the appstosd2 app attached to this post and available in the market for $0.99 which will partition the card for you.
3: If you want your apps to go to the sd card, you must have a directory "/system/sd/app" If you didn't have apps to sd before on the ext2 partition do the following in terminal emulator or run my appstosd2 app after finishing the tutorial:
Code:
su
mkdir /system/sd/app
If you want the private-apps, or dalvik-cache moved you can replace "app" in that code with ""app-private", or "dalvik-cache" respectively. Do not copy "data" to the sd card. My script will delete it on the next reboot.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Alright, first there's some files you need.
1: init.rc in .zip attached to this thread
2: a2sd.sh in .zip attached to this thread
All the above listed files should be put on your sd card(my tutorial will assume they are in the root directory of the sdcard(the topmost folder)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
If you need to undo the normal apps to SD first do the following in the recovery terminal(it's not strictly necessary but I'd recommend it):
Code:
mount data
rm /data/app
mkdir /data/app
if you moved the dalvik cache, repeat steps 2-3 with "dalvik-cache" instead of app. Ditto with "data" for the data cache.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Then go to terminal emulator and type the following:
Code:
su
cp /sdcard/init.rc /data/
cp /sdcard/a2sd.sh /data/
Then reboot and you're set. By default all future apps are installed to the sd card. In order to move an app to the internal memory do the following in terminal emulator:
Code:
su
cp /system/sd/app/[the app you want to move] /system/intmem/app/
rm /system/sd/app/[the app you want to move]
I will be incorporating this into my appstosd app soon(probably as a JF and TheDude-only version until the rest of the devs get on board).
I have included a copy of appstosd 2, which will copy all apps from internal memory to the sd card with an option to remove them from the internal memory. This will only work if you have followed this tutorial.
If you don't have partitions set up, appstosd2 will now do that for you with user-set partition sizes.
NOTE: If you're using The Dude's ROM and find yourself with an outdated version of this since he doesn't always update his ROMs at the same time I update this, do the following in terminal emulator to update(after putting a2sd.sh from the attached a2sd.zip on your sdcard):
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/bin/a2sd.sh
cp /sdcard/a2sd.sh /system/bin/
reboot
For JF1.5, do the following to update:
Code:
su
rm /system/intmem/a2sd.sh
rm /system/intmem/init.rc
cp /sdcard/a2sd.sh /system/intmem/
cp /sdcard/init.rc /system/intmem/
reboot
NOTE FOR UPDATERS: If you had your data on the sdcard(/system/sd/data), it WILL GET DELETED with the new version. This is a necessity in order to get both wallpaper and protected apps working. I recommend moving it back to the phone.
EDIT: And here's another tutorial from ThatsBS(might be easier for the less tech savvy to follow?):
I am still learning a lot everyday from this forum. So for people new to this process let me noobify it, if I can, as I am one too.
Start by reading the first page!! Get all the stuff you need from page 1. (apps2sd2.zip and a2sd.zip )
I started from a fresh wipe and flash of jf1.51 adp.
A newly formatted fat32, non partitioned sd.
Put the init.rc and app2sd.sh on the sd (the files NOT the zip)
Then go to the terminal emulator and typed:
su
cp /sdcard/init.rc /data/
cp /sdcard/a2sd.sh /data/
Then reboot
Next I ran the apps2sd 2 app. It will ask you how much to you want to partition. I did 3000mb the first successful time and the dreaded low mem notice would not leave the status bar. I have read not to make it more then 1500mb. Have a good connection, dont force close it. It will reboot.
Next, after the reboot, I ran the apps2sd 2 app again and pressed "copy apps to sd" (let it do its thing)
Reboot.
Next I went back to the emulator and typed:
su
mkdir /system/sd/app-private
mkdir /system/sd/dalvik-cache
Reboot.
Go back to the apps2sd 2 app and hit move dalvik-cache.
Reboot for good measure and your done.
I did this in about 10 mins. Worked flawlessly.
I have a ?, if i have been using your app what dod i do diferent or what should i change?
Thanks
Good job, thanks!
[email protected] said:
will still boot, etc even if there's no sim card
Click to expand...
Click to collapse
You mean SD card?
[email protected] said:
Alright, first there's some files you need.
1: unionfs.ko from here:
Click to expand...
Click to collapse
JF1.5 build has already unionfs.ko in it, doesn't it? Is there any difference between this unionfs.ko and the one included?
1. I hear unionfs is not really stable at this point, is it true?
2. Why do you want to move the whole /data folder to sd, instead of just /data/app, /data/app-private?
3. You might want to add a command to remove previous app2sd changes (i.e. delete symlinks, create folders.)
4. How do you put selected apps to internal memory after this? Copying to /data will copy to sd card again.
The whole idea is really interesting! Thank you for your work!
ArmandHammer said:
I have a ?, if i have been using your app what dod i do diferent or what should i change?
Thanks
Click to expand...
Click to collapse
You don't have to do anything different. It will find all the apps you put on the sd card. If you want to set the phone back to normal(so the phone memory apps can still be there), you can do the following in the recovery terminal:
Code:
mount data
rm /data/app
rm /data/dalvik-cache (only if you moved the dalvik-cache)
mkdir /data/app
mkdir /data/dalvik-cache
@Dimath: yes, I did mean SD card, good catch
1:JF didn't mention it and from a little bit of using it, it seems stable to me. Plus, no matter how much I've screwed up, I haven't managed to boot loop my phone yet.
2: You could just mount those independently. I might end up doing that eventually but for now the way it is works for reasons I'll get to.
3: True, although it's not strictly necessary. If apps2sd already works, this won't break it. I'll put in a guide on undoing the symlink method
4: Actually, no. My script sets the internal memory as the main file system in the union, so apps automatically go there. Moving apps to the sd card just involves copying them to /system/sd.
Ok, just a little confusing.
I didn't use the apps2sd to move apps over to my SD card. What I did was set it with the busybox ls command. I guess that's the symlink.
My question is, if I didn't use apps2sd, can I still use your method? I also moved the dalvik cache also, everything works fine for me now, my apps go directly to the SD card when installing since my memory stays at around 65 MB no matter what I do.
Just need some laymen terms to help me understand that if I'm NOT using apps2sd, and I just linked them with the recovery method, what's my pitfalls / advantages?
Thanks.
larrygates said:
Ok, just a little confusing.
I didn't use the apps2sd to move apps over to my SD card. What I did was set it with the busybox ls command. I guess that's the symlink.
My question is, if I didn't use apps2sd, can I still use your method? I also moved the dalvik cache also, everything works fine for me now, my apps go directly to the SD card when installing since my memory stays at around 65 MB no matter what I do.
Just need some laymen terms to help me understand that if I'm NOT using apps2sd, and I just linked them with the recovery method, what's my pitfalls / advantages?
Thanks.
Click to expand...
Click to collapse
Yes, any other method of apps to sd currently uses the same symlink method, so following the directions as if you installed my app will work. A note though is that all future apps will install to the internal memory by default. I did that because it's MUCH easier to move apps from the memory to the sd card than vice versa. You can use the code I posted if you want it the other way around.
would this also work for /data/data and app-private?
or is this particular setup only for dalvik-cache and app?
oh and before I do this, just wondering, so in theory, since I have a 1.5GB ext2 partition, my free memory will be 1.573GB (1.5GB + 73Mb internal)? The internal memory will just run down and switch over to the sdcard when needed (but be seen as one filesystem)?
andonnguyen said:
would this also work for /data/data and app-private?
or is this particular setup only for dalvik-cache and app?
Click to expand...
Click to collapse
This works for the whole /data folder and everything under it. Everything is automatically installed to the phone memory right now so you can just move over anything you don't want on it(will be making an app to do this automatically)
EDIT: oh and anything you already moved over to the sd card will still show up.
Code:
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/unionfs.ko /system/
cp /sdcard/init.rc /data/
cp /runme.sh /data/
cp /sdcard/a2sd.sh /data/
I see, when I run these lines of code (I can do this from adb also right using adb remount) this IS the new symlink method. It's just all at one time without me having to manually link anything.
Right?
larrygates said:
Code:
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/unionfs.ko /system/
cp /sdcard/init.rc /data/
cp /runme.sh /data/
cp /sdcard/a2sd.sh /data/
I see, when I run these lines of code (I can do this from adb also right using adb remount) this IS the new symlink method. It's just all at one time without me having to manually link anything.
Right?
Click to expand...
Click to collapse
Wrong, no symlinks here. Pure unionfs goodness. Basically it convinces the operating system that /data and /system/sd are the same thing. So anything that's on /system/sd shows up under /data but everything that's normally under /data is still there. Think of it like what happens in windows when you merge folders with the same name, but in this case in actuality everything stays exactly where it was.
New news: If you haven't seen it, I updated this tutorial(and the scripts with it) quite a bit and would now consider it to be completely fully functional.
Also The Dude will be sending me an advance copy of his next ROM tomorrow to verify it works. In his build the apps to sd will be automatic, with no user setup(although if you want apps on the sd card you'll have to make an app directory under /system/sd(mkdir /system/sd/app), ditto for dalvik-cache and data).
Finally, I will attempt to add this into my apps to sd app tonight, thus rounding out everything I can do.
After all this, the only thing left is for Haykuro to build it into his ROM and me to make an app to move specific apps to/from the sd card automatically.
This will no doubt be the method of choice in no time. Great work. Sticky?
If anyone dl'd the latest version(that fixed the race condition, etc), please download the one I just put up. I made that one in windows and I believe the funky carraige return(that indicates a new line) that windows uses screwed it up
So I got some kind of error, and I don't know what is going on.
I put in all the lines in the terminal emulator app..
but after line cp /runme.sh /data/ it gives me an error
it says "cp: cannot stat '/runme.sh': No such file or directory
Any help? I rooted my phone just so I could run my apps off of my SD card.. and now I can't figure out how to get it to work. Somebody help me please.
GTASouthPark said:
So I got some kind of error, and I don't know what is going on.
I put in all the lines in the terminal emulator app..
but after line cp /runme.sh /data/ it gives me an error
it says "cp: cannot stat '/runme.sh': No such file or directory
Any help? I rooted my phone just so I could run my apps off of my SD card.. and now I can't figure out how to get it to work. Somebody help me please.
Click to expand...
Click to collapse
Which ROM is this? JF1.5 should have runme.sh there...
[email protected] said:
Which ROM is this? JF1.5 should have runme.sh there...
Click to expand...
Click to collapse
Ok, I am going to re-partition my memory card.. and then re flash to JF1.5 and try it again.
Just tried it, one issue I'm seeing is android seems to install [email protected]@[email protected] into /system/intmem/dalvik-cache at boot. Is there anyway to have that only in my dalvik-cache on the sdcard?
Its a fairly large file at 3megs so I want it to reside solely on the sdcard and even if I delete it from intmem, whenever I reboot it gets added again.
Now when I display the internal phone storage from the settings menu, it shows up at 835 megs.
I wonder if this is possible to use unionfs and make an ext2 fs object as a file on the FAT fs. That way no 2nd partition is necessary. Plus, if you remove the sdcard, everything will still work.
Maybe we could combine unionfs and this method that uses an ext2 image on the fat32 for apps to sd.
http://forum.xda-developers.com/showpost.php?p=3402947&postcount=687
mkefs can be downloaded here:
http://sites.google.com/site/juanjosec/android
dwang said:
I wonder if this is possible to use unionfs and make an ext2 fs object as a file on the FAT fs. That way no 2nd partition is necessary. Plus, if you remove the sdcard, everything will still work.
Maybe we could combine unionfs and this method that uses an ext2 image on the fat32 for apps to sd.
http://forum.xda-developers.com/showpost.php?p=3402947&postcount=687
mkefs can be downloaded here:
http://sites.google.com/site/juanjosec/android
Click to expand...
Click to collapse
I've been looking at that possibility with JF and MartinFick as well, seems like it could be a good plan but I wanted to get this bit done first. It's a good point about the dalvik-cache, but in order to fix it JF(in this case) would have to change /init.rc to make sure to do this bit before building the dalvik-cache.
Can't download apps from market
hmm so I didn't hit any errors when doing this, but afterwards I am unable to download any apps from the market. It just continually says "Starting Download..." Everything else seems to work well.
I had this same issue when I tried to manually setup apps to sd using the symbolic links. I narrowed the issue down and figured out this only occurred after I moved the dalvik-cache over to the sd card. I'm assuming I'm doing something wrong, but can't seem to figure it out. Any pointers in a general direction would be most helpful
I'm using JFv1.50 ADP1.5, not the modded version by LucidREM. For some reason the bootloader couldn't pickup his version on my phone and --edit-- I'm pretty sure I have the SD card partitioned correctly... everything else seemed to work ok. The ext2 partition shows up as the correct size
*EDIT* So apparently my issue was the SD card as well. Just did a format of the sd card and it fixed it. I also formatted data and cache (alt+w in recovery mode). Thanks MarcusMaximus!
[email protected] said:
New news: If you haven't seen it, I updated this tutorial(and the scripts with it) quite a bit and would now consider it to be completely fully functional.
Also The Dude will be sending me an advance copy of his next ROM tomorrow to verify it works. In his build the apps to sd will be automatic, with no user setup(although if you want apps on the sd card you'll have to make an app directory under /system/sd(mkdir /system/sd/app), ditto for dalvik-cache and data).
Finally, I will attempt to add this into my apps to sd app tonight, thus rounding out everything I can do.
After all this, the only thing left is for Haykuro to build it into his ROM and me to make an app to move specific apps to/from the sd card automatically.
Click to expand...
Click to collapse
If I have apps2SD and the dalvik-cache both moved on the dudes builds already, do I still have to create those directories or will my existing setup still work fine? I would like to know what kind of issues I may run into when the dude releases .95 with this (hopefully, not getting my hopes up just in case).

Official way to make sure everything is correct?

I'm just curious, i'm pretty sure everything went well for me as for apps2sd... but i was wondering what is the 100% official no bs way to know if you have all your apps on your sd card along with the cache and it's no longer on your internal memory? i mean i only have 33 apps installed but i only have 67mb free on internal memory... i cleared my browser cache along with my market cache and only have 67mb free... any idea anyone?
i just cleared my faebook cache in app management and it jumped to 69mb free. so i'm taking it that my apps are on my sd card but my cache isnt? how do i go about doing this without messing everything up? any idea anyone please?
i forgot to mention...
8GB SDHC SanDisk Ultra Class 6
Rooted JF v1.5
33 Apps 69MB Free
Overclocked @ 528Mhz (Max) 384Mhz (Min)
AppsToSd (At least i think lol)
Well if you want to make sure the sym links are there, the best way i know is to connect the phone to your pc
adb remount
adb shell
cd /data/app
cd ..
ls
if you end up in /system/sd directory then you know its a sym link.
on another note as for the free space, the cache is held in the /data/data directory. I have the below folders moved to sd and have prob around 70+ apps installed and have 73 meg free. FYI also i remember reading somewhere that when you move folders off to the sd partition, nand does not back them up because nand does a bit for bit read of the flash chip on the phone and since that data is no longer on the flash it isnt backed up. Just something to think about if you want this info backed up.
/data/app
/data/app-private
/data/dalvik-cache
/data/data
Furthermore, if you move your cache to sd, put a symlink in and clear cache afterwards it will delete that symlink. You don't need to clear your caches after moving them, you should do it before they are moved.
Good luck.
MonkySlap said:
Well if you want to make sure the sym links are there, the best way i know is to connect the phone to your pc
adb remount
adb shell
cd /data/app
cd ..
ls
if you end up in /system/sd directory then you know its a sym link.
Click to expand...
Click to collapse
i'm usually good with following directions, but if i come across something i don't understand i will usually research it, but i can't find straight forward answers, i just wanna say i appreciate you guys helpin me out. this is what i got when i did what you suggested
# cd /data/app
cd /data/app
# cd..
cd..
cd..: not found
# cd ..
cd ..
# ls
ls
app app-private dalvik-cache lost+found
i don't understand what this means...
borodin1 said:
Furthermore, if you move your cache to sd, put a symlink in and clear cache afterwards it will delete that symlink. You don't need to clear your caches after moving them, you should do it before they are moved.
Good luck.
Click to expand...
Click to collapse
i don't know what a sym link this, this is actually the first time i've heard of a sym link... know where i can go to get directions on how to get this done? i've tried everything i was able to find on this forum which led me to ask you guys =/. sorry if i come off as a n00b i can usually figure things out myself but when i'm stuck somewhere... this is my only option. thanks in advance.
just type
su
ls -l data
if you see app -> /system/sd/app
then you know you linked up correctly
same would go for any other linked directory
app-private -> /system/sd/app-private
dalvik-cache -> /system/sd/dalvik-cache
etc.
beagz said:
just type
su
ls -l data
if you see app -> /system/sd/app
then you know you linked up correctly
same would go for any other linked directory
app-private -> /system/sd/app-private
dalvik-cache -> /system/sd/dalvik-cache
etc.
Click to expand...
Click to collapse
i think i messed everything up now... lol i followed somebodies instructions and all my apps werent working anymore, so i go to install them again but the market says they're installed already, so i uninstalled and tried to reinstall n now everytime it downloads and tries to reinstall my phone reboots... argh i didn't think it was gonna be soo complicated to get apps and cache working off of my sdcard.
There is a space between cd and ..
Cd<space>..
Sym link means symbolic links. Think of it as a shortcut that exists inside the folder. so when you type in cd /data/app u r accually going into /system/sd/data
madunix said:
# cd /data/app
cd /data/app
# cd..
cd..
cd..: not found
# cd ..
cd ..
# ls
ls
app app-private dalvik-cache lost+found
i don't understand what this means...
Click to expand...
Click to collapse
that is the files and folders in that directory, think of it as the same as doing a "dir" command in windows. But from the output you got /data/app is setup correctly to go to the sd card.
Ok.. I hate to tell you this but... may be you're better off just do it all over again.
Wipe, install clean copy of JF 1.5, wipe again, run apps2sd application by MarcussMaximus, delete cache folders on SD and then move your caches to sd manually from terminal emulator
I found a really good set of directions here
Make sure you understand though how it's done before attempting.
And the best way to tell is to note how much free space is on your phone after clean install, after moving everything and after using your phone for a few days.
Good luck.
Terminal emulator.
su
cd /data/app
pwd
It should say /system/sd/app
jimmytango said:
Terminal emulator.
su
cd /data/app
pwd
It should say /system/sd/app
Click to expand...
Click to collapse
thank you.
borodin1 said:
Ok.. I hate to tell you this but... may be you're better off just do it all over again.
Wipe, install clean copy of JF 1.5, wipe again, run apps2sd application by MarcussMaximus, delete cache folders on SD and then move your caches to sd manually from terminal emulator
I found a really good set of directions here
Make sure you understand though how it's done before attempting.
And the best way to tell is to note how much free space is on your phone after clean install, after moving everything and after using your phone for a few days.
Good luck.
Click to expand...
Click to collapse
i pretty much did, i used the lucidrem jf 1.5 and it went soo smoothly, im running about 50+ apps and got 73mb of internal memory free, and i checked that site u linked in ur post, thats a great tutorial site on moving certain cache.

[Workaround/Mod]Download Large Apps From Market(Over 25MB)(CM7/MIUI/STOCK)(Cache2SD).

I had a problem recently when trying to download SummitX Snowboarding (49.7 MB) from the Android Market. Did try several methods like Apps2SD, Wipe Cache, dalvik, etc. But none of them could solve my problem. DID A LOT OF SEARCHING and found the method that worked for me. So i thought i could share it with you guys.
P.S.- I am not an advanced user of android. I just did some searching around and found this script. Therefore, i cannot provide any further assistance or answer your advanced queries
Things you will need -
1. Terminal Emulator.
2. Root Access.
Lets Start -
1. Install and open terminal emulator (if you don't see the keyboard, press menu and then toggle soft keyboard on).
2. Type 'su' (without quotes). and grant the application superuser permission. After giving it permission, type 'su' again (because the permission was denied on the first time).
3. Now You Have 2 options. Click on the one you want and then get back to the OP -
Option 1 :- Use External memory card for cache, if you don't want to use internal memory. But the downloads will/may fail if the SDcard gets removed. Not recommended.
Option 2 :- Use the internal memory card for cache, if you are already using external memory card (CM7 Users) for your apps and don't want to waste any more space. Recommended.
4. If you didn't receive any error, its now done !! Be sure to type 'exit' and close the terminal (just to be on safer side).
5. Reboot the phone (Although it works without rebooting, its better to reboot just to let the cache partition take effect).
6. Download large games without any trouble.
NOTE - I have Not Used SDCard Swap mod yet. So i don't know the path of the internal and external memory card in that mod. If someone can tell me the location of internal and external sdcard in that mod, i will surely make the mod to work with SDCard Swap Mod.
I have personally tested it on MIUI and CM7. MIUI's SDcard mounting is same as Stock, so i guess it would work with stock.
I think this method would work for every Rom and even on any phone. I may be wrong
Credits -
I don't know who is the author of Original script because i just searched it like crazy and can't find the link to the post in the mess. If i find, i will surely add it to the OP.
this should be stickied
thanks
Tried and worked flawlessly. Great find.
PS: I cancelled the download after few bars as i am out of wifi. But it's downloading..
Thanks.
After typing mkdir /mnt/sdcard/cache-download in terminal emulator it shows me error like this mkdir /mnt/sdcard/cache-download: not found
sharp87 said:
After typing mkdir /mnt/sdcard/cache-download in terminal emulator it shows me error like this mkdir /mnt/sdcard/cache-download: not found
it is better you can use Int-Ext SD CARD swap mod
Click to expand...
Click to collapse
Are you on MIUI or CM7 ??
Strange error. From what i know, mkdir is used for creating a new directory. I suppose you are either using CM7 (which already has swap mod built in, i suppose) or the SD Card swap mod.
I'll try to make correct script for every rom and add it to the OP. Although its gonna be tough for me untill i don't sort out my confusion between sdcard and external_sd
Use External Memory for Cache Partition.
Method 1 : Use external memory for cache partition.
Type this in Terminal Emulator -
For MIUI/Stock Users -
Code:
mkdir /mnt/sdcard/external_sd/cache-download
cd /sdcard/external_sd/cache-download
mkdir download
rm -rf /cache/download
ln -s /mnt/sdcard/external_sd/cache-download/download /cache/download
For CM7 Users -
Code:
cd /cache/
rm -R download
mkdir /mnt/sdcard/cache-download
ln -s /mnt/sdcard/cache-download download
Note - Be sure to hit enter After every line.
Go Back to OP.
Use Internal Memory for Cache Partition.
Method 2 : Use internal memory for cache partition.
Type this in Terminal Emulator -
For MIUI/Stock Users -
Code:
mkdir /mnt/sdcard/cache-download
cd /sdcard/cache-download
mkdir download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
For CM7 Users -
Code:
cd /cache/
rm -R download
mkdir /mnt/emmc/cache-download
ln -s /mnt/emmc/cache-download download
Note - Be sure to hit enter After every line.
Go Back to OP.
thankkkkkkkkkkks *___* finally i was able to download WMW DDDDD
just one question:
in miui external and internal are swapped, so if I use internal script cache goes to sd card, isn't it?
Siso93 said:
thankkkkkkkkkkks *___* finally i was able to download WMW DDDDD
just one question:
in miui external and internal are swapped, so if I use internal script cache goes to sd card, isn't it?
Click to expand...
Click to collapse
I am running MIUI v8 and the SD cards aren't swapped in it by default.
If you are running miui with no sd-card swap mod of any sort, the cache will go into the desired place (in this case, internal memory). But if you are using sd-card swap mod (i don't know if it exists in MIUI), the cache will go into external sd card.
EDIT - My bad, the sd card swap mod is there for MIUI. If you use it, the methods would work the opposite way. Internal for external, external for internal.
Man,
This is great! Thank you!
Sent from my HTC Desire using xda premium
how to do this for cm 10? looks like asphalt 7 can't be downloaded, it stays stuck in downloading

Categories

Resources