I came from the G2X, and I'm wondering if I'm installing roms the correct way..
1. Wipe Cache
2. Wipe Partition
3. Wipe Dalvik
4. Format /System
5. Install Rom
Is that the correct way? Because that's how I did it for the LG G2X..
Wipe data and cache (both)
Wipe system
Sent from my Galaxy Nexus using Tapatalk 2
every rom i have looked at on here has this (or similar) in the updater-script:
Code:
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/system");
that wipes system for you so that it can load the new firmware to that partition.....
and if you just do a factory reset that wipes CACHE and DATA
I am noticing dalvik is not included in a lot of updater-scripts on the GNEX stuff....i wonder why? its an easy thing to add to the script and takes one less thing off the end user...
Dalvik cache is hash signed by the rom. A different flash, a different signature. Thus, no need to wipe caches - it is rebuilt when you flash again.
Sent from my i9250
bk201doesntexist said:
Dalvik cache is hash signed by the rom. A different flash, a different signature. Thus, no need to wipe caches - it is rebuilt when you flash again.
Sent from my i9250
Click to expand...
Click to collapse
thanks, we have always included a dalvik wipe as a precautionary measure, and i keep seeing people recommend all these crazy voodoo rituals to go through prior to a rom flash....finally getting my feet wet in the nexus world...
Related
I've searched, but most of the posts are either asking "how to wipe it via adb" and then the thread gets sent into a different direction, and isn't directly answering my question.
I have an update.zip that just does all my wipes in one click, rather than having to wipe data/cache, then system, boot, and dalvik. Instead, I just run the update, it formats them all, makes life easier for me.
anyways I want to know if I can add a command in to wipe dalvik cache? Thanks in advance for any replies!
I don't see why not; Titanium Backup has a function that can do it for you.
I don't know the partition block for dalvik cache on the g2. But the command would look something like:
su
mount -o rw /dev/block/mmcblk[xxx] /sdcard/
rm -r /sdcard/dalvik-cache/*
CWM has an option under advanced that clears the dalvik cache - if you're using an update script then you must already be using CWM, seems pointless to me but I can see not wanting to have the extra steps.
Anyway, if you really want to know what script to use then just break apart CWM and the scripts should be in there. I have one from my MT3GS (pre s-off, so it's an update.zip not an image) which should be easier to tear apart but I don't know if the partitions are the same as the G2.
You can either write this into the update-script or tell the update-script to execute a .sh file which is written with linux commands so it easier to do if you're not familiar with update scripting. Just an fyi.
i am trying to make a script for optimus one to wipe dalvik cache and cache at boot.
the dalvik is on the ext4 partition on the sd.
how can i write a working script?
This is what I use for the wipes in updater-script:
Code:
delete_recursive("/cache");
delete_recursive("/data");
delete_recursive("/system");
delete_recursive("/data/dalvik-cache");
It Worked!
discours said:
This is what I use for the wipes in updater-script:
Code:
delete_recursive("/cache");
delete_recursive("/data");
delete_recursive("/system");
delete_recursive("/data/dalvik-cache");
Click to expand...
Click to collapse
Thanks A Lot Discours... U Dont Know How Much Time You Saved Mine! :laugh:
Keep Up The Good Work! :good:
Just happy to see, it's usefull
discours said:
This is what I use for the wipes in updater-script:
Code:
delete_recursive("/cache");
delete_recursive("/data");
delete_recursive("/system");
delete_recursive("/data/dalvik-cache");
Click to expand...
Click to collapse
And I have to mount /cache and /data [run_program("/sbin/busybox", "mount"...] first?
/cache & /data mount is not necessary
Armi1P said:
And I have to mount /cache and /data [run_program("/sbin/busybox", "mount"...] first?
Click to expand...
Click to collapse
No Its Not Required...
discours said:
This is what I use for the wipes in updater-script:
Code:
delete_recursive("/cache");
delete_recursive("/data");
delete_recursive("/system");
delete_recursive("/data/dalvik-cache");
Click to expand...
Click to collapse
Why delete_recursive instead of just delete????
manu19thebest said:
Why delete_recursive instead of just delete????
Click to expand...
Click to collapse
The command delete_recursive delete folder, subfolders and files : it's my way to be sure of a total wiping :cyclops:
Armi1P said:
And I have to mount /cache and /data [run_program("/sbin/busybox", "mount"...] first?
Click to expand...
Click to collapse
I agree with you, with out it, it did not work...
I did this and it worked
;run_program("/sbin/busybox", "mount", "/data")
;delete_recursive("/data/dalvik-cache")
;unmount("/data")
He asked to clear his Dalvik cache but you are showing how to delete system, and data ? What happens if you delete "system" ? Will the phone even boot afterwards?
:cyclops:mistake
discours said:
This is what I use for the wipes in updater-script:
Code:
delete_recursive("/cache");
delete_recursive("/data");
delete_recursive("/system");
delete_recursive("/data/dalvik-cache");
Click to expand...
Click to collapse
This is a dumb question and I probably know the answer, but I'll ask anyway...
"delete_recursive("/data/dalvik-cache");" will only delete the content inside dalvik-cache folder, right?
Correct
Sent from my Nexus 4 using XDA Premium 4 mobile app
very useful, thanks
So, I've rooted and S-off'd now i want to flash a ROM - this one: http://forum.xda-developers.com/showthread.php?t=1143456
But one of the first things i have to do, is wipe data/factory reset. But i have the recovery-RA-desire-v2.0.0-CM.img recovery image, so when i want to wipe, i get the following options:
- Wipe ALL userdata
- Wipe only /data
- Wipe only /sd-ext
- Wipe only /sdcard/ .android_secure
- Wipe only /cache
- Wipe only Dalvik-cache
- Wipe only battery stats
- Wipe only rotate settings
So when the tutorial tells me to wipe data/factory reset, does it mean "Wipe ALL userdata" or "Wipe only /data"?
I would ask the question in the ROM's thread, but i do not have enough posts to post in the android development area
numb92 said:
So, I've rooted and S-off'd now i want to flash a ROM - this one: http://forum.xda-developers.com/showthread.php?t=1143456
But one of the first things i have to do, is wipe data/factory reset. But i have the recovery-RA-desire-v2.0.0-CM.img recovery image, so when i want to wipe, i get the following options:
- Wipe ALL userdata
- Wipe only /data
- Wipe only /sd-ext
- Wipe only /sdcard/ .android_secure
- Wipe only /cache
- Wipe only Dalvik-cache
- Wipe only battery stats
- Wipe only rotate settings
So when the tutorial tells me to wipe data/factory reset, does it mean "Wipe ALL userdata" or "Wipe only /data"?
I would ask the question in the ROM's thread, but i do not have enough posts to post in the android development area
Click to expand...
Click to collapse
Wiping everything is the recommended procedure for most roms. Wiping only data, for example, leaves data on the sd-ext partition which might result in problems. Basically wipe all in an option which spares you the time to do manually all the wipes necessary to install a ROM.
numb92 said:
But one of the first things i have to do, is wipe data/factory reset. But i have the recovery-RA-desire-v2.0.0-CM.img recovery image, so when i want to wipe, i get the following options:
Click to expand...
Click to collapse
If I were you I'd use fastboot to erase boot, system, userdata and cache.. yes the, boot & system files are technically overwritten when you install a new ROM, and everything else is "deleted" (if you choose to delete it from recovery), however it's a more "cleaner" install that way (as in use fastboot to erase boot & system), and most of the time ROMs appear to work better.
You can use several tools with fastboot.. you can use cmd, however commands are specific and it takes a while to learn them (there are a lot of guides, but it takes practise), and there are some software platforms. Personally, I prefer to use fastboot commander as it gives me the most features, it however requires java JDK and android SDK (possible you already have this so check before installing.. if you are going to install it in the first place)
Gotta love the helpful people in this community
Sent from my CM7.1 Desire using XDA Premium App
Hi all!!
I know it is a very very, VERY dumb question because seems that everyone knows the answer and mostly because i am in my 3rd ROM and most of then suggested/requsted a fullwipe. So I searched the forums and wiki but i don't have a clue about what is a full wipe or super wipe or *wipe*
Sorry for that quanstion and thanks if you could answer.
diassuncao said:
Hi all!!
I know it is a very very, VERY dumb question because seems that everyone knows the answer and mostly because i am in my 3rd ROM and most of then suggested/requsted a fullwipe. So I searched the forums and wiki but i don't have a clue about what is a full wipe or super wipe or *wipe*
Sorry for that quanstion and thanks if you could answer.
Click to expand...
Click to collapse
Full wipe: Format data, cache, dalvik cache. It does not touch your SDcard data.
Edit: Usually people also Wipe Battery Stats. I found it unnecessary so I forgot to include. It may also involve formatting your SDcard if you have funky stuffs in there. (apps2SD for example)
If you use ClockwordMod, for example, you would have to choose Format data/factory, then Advanced => Wipe Dalvik Cache and Wipe Battery Stats
Super wipe:
Fallen Spartan said:
Basically it does the following:
1) Call erase_image on CACHE, SYSTEM, USERDATA, and BOOT partitions
2) Mount /sd-ext (if it exists) and delete all files from it
3) Delete all files in the /sdcard/.android_secure directory which is where all the froyo apps2sd files live
4) Run e2fsck (file system repair) on the your ext partition
5) Log all output to the /tmp/wipe.log file (if you care)
You will need to power off and reboot back into recovery after running this to install a new rom....as you won't have one on device
If you forget and try to boot normally you will get stuck at splash screen, then you will have to pull battery to power off.
Click to expand...
Click to collapse
To super wipe you often need a zip file and flash it in recovery. Example:
http://forum.cyanogenmod.com/topic/19959-superwipe-for-g2-w-gps-fix/
an added note
fastboot wipe is still the cleanest wipe
<fastboot -w>
i tend to over kill so do fastboot wipe first
then boot into recovery and do a factory reset and wipe cache, dalvik cache again
then do a superwipe.
sounds like over kill? well it keeps me from having issues when changing roms - i change often so these 3minutes spent save me lots of time later
demkantor said:
an added note
fastboot wipe is still the cleanest wipe
<fastboot -w>
i tend to over kill so do fastboot wipe first
then boot into recovery and do a factory reset and wipe cache, dalvik cache again
then do a superwipe.
sounds like over kill? well it keeps me from having issues when changing roms - i change often so these 3minutes spent save me lots of time later
Click to expand...
Click to collapse
blimey...
out of interest should i be wiping anything when i restore from a backup?
Yes
Especially if there was data coruption
Sent from my HTC Vision using xda premium
Thanks
demkantor said:
an added note
fastboot wipe is still the cleanest wipe
<fastboot -w>
i tend to over kill so do fastboot wipe first
then boot into recovery and do a factory reset and wipe cache, dalvik cache again
then do a superwipe.
sounds like over kill? well it keeps me from having issues when changing roms - i change often so these 3minutes spent save me lots of time later
Click to expand...
Click to collapse
I Agree!
That's why i want to know about wipes.
Thanks a lot!
Hi every, I want to make a FULL cleaning of my phone because I want to install a fresh ROM. I use Wipe data/factory and also wipe cache partition (CWM 6.0.1.1) and repeat several times but surprise I install the new ROM all the old settings was there meaning games data, google emails, sms messages, why? Exists any better method to clean all the old data for leave the new ROM clean install?
Cheers and thanks in advance
reynierpm said:
Hi every, I want to make a FULL cleaning of my phone because I want to install a fresh ROM. I use Wipe data/factory and also wipe cache partition (CWM 6.0.1.1) and repeat several times but surprise I install the new ROM all the old settings was there meaning games data, google emails, sms messages, why? Exists any better method to clean all the old data for leave the new ROM clean install?
Cheers and thanks in advance
Click to expand...
Click to collapse
The steps to a clean flash are:
-wipe cache
-wipe dalvik
-make backup (just in case)
-wipe data/factory reset
-format system (under mounts/storage)
-flash ROM
-flash gapps
-reboot
-ENJOY
Hope that helps.
Sent from my Galaxy Nexus using xda app-developers app
I can't find where "wipe dalvik" is
reynierpm said:
I can't find where "wipe dalvik" is
Click to expand...
Click to collapse
Under advanced.
reynierpm said:
I can't find where "wipe dalvik" is
Click to expand...
Click to collapse
it's under advanced in CWM
Lock the bootloader and then root again. This will wipe EVERYTHING!! I repeat, EVERYTHING will be erased. ALL OF YOUR DATA will be gone!
That is the only way to ensure you won't have traces of anything left over.
Sent from my iPad using Tapatalk HD
z06mike said:
Lock the bootloader and then root again. This will wipe EVERYTHING!! I repeat, EVERYTHING will be erased. ALL OF YOUR DATA will be gone!
That is the only way to ensure you won't have traces of anything left over.
Sent from my iPad using Tapatalk HD
Click to expand...
Click to collapse
What you wrote is misleading.
"Rooting" does not wipe anything.
Unlocking the bootloader will wipe data, but that's it. It will not erase /system, /boot, or /cache.
Sent from my Galaxy Nexus using Tapatalk 2
Just curious. Have you un-checked Settings -> Backup & reset -> Automatic restore?
Lol.. if you want a functional wipe then do my steps. It was needed with the incredible.
CWM - 6.
1.) Wipe data/Factory reset
2.) Mounts & Storage > Format SYSTEM - make sure it's SYSTEM and not Sdcard.
This helps clean the residue left from other roms
3.) Use superwipe if needed or just want to use it
4.) Flash Rom, gapps
5.) Wipe cache/dalvik if given instructions to.
Those are the proper wiping methods.
If your doing a flash over -
1.) Wipe cache and dalvik
2.) Install Rom and if necessary gapps
3.) Fix permissions?
Reboot
Sent from my Galaxy Nexus using Tapatalk 2
withbloodskies said:
Lol.. if you want a full wipe then do my steps. It was needed with the incredible.
CWM - 6.
1.) Wipe data/Factory reset
2.) Mounts & Storage > Format SYSTEM - make sure it's SYSTEM and not Sdcard.
This helps clean the residue left from other roms
3.) Use superwipe if needed or just want to use it
4.) Flash Rom, gapps
5.) Wipe cache/dalvik if given instructions to.
Those are the proper wiping methods.
If your doing a flash over -
1.) Wipe cache and dalvik
2.) Install Rom and if necessary gapps
3.) Fix permissions?
Reboot
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Even that doesn't do a complete wipe, as it doesn't wipe the kernel, nor does it wipe the data in /sdcard (in which some apps store their settings).
If you want to fully wipe, transfer the files/data you want to keep to your PC, reboot into fastboot mode and type:
fastboot erase system
fastboot erase boot
fastboot erase userdata
fastboot erase cache
Sent from my Galaxy Nexus using Tapatalk 2
efrant said:
Even that doesn't do a complete wipe, as it doesn't wipe the kernel, nor does it wipe the data in /sdcard (in which some apps store their settings).
If you want to fully wipe, transfer the files/data you want to keep to your PC, reboot into fastboot mode and type:
fastboot erase system
fastboot erase boot
fastboot erase userdata
fastboot erase cache
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Don't think boot is an option in CWM "dunno why" lol, I suppose if you wanted to go through those steps
CWM should add a few more options such as those.
Sent from my Galaxy Nexus using Tapatalk 2
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!
Could you add the factory reset in the full wipe? Tuffet would be awesome and o one less step to do also.
Sent from my SGH-T999 using Tapatalk 2
^^^ +1
chrisa887 said:
Could you add the factory reset in the full wipe? Tuffet would be awesome and o one less step to do also.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Yes. I will make another zip for a full wipe with factory reset.
I added a full wipe with factory reset zip to the OP and updated the post to reflect the changes.
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.