[Q] Dalvik Cache and Clockworkmod Questions - EVO 4G Q&A, Help & Troubleshooting

In Clockworkmod 2.6.0.1
Why is Clearing Dalvik Cache in Adavanced and not side by side with other Clearing items on main menu?
Why isn't Dalvik Cache cleared with a full Data/Cache Clear?
What's in Dalvik Cache vs Cache?
Anyone have any idea why when I select Clear Dalvik in Clockworkmod that sometimes it takes a while to display the "Are you Sure" page? Seems completely random. Most of the time it comes up instantly as all confirmation pages. But once in a while it just sits there for a while and then it pops up.

my answers are as follows
1. don't know
2. not sure
3. I'll leave that to an expert
All I know is that all of the problems I was having went away when I switched to Amon. Probably not the answer you're looking for, but you may want to look into Amon if you are having recovery concerns.
When I used Clockwork, it did seem like the Dalvik cache wipe really didn't do anything, and according to a lot of the Devs, it doesn't. I always had major problems with clockwork, even considered unrooting because the phone had so many post wipe/flash issues.

If it ain't broke don't fix it.
If I have a problem I'll check out Amon but the delay I see when choosing it is not a problem as far as I know, I was just curious what it was. Perhaps it's the order I might do something.
I also wanted to understand more about what it actually is.

mswlogo said:
In Clockworkmod 2.6.0.1
Why is Clearing Dalvik Cache in Adavanced and not side by side with other Clearing items on main menu?
Why isn't Dalvik Cache cleared with a full Data/Cache Clear?
What's in Dalvik Cache vs Cache?
Anyone have any idea why when I select Clear Dalvik in Clockworkmod that sometimes it takes a while to display the "Are you Sure" page? Seems completely random. Most of the time it comes up instantly as all confirmation pages. But once in a while it just sits there for a while and then it pops up.
Click to expand...
Click to collapse
From Android Forums: "Dalvik cache is a program cache area for the program dalvik. Dalvik is a java based virtual machine that is the bases for running your programs (the ones that have the .apk extension). In order to make access times faster (because there's not JIT (just in time) compiler installed by default), the dalvik-cache is the result of dalvik doing an optimization of the running program. Sounds confusing. It's similar to the prefetch files in Windows."
As for why Dalvik is located where it is in CW 2.6...have no idea but wish it was located out of the Advanced section to make it easier to get to. However, I believe 2.6.0.1 is wiping Dalvik properly even though sometimes it doesn't confirm it. Still think AR 1.8 is best recovery of all.

CCallahan said:
From Android Forums: "Dalvik cache is a program cache area for the program dalvik. Dalvik is a java based virtual machine that is the bases for running your programs (the ones that have the .apk extension). In order to make access times faster (because there's not JIT (just in time) compiler installed by default), the dalvik-cache is the result of dalvik doing an optimization of the running program. Sounds confusing. It's similar to the prefetch files in Windows."
As for why Dalvik is located where it is in CW 2.6...have no idea but wish it was located out of the Advanced section to make it easier to get to. However, I believe 2.6.0.1 is wiping Dalvik properly even though sometimes it doesn't confirm it. Still think AR 1.8 is best recovery of all.
Click to expand...
Click to collapse
Thanks, it always prompts and it always confirms it's cleared. It just that the prompt page (Yes/No Page) sometimes takes a while and it's not doing anything between choose clear dalvik and the confirm page asking Are You Sure. You know, the Page where you have to push Down/Down/Down... and select. That page sometimes just doesn't pop up. But every other place that same confirm page pops up always comes up immediately. Just the Dalvik flavor of that confirm page is sometimes very slow to come up.
All I can think of is sometimes I just did Clear Data and Clear Cache just before and perhaps something needs to be rebuild before it can display that page. And other times I might do it in a different order. Say Dalvik first then the other clearing.
Just seems wierd and curious if others ever ran into it.

mswlogo said:
Thanks, it always prompts and it always confirms it's cleared. It just that the prompt page (Yes/No Page) sometimes takes a while and it's not doing anything between choose clear dalvik and the confirm page asking Are You Sure. You know, the Page where you have to push Down/Down/Down... and select. That page sometimes just doesn't pop up. But every other place that same confirm page pops up always comes up immediately. Just the Dalvik flavor of that confirm page is sometimes very slow to come up.
All I can think of is sometimes I just did Clear Data and Clear Cache just before and perhaps something needs to be rebuild before it can display that page. And other times I might do it in a different order. Say Dalvik first then the other clearing.
Just seems wierd and curious if others ever ran into it.
Click to expand...
Click to collapse
I experience the same thing. Sometimes it takes a bit to clear it and other times it doesn't. Depends on how long it has been since last change/wipe. With AR it gives the little progress dots and CW it doesn't so looks like it isn't doing anything when it actually is.

Related

[Q] Wiping Dalvik

When reboot my phone and go into Clockwork Recovery to install a new ROM, i do a 2x Wipe of data and then 1x Cache Wipe and 1x Dalvik, but the Dalvik does not do anything, i hit the power button and try to run it and nothing happens, no words scroll saying wipe complete or anything...
Please Help
Im running Ava v6
Thanks
I'll be polite: This has been discussed a number of times. Search first, ask questions later.
SilverZero said:
I'll be polite: This has been discussed a number of times. Search first, ask questions later.
Click to expand...
Click to collapse
Thank you for not tearing me a new one, I forgot to do a search
Thanks
I found this in a thread, It was a post from you.
Thanks
Originally Posted by antiphon
ClockworkMod DOES indeed wipe the dalvik cache. I think the reason why many people are confused is that it only takes a second or two for the dalvik cache to wipe on CWM, whereas it takes longer on RA. However, the reasoning behind this is simple- most people wipe the cache partition before wiping the dalvik cache. When you wipe the cache partition, you are wiping everything on that partition, including the dalvik cache. So in essence, when people go to the Advanced menu in CWM to directly wipe the dalvik cache, they are essentially wiping a blank folder.
If you don't believe me, try this:
1. Reboot into recovery
2. Go to the CWM partitions menu and mount the cache partition
3. adb shell
4. cd /cache/dalvik-cache
5. Type "ls-a" and note all the files.
6. Exit adb shell
7. Wipe the cache partition in CWM
8. adb shell
9. cd /cache
10. Type "ls-a". This time there should be no dalvik-cache directory.
I posted this exact test and result a couple of weeks ago, with the same reasoning. People don't care, they believe what they want to believe.
It would be at least compelling if somebody from the other camp would post proof that CWM does NOT wipe their dalvik cache.
Actually, just the response at the bottom was mine, but yeah, now you know. The answer is still somewhat unclear. I would assume it's working (since you are wiping /data anyway . . . twice, because you're OCD or something ) unless you have problems. Some say it works fine, some say it doesn't, but I haven't seen anything beyond the "there are reports that it doesn't" thing - it's always a friend of a friend.
"It's the Kentucky Fried Mouse." (Name that movie!)

[GUIDE] A Noob's Guide to Flashing ROMs Manually

Here's the guide for rooting by rivera82falcon:
http://forum.xda-developers.com/showthread.php?t=1219246
Guide for installing ROMs by me:
Before installing the ROM...
1, Download Titanium Backup from the market, allow superuser permissions, then click menu>batch>backup all user apps.
2. Make sure fastboot is off in settings>power.
3. Put the ROM zip on the root of your SD Card
4. Download SMS Backup and Restore, and backup your SMS.
5. Back up your contacts by checking "back up my data" or something like that under settings/privacy
How to install the ROM...
1. Turn off phone, and hold power and volume down until you get a white screen that says Hboot.
2.Volume down/up is for scrolling; power is for selecting.
3. Scroll down and select RECOVERY.
4. Scroll down and selected BACKUP AND RESTORE.
5. Select BACKUP and wait for it to finish.
6. Hit the back button to go back to the main menu.
7. Scroll down and select WIPE DATA/FACTORY RESET.
8. Scroll down and select WIPE CACHE PARTITION.
9.Hit the back button to go back to the main menu.
10. Scroll down and select ADVANCED, then WIPE DALVIK CACHE.
11. Hit the back button.
12. Select mounts and storage and select FORMAT SYSTEM.
13. Hit the back button to go back to the main menu.
14. Scroll down and select INSTALL ZIP FROM SD CARD, then CHOOSE ZIP FROM SD CARD, then whatever the ROM zip is.
15. Let it do its thing. This may take 5-10 minutes. DON'T PULL THE BATTERY.
16. When it is finished, hit the back button to go back to the main menu.
17. Select REBOOT SYSTEM NOW. This boot may take up to 15-20 minutes so be patient. Once again, do not pull the battery!
18. Run the initial setup. When you're setting up your google account, make sure the "keep data backed up" or whatever box is checked. This will make sure to restore your/keep your contacts backed up.
19. Redownload Titanium Backup. Hit menu/batch/restore missing apps with data.
20. Redownload SMS B+R. Restore your SMS.
21. Enjoy your new ROM!
Nice guide for those not wanting to use a ROM manager.
When I restore the user apps will that also restore the app settings and gamesaves?
Sent from my HTC Droid Incredible 2 via the XDA app.
klabit87 said:
When I restore the user apps will that also restore the app settings and gamesaves?
Sent from my HTC Droid Incredible 2 via the XDA app.
Click to expand...
Click to collapse
I would recommend restoring the app only, and then go back and restore the data. You will then have whatever settings you had as well as game scores, levels etc after doing this. Just make sure that before you flash a new rom, to make a new backup, or at least a backup of the apps or games that may have had the settings, scores or levels changed. I have gotten into the habit of backing up my games after I get done playing. Nothing worse than flashing a new rom, and have to go back a few levels and start over
Just wondering - what exactly does formatting do? I've always done a system wipe, cache wipe, and dalvik wipe before flashing but I've never formatted. I've flashed a good half dozen ROMs without issue, so I was just wondering what the deal was with formatting.
I also haven't been wiping battery stats when flashing. That one makes sense to me though.
Sent from my Incredible 2 using XDA App
cory.spicer said:
Just wondering - what exactly does formatting do? I've always done a system wipe, cache wipe, and dalvik wipe before flashing but I've never formatted. I've flashed a good half dozen ROMs without issue, so I was just wondering what the deal was with formatting.
I also haven't been wiping battery stats when flashing. That one makes sense to me though.
Sent from my Incredible 2 using XDA App
Click to expand...
Click to collapse
I wouldn't wipe batt stats unless your flashing on a full battery. Really just a full data wipe and dalvik cache wipe will do it.... Then mount system and fix permissions if you're having trouble with rom after install/reboot. Can't hurt to follow above procedures, minus a battery stat wipe every time. That will reduce your battery's life over time...
Sent from my Incredible 2 using XDA App
Formatting is generally used to erase the SD Card, such as if your were going to partion the SD Card, or change the File System IE Ext 3 to Ext 4.
Guys, I updated the OP, based on feedback.
And I think the reason that I did all that extra wiping was from back in the droid incredible 1 forums. When gingersense roms came out, the op's of every thread said to wipe EVERYTHING like 3 times. I just did everything once, but still. I probably didn't need to wipe all that stuff.
Maybe change the title to "Noob's Guide to Flashing ROMs Manually"? The noob way to flash a ROM (or managing/creating backups) is definitely using Rom Manager.
Done. Good point, although ROM manager is known to mess things up.
Yeah what's now in the OP is the exact procedure I've been using, it's been working great so far.
Sent from my Incredible 2 using XDA App
I've never wiped battery stats, not really sure what the benefit is. Used multiple batteries and ROMs on my previous phone.
If you do a factory reset it wipes your data and cache. I generally just do a factory reset/dalvik wipe on new ROMs. When flashing over a ROM, just format cache and dalvik.
If you are really picky you can go into advanced and wipe each partition there manually.
thanks for the great write up. i hope this isn't a stupid question, but when you're switching roms and doing all this formatting do you lose your pictures, text messages, contacts, etc.???
wiping cache and dalvik is redundant after doing a data wipe/ factory reset. dalvik cache lives on the data partition. and the factory reset wipes cache already anyway.
Sent from my Incredible 2 using XDA App
shoman24v said:
I've never wiped battery stats, not really sure what the benefit is. Used multiple batteries and ROMs on my previous phone.
If you do a factory reset it wipes your data and cache. I generally just do a factory reset/dalvik wipe on new ROMs. When flashing over a ROM, just format cache and dalvik.
If you are really picky you can go into advanced and wipe each partition there manually.
Click to expand...
Click to collapse
I wipe battery stats now, but not through recovery. I download battery calibration from the market, and follow the instructions in the app. Major increase in battery life.
lddrew said:
thanks for the great write up. i hope this isn't a stupid question, but when you're switching roms and doing all this formatting do you lose your pictures, text messages, contacts, etc.???
Click to expand...
Click to collapse
If you wipe cache and/or dalvik cache only, no. If you wipe data/factory reset, you will lose any of the above on PHONE STORAGE. You can save pics to the SD card, so they won't be deleted, you can download SMS Backup and Restore from the market for texts. For contacts, some ROMs have backup assistant. For those that don't, make sure you check "backup my settings" under settings/privacy on your current ROM. This will back up your contacts to you google account. After you flash a new ROM, just check the "backup my settings" box when setting up your google account. Also, just redownload SMS B+R, and restore your SMS. If your pics are on the SD, they will still be there, you don't have to do anything. Hope this helps.
Lots of edits in the OP.
AgalychnisCallidryas said:
I wipe battery stats now, but not through recovery. I download battery calibration from the market, and follow the instructions in the app. Major increase in battery life.
If you wipe cache and/or dalvik cache only, no. If you wipe data/factory reset, you will lose any of the above on PHONE STORAGE. You can save pics to the SD card, so they won't be deleted, you can download SMS Backup and Restore from the market for texts. For contacts, some ROMs have backup assistant. For those that don't, make sure you check "backup my settings" under settings/privacy on your current ROM. This will back up your contacts to you google account. After you flash a new ROM, just check the "backup my settings" box when setting up your google account. Also, just redownload SMS B+R, and restore your SMS. If your pics are on the SD, they will still be there, you don't have to do anything. Hope this helps.
Click to expand...
Click to collapse
thank you so much, i've been doing a lot of reading but this has all the answers i was looking for in one place. i really appreciate it. thanks!!
This is the only guide I've managed to find that gives simple and concise instructions. Many other guides leave out steps, use different names for things, or use abstract terminology.
Very well done and a HUGE thank you! I'm new to rooting and I've been trying different roms like I've been doing it for years.
I'm glad I helped. I flashed my first ROM with my friend giving step-by-step instructions over the phone lol.
This is exactly what I do for ALL of my android devices.
However...especially when going from aosp to sense...or vice versa...system, data and cache should really be formatted.
This is really a solid habit to get into...as I do this with every ROM. This way I can accurately find bugs if applicable and helps me determine if the ROM quality is up to snuff.
Kinda like hand tightening lugs on wheels and torquing them.
Great writeup. Thanks!
Sent from my Xoom using xda premium

Dalvik cache clearing problem

I'm trying out a few ROMs today but now I think I cannot clear the dalvik cache.
In recovery, when I go to advanced -> wipe dalvik cache it says
E:unknown volume for path [/sd-ext]
I still get to choose "Confirm wipe? No No No.... Yes - Wipe Dalvik Cache" but I'm starting to think this has something to do with some ROMs not working (properly). Anyone knows how to get around this? Thanks!
I think there is a function for it in Titanium Backup. Sorry if it's not exactly what you're looking for.
Thanks I'll try that, do I need titanium backup pro for that?
I've got a relatively stable ROM now so I'll try it later when I have more time.
Carolief said:
I'm trying out a few ROMs today but now I think I cannot clear the dalvik cache.
In recovery, when I go to advanced -> wipe dalvik cache it says
E:unknown volume for path [/sd-ext]
Click to expand...
Click to collapse
do it again and it wont say the E:unknown path thing... at least mine doesn't...
Or you could always do it manually. ES File Explorer is a good app. Dalvik cache is safe to remove because the only thing that can happen to you is that it will be created again. Also, the pro version of Titanium backup (that, in my humble opinion, is absolutely worth the money) has functions like integrate dalvik to rom and undo the integration, which do come in handy if you're changing roms and tweaking them up.
you clean it directly by link2sd...there is the specific option

Insufficient Space/Invalid Package File

I've been having this issue for the past couple of weeks and I don't know how to resolve it. At first I thought it might have been my ROM so I wiped everything clean and flashed a new ROM but the problem still exists. I read on a forum that the cache partition could be full so I used Terminal Emulator to check the disk usage and I'm reading that my /cache is 98% full. I also have a dalvik cache in the cache folder as well as a dalvik cache in my /data folder both of which are close to 300mb in size. I tried to clear the cache and dalvik cache in recovery before resorting to the full wipe and each time both cache rebuilt themselves. I'm completely at a loss and I'd really appreciate some help with this issue. Thanks in advance.
So you're out of space? Perhaps you have several backups from CWM taking up all the room. They are pretty large files. I myself keep my stock backup and my most recent, the rest of them rest on my pc.
Sent from my Blazing ET4G
thats not the case here. i dug around a bit and saw that my cache and dalvik cache are 98% full. as stated earlier i tried deleting the dalvik cache but it regenerates itself. i looked around in titanium backup and saw an option to integrate some of the cache to the system. i enabled that and it moved around 150 items around and freed up some space. i'm still around 88% full and i know this problem is gonna rear it's ugly head very soon so I'm trying to install programs like link2sd and as2d+. none of these programs are working though...they all require partitioned sd cards (which i have) but none of these programs are seeing the partitioned card. i've tried repartitioning under recovery but that does absolutely nothing. anyway e4gt users can take advantage of these programs?
I had the same issue and it was driving me crazy. I just downloaded Cache Fixer and ran it and now I am good. Turns out my cache was 95% full, wiped it using that tool and I can now update and download.
I want to add that after it cleared, I could update but some of the other apps on the phone did no work (Google Music and Dolphin Browser to nae a few). I re-boot and the cache is back to pre clearing levels and no other issues. It does temporarily fix the isse bt I do not have a permanent fix.
If anyone has one, I would love to know what that may be.
i just want to say that I am having the same exact issue and performed the same steps the OP did. Only when I wipe the cache with cache fixer it everything forces closes so i can't update anything. So i am really stuck.
The only success that I have temporarily is uninstalling the app then resinstalling it. But thats not a permanent solution and sucks for apps like beautiful widgets.
PLEASE HELP
EDIT: on calkulins 3.0 rom and self updated google play

unable to format sdcard in cwm

I'm basically trying to move to the dalvik cache to my sd card for space reasons. I'm trying to format my sdcard for use with link2sd and other programs like it but I'm unable to do so in cwm. whenever i choose partition sdcard, it gives me the dialog like it does it correctly but nothing actually happens. I tried to partition the card on my pc but none of the link2sd programs recognize it. its as if the only thing those programs recognize is the internal storage and to my knowledge I can't do anything with that. if i can do it manually and avoid using the programs that'd be awesome. can anyone point me in the right direction?
...I'm kind at a loss for why you would want a virtual machine cache on an sd-card and not emmc. Perhaps I am 'not getting it'...care to explain?
i've had this problem for a couple of weeks now...downloads from the market over a certain size just won't go through. "insufficient space" "invalid package file" errors like those would pop up. i went to term. emulator and to check the mount sizes and my dalvik cache was 98% full. in titanium backup i saw an option to "integrate sys dalvik into ROM". i enabled that and it moved over 150 items from the dalvik to someplace in the system. that cleared up some space and now i'm only using 82% of the dalvik and i'm able to download and update from the market like normal. i know this problem is gonna come back and i'm trying to avoid it by moving the dalvik to the sd card where the space is plentiful.
hobomusashi said:
i've had this problem for a couple of weeks now...downloads from the market over a certain size just won't go through. "insufficient space" "invalid package file" errors like those would pop up. i went to term. emulator and to check the mount sizes and my dalvik cache was 98% full. in titanium backup i saw an option to "integrate sys dalvik into ROM". i enabled that and it moved over 150 items from the dalvik to someplace in the system. that cleared up some space and now i'm only using 82% of the dalvik and i'm able to download and update from the market like normal. i know this problem is gonna come back and i'm trying to avoid it by moving the dalvik to the sd card where the space is plentiful.
Click to expand...
Click to collapse
I've never encountered this problem...I flash like crazy...I also migrate over all of my apps via TB...so...I have like 4 or 5 phones worth of apps following me around from rom to rom.....I don't have many big apps, so, of course YMMV--and likely will--but....perhaps this isn't, in fact, the actual problem but a symptom of another problem.
Have you had this issue with multiple roms? When was the last time you did a full wipe? On every phone I have either the stock rom or my favorite rom that I always go back to, no matter what, more than any other rom.....via nandroid....and I have never encountered this problem....any other customizations we should know about?
I've never had this issue before. I'm on the latest Calkulin ROM since I've switched from my HD2. This is the first time I've had this error pop up and I resolved it by moving some things around in the dalvik and freeing up some space. As stated earlier TB moved around 150 items and afterwards I was instantly able to download/update from the market. I don't really customize my phone other than the random theming here and there. I've switched ROMs back and forth to see if it was in fact the ROM and not something I did but the issue came back as soon as I restored my backed up apps via TB. I'm guessing the cache filled up with the data from the apps that are backed up with TB.
Here's one solution/quick fix: manually delete your dalvik cache with a file manager and then just flash an odexed Rom: Then your space issues would be solved, and there's not the issue of Dalvik taking up any room in the first place.
["hip", "hip"]
mazook98 said:
Here's one solution/quick fix: manually delete your dalvik cache with a file manager and then just flash an odexed Rom: Then your space issues would be solved, and there's not the issue of Dalvik taking up any room in the first place.
["hip", "hip"]
Click to expand...
Click to collapse
...and I have always preferred odex'd roms. makes sense.
so there's no way of installing the programs mentioned in the first post?
CM supports init scripts, right? Download Calkulin's ROM from the Dev section, extract it and check system/etc/init.d for a dalvik2cache (going by memory here, might not be the exact name) script. Might be able to use that.
Sent from my SPH-D710 using Tapatalk

Categories

Resources