[Q] Dalvik Cache - Android Q&A, Help & Troubleshooting

Just rooted a Samsung Gravity Smart. I used the free Titanium Backup to remove bloat. Unfortunately it did not clear enough internal memory on this crappy phone. I was told that I needed to get the Pro Titanium instead because it lets you clear the Dalvik Cache. They said that will open up tons of internal memory.
Is this true and is it safe? Also, is buying the Pro the only way to do it? I am unemployed and need to watch every dollar.
HELP

no. you can clear the dalvik cache from recovery but it will rebuild it self when phone boots, the first boot after clearing the cache is slow so dont worry, you may wanna take a look at some app2sd or custom mdt

Just so I am clear. How do I clear it from recovery? Or do u mean I do it with the paid version of Titanium?

Are you using ClockworkMod recovery?

as439726 said:
Just so I am clear. How do I clear it from recovery? Or do u mean I do it with the paid version of Titanium?
Click to expand...
Click to collapse
like already mentioned, you can clear it by titanium our cwm recovery BUT it's gonna get rebuild again.
If your ROM support app2ext than moving the dalvik cache to the ext will clear up huge amount of internal storage.
Also moving dalvik will NOT give you more system space.

Just rooted. There are no roms for the gravity smart as far as I know. I rooted it to clear bloat because the internal memory is so small. I was told that clearing the Dalvik Cache would open up a bunch of internal memory for me. I hate dangling at around 18mb to 20mb.

darkstep said:
no. you can clear the dalvik cache from recovery but it will rebuild it self when phone boots, the first boot after clearing the cache is slow so dont worry, you may wanna take a look at some app2sd or custom mdt
Click to expand...
Click to collapse
Thanks so much. Just to clarify, once it rebuilds does all the cleared memory come back or only the memory allotted to the apps not removed. I guess what I am asking is "is it worth buying Titanium Pro to get to clear the Dalvik".
Sorry but I am a noob to rooting and there are no roms for my phone yet.

Titainium Backup
as439726 said:
Thanks so much. Just to clarify, once it rebuilds does all the cleared memory come back or only the memory allotted to the apps not removed. I guess what I am asking is "is it worth buying Titanium Pro to get to clear the Dalvik".
Sorry but I am a noob to rooting and there are no roms for my phone yet.
Click to expand...
Click to collapse
It is worth the price, You can backup your apps you can remove bloatware and also freeze things that can not be removed so that they can not launch and use resorces. Plus when a rom does become available for your device you can restore all your apps and contacts with this program. So it is worth the price. I hope that this has helped you. Enjoy your device,

Moving dalvik cache
Hello,
I have a question about this tutorial.
Do I need a special partition - that is formatted in ext - on my microsd to move the dalvik cache?
Thanks in advance for your answers.

wechselstrom said:
Hello,
I have a question about this tutorial.
Do I need a special partition - that is formatted in ext - on my microsd to move the dalvik cache?
Thanks in advance for your answers.
Click to expand...
Click to collapse
Yes, you need it. The partition will not be seen when you plug in into windows based computer. And you are not allowed to remove SD without completely shut down.
Accidentally sent from my Google Nexus S using XDA Premium

melvinchng said:
Yes, you need it. The partition will not be seen when you plug in into windows based computer. And you are not allowed to remove SD without completely shut down.
Accidentally sent from my Google Nexus S using XDA Premium
Click to expand...
Click to collapse
Thanks. How big should the ext-partition be? And what is better - ext2 or ext3?

wechselstrom said:
Thanks. How big should the ext-partition be? And what is better - ext2 or ext3?
Click to expand...
Click to collapse
Depends on you. If you are a heavy user, use 512mb. I used to use 1.1gb in my wildfire.
Ext3 is faster than 2. Ext2 can't mount when booted up.
Nexus s is using ext 4, it is even faster, but I don't think it will work with you. But you can covert your files from ext3 to 4 to get better speed after that
Accidentally sent from my Google Nexus S using XDA Premium

Okay, now I have a 512 MB ext3 partition on my microsd. How do I move the dalvik cache with this tutorial now? Can I do it with Windows xp or do I need Linux for that? Or in other words: was this tutorial written for use with Windows?

wechselstrom said:
Okay, now I have a 512 MB ext3 partition on my microsd. How do I move the dalvik cache with this tutorial now? Can I do it with Windows xp or do I need Linux for that? Or in other words: was this tutorial written for use with Windows?
Click to expand...
Click to collapse
I'm using this instead. forum.xda-developers.com/showthread.php?t=715940
Easy set up.
How easy?
Flash the zip, go terminal emulator, type in as follow
Su
A2sd cachesd
It will start to move your cache. But please make a backup of your phone before anything goes wrong. Just restore your backup if it has problem.
Good luck
Accidentally sent from my Google Nexus S using XDA Premium

melvinchng said:
I'm using this instead. forum.xda-developers.com/showthread.php?t=715940
Easy set up.
How easy?
Flash the zip, go terminal emulator, type in as follow
Su
A2sd cachesd
It will start to move your cache. But please make a backup of your phone before anything goes wrong. Just restore your backup if it has problem.
Good luck
Accidentally sent from my Google Nexus S using XDA Premium
Click to expand...
Click to collapse
Thanks for the link. Which Recovery do you use?

wechselstrom said:
Thanks for the link. Which Recovery do you use?
Click to expand...
Click to collapse
I used clockworkmod in my wildfire.
Accidentally sent from my Google Nexus S using XDA Premium

Related

[Q] s2e won't move dalvik cache to sd-ext

I have an Optimus V running IHO with s2e installed.
I am trying to use s2e to copy my dalvik cache to my sd-ext partition, but it's not working. I check the box and it says "reboot required", so I reboot, re-open s2e, and it still says "reboot required". I don't think it actually copied it to sd-ext.
How can I get it to copy my dalvik cache (~107MB)?
I havent heard of iho. But s2e is only for cm7 based roms...
Sent from my LG Optimus One P500 using xda premium
Android is right, you can only use with cm7...try using ungaze or darktremor
Sent from my LG-P500 using xda premium
IHO is based of CM 7.1. s2e copied my apps and download cache to my sd-ext just fine, it's the dalvik cache it's having issues with.
I had the same problem yesterday, uninstall s2e than reinstall from market and all of those blocked selections will be available to check....giving your on a cm7 rom...if that doesn't work repartition the sdcard than reinstall the s2e.apk than select which options you want moved to sdext and it should work
Sent from my LG-P500 using xda premium
Try wiping dalvik-cache, maybe the new one will be created on the sd-ext.
Ianis G. Vasilev said:
Try wiping dalvik-cache, maybe the new one will be created on the sd-ext.
Click to expand...
Click to collapse
I tried that, didn't work
I think the partition is corrupted, try formatting again
Garuxa said:
I think the partition is corrupted, try formatting again
Click to expand...
Click to collapse
I currently have my apps and download cache on sd-ext. That worked (works) fine.
I just noticed that I have both /cache/dalvik-cache and /data/dalvik-cache. Could this be why I can't move it to sd-ext?
Jrhodes85 said:
I had the same problem yesterday, uninstall s2e than reinstall from market and all of those blocked selections will be available to check....giving your on a cm7 rom...if that doesn't work repartition the sdcard than reinstall the s2e.apk than select which options you want moved to sdext and it should work
Click to expand...
Click to collapse
I tried uninstalling and re-installing s2e, didn't work. The weird thing is that my apps and my download cache moved to sd-ext just fine.
im having the same problem. just loaded bobzhome CM7.2.0 on my optimus v. it will move anything but the dalvik cache. whats the problem?
IMPORTANT NOTE!!!!!
i moved applications only to the SD ext partition. after this i wasnt able to load many of my apps, the most important of which was s2e. so i wasnt able to undo the move. fortunately this happened early on after i flashed the new rom. so i just called it a bad job and reflashed the rom.
im giving up on the idea of extending my ext partition. i just reformatted my SD card for basic SD storage. i will just have to live within my means. not being able to move the Dalvik cache should have been enough to ward me off, but after having it mess my apps up too im not going to try again until im really desperate.
Personally I tried ungaze a d s2e and darktremor was my favorite. You get the .zip for recovery and the UI in market, search for darktremor in it. You will have the option to move dalvik cache to sd ext. My ext is formated in ext4 by the way, might be your problem. I write here mainly to tell you that in my own experience moving dalvik to sd-ext on top of my apps to sd-ext made my rom laggy and slow. Apps only worked fine. Darktremor's the best. Try it.
Sent from my LG-P500 using Much Love
Mount as Ext4
how r u partitioning the sd card? I use mini tool and have partitioned it fine. make sure you make a fat32 1st, 2nd ext2 & 3rd Linux swap (see attached image - Disc 2 as example). Thats the only way it works. Best of luck Also, once s2e is installed, open s2e > menu > settings > select option 'Mount as Ext4'. I will not recommend moving applications and private apps, just move dalvik cache and download cache.
Community: http://on.fb.me/Root4Andrd
I have been going round and round with this issue for a long time.... i used mini tool and other programs like darktremor and NONE worked,
I used mini tool like nth20 has stated only I created a fat32 partition,
I used the integrate SYS davik option in titanium backup!
I am useing a IHO rom that has link2sd and that worked for me...
good luck i have reflashed and tried so many roms and was finally able to get this to work.
__________________
Phone: LG Optimus V (VM670)
ROM: CyanogenMod 7.10.1-BobZhome-11132011
Kernel: 2.6.32.9-v3.3
Android Version 2.3.7
Overclock: 480~806MHz - Performance
Provider: Virgin Mobile USA
Mangala_Dharma said:
Personally I tried ungaze a d s2e and darktremor was my favorite. You get the .zip for recovery and the UI in market, search for darktremor in it. You will have the option to move dalvik cache to sd ext. My ext is formated in ext4 by the way, might be your problem. I write here mainly to tell you that in my own experience moving dalvik to sd-ext on top of my apps to sd-ext made my rom laggy and slow. Apps only worked fine. Darktremor's the best. Try it.
Sent from my LG-P500 using Much Love
Click to expand...
Click to collapse
I don't really want to move the dalvik-cache, to sd-ext, but when I try to install or update anything from the market, I get "package file invalid". I'm assuming that the error is that my cache is full.
nth20 said:
how r u partitioning the sd card? I use mini tool and have partitioned it fine. make sure you make a fat32 1st, 2nd ext2 & 3rd Linux swap (see attached image - Disc 2 as example). Thats the only way it works. Best of luck Also, once s2e is installed, open s2e > menu > settings > select option 'Mount as Ext4'. I will not recommend moving applications and private apps, just move dalvik cache and download cache.
Community: http://on.fb.me/Root4Andrd
Click to expand...
Click to collapse
Do you need a swap partition for dalvik cache to move correctly? I didn't add one, so that may be the issue. Unfortunately, I have too many apps, and I need them moved to sd-ext, because they don't fit in the internal memory.
slappy18201 said:
I have been going round and round with this issue for a long time.... i used mini tool and other programs like darktremor and NONE worked,
I used mini tool like nth20 has stated only I created a fat32 partition,
I used the integrate SYS davik option in titanium backup!
I am useing a IHO rom that has link2sd and that worked for me...
good luck i have reflashed and tried so many roms and was finally able to get this to work.
Click to expand...
Click to collapse
"integrate SYS davik option", eh? That looks interesting, let me try it. That seemed to help. s2e still didn't move the cache, but I can correctly install/update from the market now.
NTICompass said:
I don't really want to move the dalvik-cache, to sd-ext, but when I try to install or update anything from the market, I get "package file invalid". I'm assuming that the error is that my cache is full.
Yup. Either your dalvik cache or download cache or both cannot find enough space in internal memory.
Do you need a swap partition for dalvik cache to move correctly? I didn't add one, so that may be the issue. Unfortunately, I have too many apps, and I need them moved to sd-ext, because they don't fit in the internal memory.
You need the swap partition as apps use it the space while installations. Saves you from the 'package file invalid' error.
Hope this helps.
Community: Rooting for Android
Click to expand...
Click to collapse
I was able to use Titanium Backup's "Intergrate Sys Dalvik into ROM", and that fixed the problem (it moved ~20MB of stuff).
nth20 said:
You need the swap partition as apps use it the space while installations. Saves you from the 'package file invalid' error.
Click to expand...
Click to collapse
I can try to add one, and see if that helps, but I think if I can install apps now, then I don't need to actually move the dalvik cache.
NTICompass said:
I was able to use Titanium Backup's "Intergrate Sys Dalvik into ROM", and that fixed the problem (it moved ~20MB of stuff).
I can try to add one, and see if that helps, but I think if I can install apps now, then I don't need to actually move the dalvik cache.
Click to expand...
Click to collapse
Just 20MB. That's kinda low. Attached is a screenshot from my device. Check the size of the dalvik cache.
Community: Rooting for Android

Dalvik & sd-ext

do we need an sd-ext partition on the built in sdcard for the dalvik?
everytime i wipe the dalvik from clockworkmod, it says that the sd-ext partition not found.
I have the same issue and question. And yes I did a search and this thread came up.
You don't need it - if you had the card partitioned, it would clean it for you. Since most people don't have one, you can just ignore it.
alacrify said:
You don't need it - if you had the card partitioned, it would clean it for you. Since most people don't have one, you can just ignore it.
Click to expand...
Click to collapse
Thanks for the reply. I thought I had read many months ago sd-ext wasn't needed much any more.
Sent from my SGH-I777 using xda premium

How do i get my apps using link2d ,back from 2nd partition after i wiped data :(

I have been using Link2sd for a while now and just wanted to know is there a way to get all my apps/games back after flashing a new rom and performing a full data wipe, cache wipe, after factory resetting...etc my phone.
There should be coz all the apps and there data, .dex files and lib files etc, are already there on the second partition. Isn't there anything I can do. I just dont want to reinstall everything again.
thanks
samajid said:
I have been using Link2sd for a while now and just wanted to know is there a way to get all my apps/games back after flashing a new rom and performing a full data wipe, cache wipe, after factory resetting...etc my phone.
There should be coz all the apps and there data, .dex files and lib files etc, are already there on the second partition. Isn't there anything I can do. I just dont want to reinstall everything again.
thanks
Click to expand...
Click to collapse
No you can't use link2sd for it, if you wanna backup full your applications you can using titanium backup, you can backup including your account like Facebook, yahoo, etc..
Sent from my Xperia Mini Pro using XDA
samajid said:
I have been using Link2sd for a while now and just wanted to know is there a way to get all my apps/games back after flashing a new rom and performing a full data wipe, cache wipe, after factory resetting...etc my phone.
There should be coz all the apps and there data, .dex files and lib files etc, are already there on the second partition. Isn't there anything I can do. I just dont want to reinstall everything again.
thanks
Click to expand...
Click to collapse
If the data is still on the second partition, you can try opening link2sd, press menu> more > relink application files. I think, though that cwm will wipe the second partition (or /sd.ext) if you perform a factory reset.
Are you sure the 2nd partition is wiped as well when I do a factory reset??
Coz I see that there is used space in the partition... But when I check /data/sdext2 thru ES File explorer ..its empty!
Sent from my SK17i using xda app-developers app
samajid said:
Are you sure the 2nd partition is wiped as well when I do a factory reset??
Coz I see that there is used space in the partition... But when I check /data/sdext2 thru ES File explorer ..its empty!
Sent from my SK17i using xda app-developers app
Click to expand...
Click to collapse
If you ask how about your 2nd partition after you wipe data, wipe cache partitions, I answer your partition is well but if ask how your file applications after you wipe data I say your file has deleted..
Sent from my Xperia Mini Pro using XDA
Smartid said:
If you ask how about your 2nd partition after you wipe data, wipe cache partitions, I answer your partition is well but if ask how your file applications after you wipe data I say your file has deleted..
Sent from my Xperia Mini Pro using XDA
Click to expand...
Click to collapse
M sorry but I didnt understand...
Is it possible to relink my applications now or not?
Sent from my SK17i using xda app-developers app
Q. I upgraded/changed my ROM and I can not see my linked apps, their files are on the 2nd partition but the system can not see the apps. How can I make them available, do I need to reinstall and relink them again?
No, if you didn't wipe data when updating ROM the only thing you need to do is to run "Recreate mount scripts" from "menu -> more" within Link2SD and do a normal (not quick) reboot.
If you wiped data, after executing "Recreate mount scripts" and rebooting, run "Relink all application files" from "menu -> more" and then reboot. All of your linked apps should be available again after reboot.
If you also wiped dalvik-cache, in addition to the above step run "Link dalvik-cache files".
Found this on the link2sd site... i did as its told here... but when i "relink all application files" it says no files found to relink ... :/ what do i do...
Best way is to backup using titanium backup. About the factory reset for me (rage kernel + CWM 5) it formats the second sd partition.
Sent from my SK17i using xda app-developers app
Yea I guess il have to buy the pro version...does link2sd move the application automaticlly when we backup or do we hav to link everything later...cz my internal memory dosent hav enough space to backup all the apps at the same time...

How do I format internal SD?

Hi
I have a huge problem.
Sms/mms app won't run. It crashes after boot and any time I try to start it.
I have made several clean installations of stock ROM with no result. Including wiping everything of course.
But I can't figure out how to format the internal SD. There's files left there no matter what I do.
How do I make a true format so I can start over from scratch?
Sent from my Goner Simpsung S3 - XDA dev app.
Damien74 said:
Hi
I have a huge problem.
Sms/mms app won't run. It crashes after boot and any time I try to start it.
I have made several clean installations of stock ROM with no result. Including wiping everything of course.
But I can't figure out how to format the internal SD. There's files left there no matter what I do.
How do I make a true format so I can start over from scratch?
Sent from my Goner Simpsung S3 - XDA dev app.
Click to expand...
Click to collapse
Probably files whose path gets rebuilt after a wipe, like DCIM.
In twrp recovery you have in wipe menu options to wipe internal sdcard, or format data completely, including /data/media (= sdcard).
Key in *2767*3855#
Sent from my GT-I9300 using xda premium
slaphead20 said:
Probably files whose path gets rebuilt after a wipe, like DCIM.
Click to expand...
Click to collapse
Yes but not only, there are some other files still there.
Striatum_bdr said:
In twrp recovery you have in wipe menu options to wipe internal sdcard, or format data completely, including /data/media (= sdcard).
Click to expand...
Click to collapse
What is twrp? I rooted the simple way which includes CWM (CF-Root 6.4).
jaidev.s said:
Key in *2767*3855#
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I did several hard resets, but those do not fix anything really.
It would be helpful if you list what files they are
slaphead20 said:
It would be helpful if you list what files they are
Click to expand...
Click to collapse
No that doesn't matter. I just wanna format the card.
Damien74 said:
No that doesn't matter. I just wanna format the card.
Click to expand...
Click to collapse
Recovery/mounts and storage/format sd
Twrp is a recovery, there is a thread in Android original development section.
slaphead20 said:
Recovery/mounts and storage/format sd
Click to expand...
Click to collapse
No, I tried that several times. I think that is supposed to format the external memory card BTW.
Striatum_bdr said:
Twrp is a recovery, there is a thread in Android original development section.
Click to expand...
Click to collapse
Thanks! I read about it. I'm gonna try it later on. Seems fast.
Striatum_bdr said:
Twrp is a recovery, there is a thread in Android original development section.
Click to expand...
Click to collapse
BTW: that must be some special. You can't format the internal card when using the phone. To many files in it that system uses.

Factory reset and clockwork mod recovery

Ok i am new to the rooting and custom Rom game and I have a question. In stock form if I did a factory reset, everything on my phone was wiped, music pics everything. But when using the clockwork recovery it doesn't wipe out my pics and music. Why not?
Sent from my Galaxy Nexus using xda app-developers app
mrvoodoodaddy69 said:
Ok i am new to the rooting and custom Rom game and I have a question. In stock form if I did a factory reset, everything on my phone was wiped, music pics everything. But when using the clockwork recovery it doesn't wipe out my pics and music. Why not?
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Did you hit factory reset in clockwork recovery as well?
Bcoz if your pics and music are in ur External Sd card clockwork mod recovry doesnt wipe ur files of SD card....so it happens that ur pics& music r nt wiped
DeathNotice said:
Bcoz if your pics and music are in ur External Sd card clockwork mod recovry doesnt wipe ur files of SD card....so it happens that ur pics& music r nt wiped
Click to expand...
Click to collapse
ok that makes sense, the whole folder structure is taking me a little while to grasp, since there is no sd card on the gnex and it all being internal. just wasn't sure how it was picking what information to wipe. now that being said if i should want to wipe everything. could i go into the normal settings and do a factory reset wince i am running a custom rom?
Yes u can do the normal factory reset
Thorwak27 said:
Did you hit factory reset in clockwork recovery as well?
Click to expand...
Click to collapse
yes, i did hit the factory reset in recovery, i thought i had maybe forgotten to. then i changed roms and made sure, that is what made me start to wonder what is up.
mrvoodoodaddy69 said:
yes, i did hit the factory reset in recovery, i thought i had maybe forgotten to. then i changed roms and made sure, that is what made me start to wonder what is up.
Click to expand...
Click to collapse
Sometimes I know when installing roms it can make a legacy folder which I believe is like a clone of the original installation and sometimes the factory reset won't wipe that folder because it is "hidden". I am not sure why it does this. But I do recall someone mentioning this in the past (or something similar). I could be wrong though.
This legacy folder sounds reasonable. I do have one of those. I which has confused the crap out of me when looking for things. Maybe this is why all of my contact photos are out of sync. Now let's suppose I do a factory reset from the settings on the phone. What bad is going to happen?
Sent from my Galaxy Nexus using xda app-developers app
if u want to wipe everything in your internal storage including data such pic, music, downloaded apps etc...you can do one thing
-by using twrp custom recovery...go to advance wipe, tick all except the last two box
-in cwm go to advance/format data...be sure not to touch the ext. card
ramzell123 said:
if u want to wipe everything in your internal storage including data such pic, music, downloaded apps etc...you can do one thing
-by using twrp custom recovery...go to advance wipe, tick all except the last two box
-in cwm go to advance/format data...be sure not to touch the ext. card
Click to expand...
Click to collapse
i am using cwm v6.0.4.3 and do not have the option to format data under the advance option, how ever under Mounts and Storage menu there is a format /data. would this be the one you speak of. actually this was the next question i was about to ask. thanks!
mrvoodoodaddy69 said:
i am using cwm v6.0.4.3 and do not have the option to format data under the advance option, how ever under Mounts and Storage menu there is a format /data. would this be the one you speak of. actually this was the next question i was about to ask. thanks!
Click to expand...
Click to collapse
-yes...something like this: format sd card (system,data ect)...i cant remember
-I'm using TWRP as my rom developer encourage us to use...more stable according to him
DeathNotice said:
Yes u can do the normal factory reset
Click to expand...
Click to collapse
thanks for the info, i was makeing a WAG that this would work, but not being a pro at this thought i probably should ask before i winged it.

Categories

Resources