[proof] wiping cache also 'wipes' dalvik - T-Mobile LG G2x

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!

Related

How Do I Do an EXT4 Wipe?

i got virtuous unity 2.37 and want to install 2.39. its suggested i do a ext4 wipe before nstalling 2.39. i want to make sure i'm doing this right.
so, to do a full ext4 wipe, i must boot into recovery and then wipe all data, cache, then go to advance and wipe dalvik? is this correct?
Maybe you must go in Wipe / Format menu,then format sd-ext.
Go to mount and storage, click format sd-ext and click yes. Your ext4 partition is now wiped.
itachi1706 said:
Go to mount and storage, click format sd-ext and click yes. Your ext4 partition is now wiped.
Click to expand...
Click to collapse
hi itachi.. does your advice regard wiping the sd card?
also, someone suggested that an ext4 wipe involves going to Wipe/Format and selecting wipe data/factory reset, wipe dalvik cache, format system, format data, format cache and format boot. is this true?
trapzz said:
hi itachi.. does your advice regard wiping the sd card?
also, someone suggested that an ext4 wipe involves going to Wipe/Format and selecting wipe data/factory reset, wipe dalvik cache, format system, format data, format cache and format boot. is this true?
Click to expand...
Click to collapse
It does not affect the FAT partition of the SD card. Only the Ext partition. And by wiping data, dalvik, formating system, data, cache and boot, you are literally doing a full wipe of the phone which people normally do when they change from 1 Rom to another.
itachi1706 said:
It does not affect the FAT partition of the SD card. Only the Ext partition. And by wiping data, dalvik, formating system, data, cache and boot, you are literally doing a full wipe of the phone which people normally do when they change from 1 Rom to another.
Click to expand...
Click to collapse
thats exactly why im doing a full wipe.. to upgrade my rom to a higher version. but your way of wiping data seems like it involves wiping data from the sd card, which is risky and unnecessary when installing/upgrading a rom. and it can wipe out the rom on the sd card that you want to install anyway. so then whats the point'?
trapzz said:
thats exactly why im doing a full wipe.. to upgrade my rom to a higher version. but your way of wiping data seems like it involves wiping data from the sd card, which is risky and unnecessary when installing/upgrading a rom. and it can wipe out the rom on the sd card that you want to install anyway. so then whats the point'?
Click to expand...
Click to collapse
I don't mean changing to a higher version, I mean changing Rom (like from cyanogen to miui) . If you are upgrading to a higher version you do not need to wipe data. All you need to do is just wipe cache and dalvik, boot and system too if you want. This way you will get updated to the latest version while still retaining your application data.
And yes, technically you do wipe the sdcard, but only the EXT partition, which is where your apps are placed in if you use A2SD+. Your FAT partition, which is the one recognised by the computer and where you put all your data in, is not affected. Hence it will not wipe out the Rom you are trying to install on the sdcard.
Sent from my HTC Original Desire using Tapatalk

CM Recovery: wiping/formatting options

On CM Recovery 5.0.2.0. Trying to figure out definitively which wipes/formats to perform before new ROM/kernel... there are several options, some of which seem to be redundant.
Main Menu (these are the only two I've done in the past I think):
wipe data/factory reset
wipe cache partition
Mounts and Storage Menu:
format /sdcard
format /system
format /cache
format /data
format /boot
format /wimax
Advanced Menu:
wipe Dalvik cache
Most instructions I've seen say to "wipe" system/data/cache/dalvik/boot 3x each. The 3x seems funny to me, but whatever, it doesn't really take much longer. So I'm guessing I want to do just about every option above, minus my SDcard obviously. What about the /wimax option though? I never have heard that one mentioned...
Thanks!
The111 said:
On CM Recovery 5.0.2.0. Trying to figure out definitively which wipes/formats to perform before new ROM/kernel... there are several options, some of which seem to be redundant.
Main Menu (these are the only two I've done in the past I think):
wipe data/factory reset
wipe cache partition
Mounts and Storage Menu:
format /sdcard
format /system
format /cache
format /data
format /boot
format /wimax
Advanced Menu:
wipe Dalvik cache
Most instructions I've seen say to "wipe" system/data/cache/dalvik/boot 3x each. The 3x seems funny to me, but whatever, it doesn't really take much longer. So I'm guessing I want to do just about every option above, minus my SDcard obviously. What about the /wimax option though? I never have heard that one mentioned...
Thanks!
Click to expand...
Click to collapse
Wipe data/factory reset, flash morfic dalvik-wiper.zip.
No need to do 3 times or silly things like that.
The111 said:
On CM Recovery 5.0.2.0. Trying to figure out definitively which wipes/formats to perform before new ROM/kernel... there are several options, some of which seem to be redundant.
Main Menu (these are the only two I've done in the past I think):
wipe data/factory reset
wipe cache partition
Mounts and Storage Menu:
format /sdcard
format /system
format /cache
format /data
format /boot
format /wimax
Advanced Menu:
wipe Dalvik cache
Most instructions I've seen say to "wipe" system/data/cache/dalvik/boot 3x each. The 3x seems funny to me, but whatever, it doesn't really take much longer. So I'm guessing I want to do just about every option above, minus my SDcard obviously. What about the /wimax option though? I never have heard that one mentioned...
Thanks!
Click to expand...
Click to collapse
When installing a new custom rom & not just updating it to a newer version it's advisable to, 1: Advanced menu: wipe dalvik cache. 2: Mount & Storage menu: format system,cache,data & boot! You're riight about the minus sdcard wipe obviously, & usually in my experiance if you're just updating to a newer version of your existing custom rom, usually just wiping your dalvik cache & a reboot will surfice! No idea about the wimax part so don't bother, but I've never seen a dev instruct anyone to go through the process of wipng 3x???

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

ACTUAL steps for flashing a new ROM, CWM

I'm on CWM 5.8.1.3, and about to flash Team PTSD's AOKP build 39 and then flash their new Chimera ROM over it (looks awesome guys).
I'm worried about messing up my phone (yes, I've obviously been fine thus far) but I wanted a bit more clarification on the actual steps one needs to take in order to flash a ROM. I know there are instructions that say things like
Wipe datax3
Wipe systemx3
wipe dalvik/cachex3
But the actual corresponding items in CWM are things like: Wipe data/factory reset, wipe cache partition, mount /system /data /cache,
format /data /system /cache.
So I've been assuming that wipe datax3 = factory resetx3 and wipe cachex3 = format cachex3 and wipe systemx3 = format systemx3. I don't know if I needed to mount any of them either. With the presence of the brick bug I thought it might not hurt to have someone expressly state what options to choose when flashing a new ROM (in the language used in CWM).
edit: ****, I'm sorry I thought I was posting in Skyrocket Q/A. Apologies mods
All u gotta do is wipe data and cache and format the system
Sent from my SAMSUNG-SGH-I777 using XDA
Don't mount just format
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
ymcmbforever said:
It aint ****in science All u gotta do is wipe data and cache and format the system
Sent from my SAMSUNG-SGH-I777 using XDA
Click to expand...
Click to collapse
See, that's what I thought. The language is different though, and I wasn't sure if anything needed to be mounted before formatted.
So to reiterate. The steps, IN THE LANGUAGE ON CWM, are:
Wipe Data/Factory Reset x 3 (unsure of this)
Format Systemx3
Format Datax3
Format Cachex3
Wipe Dalvik Cachex3
Install ROM - Flash GAPPS
Reboot
Fix Permissions - Reboot
Yes that's it and its not a freaking language quit acting like its foreign to you its in English
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Please post questions in Q&A. Moved.
Cheers
Edit: keep it clean guys.

[noob question][rom flashing]

Hi..
I am always confused about this. When flashing a custom ROM, will wiping the system not delete the ROM zip file?
Also is wiping cache, system and data the only things I need to do.
Like there are so many confusing posts in and out of xda. The official CM page says nothing about wiping cache and system while the CM FAQ page here says to wipe all three I.e. cache , data and system.
Some say to do factory reset and some say not to.
What do I do man?
Cache, Data, System and Internal Storage are all separate partitions. Wiping one does not affect the others. Factory reset usually does the first three, you have to manually specify anything else.
Your ROM zip will be on the 'Internal Storage' partition which is why it survives a system wipe.
lost101 said:
Cache, Data, System and Internal Storage are all separate partitions. Wiping one does not affect the others. Factory reset usually does the first three, you have to manually specify anything else.
Your ROM zip will be on the 'Internal Storage' partition which is why it survives a system wipe.
Click to expand...
Click to collapse
Thanks for your quick response man. Also one more thing.
Is it necessary to wipe all the three when flashing a ROM and does the order in which they are wiped matter?
It's a very good idea. Not wiping can cause all kinds of problems. Order does not matter.
lost101 said:
It's a very good idea. Not wiping can cause all kinds of problems. Order does not matter.
Click to expand...
Click to collapse
Another thing again..
Should i wipe data/factory rest or just wipe data..
And in case of cache should i wipe cache partition or just cache or dalvik cache also..
Thanks in advance!
Meuuks13 said:
Another thing again..
Should i wipe data/factory rest or just wipe data..
And in case of cache should i wipe cache partition or just cache or dalvik cache also..
Click to expand...
Click to collapse
Wipe them all if you want, but factory reset is usually enough.
follow the instructions in the ROM thread where you looked, some steps omitted or changed to be installed, I hope you have no problems, I recommend that you make a backup of your current ROM.

Categories

Resources