[Q] ART: To Dalvik-Cache wipe or not - Nexus 5 Q&A, Help & Troubleshooting

A simple but yet puzzling question - and I would so much avoid rebuilding the ART cache ...
If one chooses to wipe the dalvik-cache from recovery will this magically return some of the "wasted" space or this is the same folder used for the ART cache?
More technical: where is the ART cache stored? in a special folder like data/dalvik-cache or it's coupled with the apps themselves?

kraven001 said:
A simple but yet puzzling question - and I would so much avoid rebuilding the ART cache ...
If one chooses to wipe the dalvik-cache from recovery will this magically return some of the "wasted" space or this is the same folder used for the ART cache?
More technical: where is the ART cache stored? in a special folder like data/dalvik-cache or it's coupled with the apps themselves?
Click to expand...
Click to collapse
you will save/recover space from "cache/dalvik-cache" However, the "data/dalvik-cache" will stay even if manually delete the files, it will rebuild upon reboot.

Related

[Q] How to wipe Dalvik Cache?

What is the proper way to wipe the Dalvik Cache on the SamChg?
I removed a system app, and I read that I should wipe the DC to truly clean out the system app.
¿GotJazz? said:
What is the proper way to wipe the Dalvik Cache on the SamChg?
I removed a system app, and I read that I should wipe the DC to truly clean out the system app.
Click to expand...
Click to collapse
Couple of ways to do it.
Easiest is use CWR and select the option to wipe dalvik under advanced.
You can manually delete the contents of the /data/dalvik-cache folder via the rm command (google for proper syntax) from the terminal, adb, or with something like root explorer (make sure to mount r/w).
A reboot will rebuild the cache, which will cause your reboot to take considerably longer than normal.

[proof] wiping cache also 'wipes' dalvik

So, this has been a question/subject of much mystery. Does wiping /cache also 'wipe' the Dalvik? A bunch of us know that the Dalvik is located within /cache so, it's assumed that wiping /cache will also wipe the Dalvik, but most have gone the route of being careful, just in case. Which is fine.
In getting a CWM log from someone to port my Nullifier and something I caught a glimpse of but was too busy to go back and check on, we now have objective proof that wiping /cache will also wipe your Dalvik:
Code:
-- Wiping cache...
Formatting /cache...
I:Formatting unknown device.
I:Formatting ext3 device.
tune2fs 1.41.6 (30-May-2009)
Setting current mount count to 1
e2fsck 1.41.6 (30-May-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/mmcblk0p2: 11/16384 files (0.0% non-contiguous), 7478/65536 blocks
Cache wipe complete.
E:unknown volume for path [/sd-ext]
rm: can't remove '/cache/dalvik-cache': No such file or directory
rm: can't remove '/sd-ext/dalvik-cache': No such file or directory
Dalvik Cache wiped.
And if this isn't enough, go format your cache, then wipe your dalvik and then check the log at advanced>show log.
Was actually wondering about that last night when I ran the nullifier... thanks for the peice of mind!
Pin it to Win it.
Not a problem, I'll likely post a link to this thread in the Nullifier Q&A, I'm sure it'll get asked at some point.
One less step for crackflashers to do. Yes 5 secs more is a lot of time especially when a new rom comes out
Sent from my LG-P999 using xda premium
Remember, the Nullifier will now format /cache for you, so it's a great AIO. And there's also a second one for just one wipe.
Волк said:
Remember, the Nullifier will now format /cache for you, so it's a great AIO. And there's also a second one for just one wipe.
Click to expand...
Click to collapse
Yeah its a great tool. Thanks
Sent from my LG-P999 using xda premium
np. Also decided to make on just for /cache. Will likely make it and put it up tomorrow night.
That's awesome.
Edit: off topic sorry.
Sent from my LG-P999 using xda premium
PM me and we can discuss it. I don't want to get off topic.
it will wipe cache unless this line is in your build.prop
dalvik.vm.dexopt-data-only=1
in that case dalvik cache is stored on the data partition
like in CM9 because stock partition size is a bit to small
you can resize it using NVFLASH and store the dalvik back on the cache partition
ohh and by the way cleaning dalvik cache is not needed...
arcee said he never did it, i never did it and i never had any troubles caused by dalvik cache
android checks the dalvik cache and if there is a mismatch it will just throw away the dalvik cache and re create it
As we discussed yesterday in the Nullifier thread, dalvik is not cleared by a /cache wipe unless a ROM specifically places it there (which I have not seen on the G2x)... I have only seen it contained in /data on these devices.
Simple proof.
Do a /cache wipe.
Does dalvik rebuild upon reboot?
No.
overground said:
As we discussed yesterday in the Nullifier thread, dalvik is not cleared by a /cache wipe unless a ROM specifically places it there (which I have not seen on the G2x)... I have only seen it contained in /data on these devices.
Simple proof.
Do a /cache wipe.
Does dalvik rebuild upon reboot?
No.
Click to expand...
Click to collapse
just like i said
if the ROM has this line defined
dalvik.vm.dexopt-data-only=1
dalvik cache will be stored on the data partition
in that case a cache wipe will not wipe the dalvik
you can place this line in the build.prop
dalvik.vm.dexopt-data-only=0
and delete dalvik cache you will see it will be rebuild on the cache partition
but this is not smart the cache partition is really small on this device
you can resize it with NVFLASH to check but just believe us
clearing cache will only clear the dalvik if the dalvik is on the cache partition otherwise not
it is like formatting your D: partition and losing your windows that is installed on the C: partition it just make no sense!

[Q] "Wipe cache partition" in recovery mode seems useless? What is it for exactly??

[Q] "Wipe cache partition" in recovery mode seems useless? What is it for exactly??
Hi. I'm using Samsung Galaxy Ace, Android 2.3.6, rooted.
I had 2 apps with cache data:
1. the system app "Internet" = 444KB
2. a user app called "RedLaser" (for reading QR codes) = 45KB
I turned off phone, went into recovery, then "wipe cache partition", then reboot.
It did nothing! The two apps still had cache, and I just deleted them manually in Settings -> Manage Applications.
So what does the "wipe cache partition" do anyway?
Also, if a phone is unrooted, is there a way to clean the dalvik cache?
Thanks all!
Its for wiping the cache of your phone application..some times if you not do this then you r apps will crash in the new rom..so its optional thing.but some times it needed...understood??
shyamjptpm, did you even read the details of my post? The cache of those two apps were not deleted through "wipe cache partition" in recovery mode. So I was wondering what it does, exactly, since it DOES NOT wipe the apps' cache.
The cache is an app cache, but not a cache of application data. You wipe that through application management (or manually with a file explorer or shell).
Think of it as an Android cache that it uses for apps and components.
Hey Archer, an app cache? Like the dalvik cache? The dalvik is for starting apps faster, correct? So is "Dalvik cache" same as the cache referred to in "wipe cache partition"?
MarlonKaye said:
Hey Archer, an app cache? Like the dalvik cache? The dalvik is for starting apps faster, correct? So is "Dalvik cache" same as the cache referred to in "wipe cache partition"?
Click to expand...
Click to collapse
No it's not apps - I explained that badly. It's regularly accessed data and app components, but not app-specific data. The Dalvik cache is the application cache - they are two different things.
Additionally depending on which recovery you are using, wiping the cache might not properly work all the time, that is why you read so many posts saying wipe +3; meaning to run the wipe cache (and dalvik) at least 3 times. I know I had issues with one specific recovery and switched to another because of it...
Archer said:
No it's not apps - I explained that badly. It's regularly accessed data and app components, but not app-specific data. The Dalvik cache is the application cache - they are two different things.
Click to expand...
Click to collapse
Hey, is it possible to wipe cache partition without getting into recovery mode?
And wiping the cache partition and dalvik cache will delete my game progress??
Please clarify this for me bro...

Wiping Dalvik Cache does nothing

According to this
...does precisely nothing to assist troubleshooting. All it will do is make your next boot take 10 times as long.
I think there is a big misunderstanding about what the dalvik cache is.
The dalvik cache is simply a cache of dex files which are maintained by the dalvik vm, which generates them if they don't exist and regenerates them when required. Some interesting reading about dalvik and dex here.
I'm not sure where the obsession with wiping dalvik came from, probably some XDAtard ****, but seriously, it's a waste of time, don't even bother doing it, and don't mention that you have done it as part of troubleshooting because I will take the piss out of you... mercilessly.
If a wipe is advised, that means a factory reset (userdata and cache). Nothing more, nothing less.
Although wiping cache is pointless most of the time too...
I hope this clears up some odd misconceptions which some users have....
Click to expand...
Click to collapse
Source: http://forum.oxygen.im/viewtopic.php?id=1325
Any thoughts?
For starters although the Dalvik VM regenerates Dalvik Cache when deleted. It does not remove unneeded .dex files, so regular wiping of the Dalvik Cache can be used to free up wasted space on /data/ partition.
Secondly sometimes a wipe of the Dalvik Cache is needed after modding an already installed application before changes can be seen.
And regarding wiping dalvik cache during troubleshooting for bootloops ect being pointless. I disagree, say for example you modified the framework, after you pushed it back to device, you started getting bootloops. This could simply be because the Dalvik Cache is using the bytecode from the original unmodified framework. By wiping the Dalvik Cache, it will be rebuilt with the correct .dex file for the modified framework.
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk 2

[Mod][Utility] Wiping Tools - Simple and Fast

Attached are three recovery flashable wiping tools I use when doing my work.
I find them to be incredibly useful tools that save some power button & volume rocker mashing, and time.
Wipe Cache and Dalvik - Wipes Cache and Dalvik (duh!)
Useful for:
-Flashing GApps
-Resolving app issues
Wipe Full - Wipes Cache, Dalvik, Data, and System
-Wipes just about all data except internal sd card
-Stops just short of a factory reset (does not wipe media)
-Useful for flashing ROMs within a type (e.g. going from one CM ROM to another CM ROM)
Wipe Full Factory Reset - Wipes Cache, Dalvik, Data, System, and internal sd card
-Useful when going from one ROM type to another (e.g. going from CM to TW)
_____________________
This is the part of the updater-script that selectively wipes /data in case anyone wants to add this to their ROM:
Code:
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/app");
delete_recursive("/data/app-asec");
delete_recursive("/data/app-private");
delete_recursive("/data/backup");
delete_recursive("/data/data");
delete_recursive("/data/drm");
delete_recursive("/data/log");
delete_recursive("/data/misc");
delete_recursive("/data/property");
delete_recursive("/data/system");
delete_recursive("/data/time");
delete_recursive("/data/user");
Changing the code above to the code below effectively performs a factory reset
(look at /data/media and you will see your internal sd card)
Code:
delete_recursive("/data");
As Always - Flash at your own risk!
Thannk you we were long due for a format all zip
iSheep... iSheep... Meowww that's Apple VZW GSIII
I added a full wipe with factory reset zip to the OP and updated the post to reflect the changes.
About to test with twrp. Anyone else use them yet, or will I be taking them on their maiden voyage with the BETTER recovery?
Edit: would you be interested in making a fourth one for those of us who are OCD? Davlik, cache, and (complete) factory reset, wiping everything but the SD card, saving the super wipe script of yours for flashing to/from different rom bases (tw to aosp/cm).
Sent from my SCH-I535 using Tapatalk 2
thanks i wanted this when the S3 came out and everyone said i was a dip**** for wanting it :highfive:
added to my sd card...thank you!
dems86 said:
About to test with twrp. Anyone else use them yet, or will I be taking them on their maiden voyage with the BETTER recovery?
Edit: would you be interested in making a fourth one for those of us who are OCD? Davlik, cache, and (complete) factory reset, wiping everything but the SD card, saving the super wipe script of yours for flashing to/from different rom bases (tw to aosp/cm).
Confirmed working on TWRP.
What you ask for is what the full wipe zip does. Any directories that I haven't added to the script are usually empty, or are regenerated during install of a new ROM.
If you find anything I missed let me know and I will update the script.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Karl said:
thanks i wanted this when the S3 came out and everyone said i was a dip**** for wanting it :highfive:
Click to expand...
Click to collapse
No way. I can't live without these.
Karl said:
thanks i wanted this when the S3 came out and everyone said i was a dip**** for wanting it :highfive:
Click to expand...
Click to collapse
Me too. I came from the t989 and when i got the i535 I looked and looked and asked but everyone said that it was stupid.
Karl said:
thanks i wanted this when the S3 came out and everyone said i was a dip**** for wanting it :highfive:
Click to expand...
Click to collapse
GalaxySII5191 said:
Me too. I came from the t989 and when i got the i535 I looked and looked and asked but everyone said that it was stupid.
Click to expand...
Click to collapse
yea i dont know about all that...
BUT
theoretically this is just the lazy way of getting it done. i appreciate it since i use TWRP..so i just load them up and sit back.
Bumping this because I used it earlier today and it worked like a charm
best toolset ever
Could you make a toolset to wipe dalvik, cache, and system?
Sent from my rOot3d Samsung Galaxy S3
SoCalSpecialist said:
yea i dont know about all that...
BUT
theoretically this is just the lazy way of getting it done. i appreciate it since i use TWRP..so i just load them up and sit back.
Click to expand...
Click to collapse
I guess everyone is lazy then cuz I can think of 5 other phones that had wipe zips
Sent from my Galaxy S III using Forum Runner
To help improve the quality of both the development and general sections, I decided to have this thread moved to the general section.
Just giving you a heads up in case you need to find it.
kennyglass123 will be moving this thread soon.
I know I'm grave digging, but I'm not sure where else to put this. I've found a way to wipe everything in /data/ except media. I've tested and it works in TWRP but I'm not sure how it works in CWM. Here's the line:
Code:
run_program("/sbin/sh", "-c", "find /data/* -maxdepth 0 -type d ! -name 'media' -exec rm -rf {} +");
upndwn4par said:
Attached are three recovery flashable wiping tools I use when doing my work.
I find them to be incredibly useful tools that save some power button & volume rocker mashing, and time.
Wipe Cache and Dalvik - Wipes Cache and Dalvik (duh!)
Useful for:
-Flashing GApps
-Resolving app issues
Wipe Full - Wipes Cache, Dalvik, Data, and System
-Wipes just about all data except internal sd card
-Stops just short of a factory reset (does not wipe media)
-Useful for flashing ROMs within a type (e.g. going from one CM ROM to another CM ROM)
Wipe Full Factory Reset - Wipes Cache, Dalvik, Data, System, and internal sd card
-Useful when going from one ROM type to another (e.g. going from CM to TW)
_____________________
This is the part of the updater-script that selectively wipes /data in case anyone wants to add this to their ROM:
Code:
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/app");
delete_recursive("/data/app-asec");
delete_recursive("/data/app-private");
delete_recursive("/data/backup");
delete_recursive("/data/data");
delete_recursive("/data/drm");
delete_recursive("/data/log");
delete_recursive("/data/misc");
delete_recursive("/data/property");
delete_recursive("/data/system");
delete_recursive("/data/time");
delete_recursive("/data/user");
Changing the code above to the code below effectively performs a factory reset
(look at /data/media and you will see your internal sd card)
Code:
delete_recursive("/data");
As Always - Flash at your own risk!
Click to expand...
Click to collapse
Hello thread. Never flash without this first. I think more people should know about it
Sent from my SCH-I535 using Tapatalk
upndwn4par said:
Attached are three recovery flashable wiping tools I use when doing my work.
I find them to be incredibly useful tools that save some power button & volume rocker mashing, and time.
Wipe Cache and Dalvik - Wipes Cache and Dalvik (duh!)
Useful for:
-Flashing GApps
-Resolving app issues
Wipe Full - Wipes Cache, Dalvik, Data, and System
-Wipes just about all data except internal sd card
-Stops just short of a factory reset (does not wipe media)
-Useful for flashing ROMs within a type (e.g. going from one CM ROM to another CM ROM)
Wipe Full Factory Reset - Wipes Cache, Dalvik, Data, System, and internal sd card
-Useful when going from one ROM type to another (e.g. going from CM to TW)
_____________________
This is the part of the updater-script that selectively wipes /data in case anyone wants to add this to their ROM:
Code:
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/app");
delete_recursive("/data/app-asec");
delete_recursive("/data/app-private");
delete_recursive("/data/backup");
delete_recursive("/data/data");
delete_recursive("/data/drm");
delete_recursive("/data/log");
delete_recursive("/data/misc");
delete_recursive("/data/property");
delete_recursive("/data/system");
delete_recursive("/data/time");
delete_recursive("/data/user");
Changing the code above to the code below effectively performs a factory reset
(look at /data/media and you will see your internal sd card)
Code:
delete_recursive("/data");
As Always - Flash at your own risk!
Click to expand...
Click to collapse
Wipe Full Factory Reset
WILL THIS DESTROY MY PHONE FROM BOOTING?

Categories

Resources