Making an wipe script flashable zip - Samsung Galaxy Nexus

Hello there,
I was thinking to make a flashable CWM script that eliminates the necessary steps before changing a Rom. He script should have this content:
/format data
/format cache
/format system
/format Dalvik cache
Would it work? If yes has anyone such a similar script and share it please?
Thanks

First of all, wiping dalvik and system is redundant.
Wiping data wipes dalvik (/data/dalvik)
Also, when you flash a tom, it automatically wipes /system unless you're flashing an incremental update.
So why do you want this script when you have to push like 2 buttons anyway (factory reset/wipe data and cache)? The red be more trouble migrating to the flash able to wipe stuff than going to the wipe menu.
Sent from my Galaxy Nexus using Tapatalk 2

geoffcorey said:
Also, when you flash a tom, it automatically wipes /system unless you're flashing an incremental update.
Click to expand...
Click to collapse
no. the rom you're flashing has to have the script to wipe system (most do, but there are some that do not)

Zepius said:
no. the rom you're flashing has to have the script to wipe system (most do, but there are some that do not)
Click to expand...
Click to collapse
If it doesn't wipe system to install the rom, then I don't know what you think it would be installing....I would question that 'dev ' that does that.
Sent from my Nexus 7 using Tapatalk 2

Zepius said:
no. the rom you're flashing has to have the script to wipe system (most do, but there are some that do not)
Click to expand...
Click to collapse
If the ROM doesn't wipe /system, then most likely you're flashing an incremental upgrade, or the dev doesn't know what in the world he's doing and you should probably steer clear of said ROM.
Also, AFAIK, all the gnex ROMs here at xda, rootzwiki, and cyanogenmod wipe /system.
Sent from my Galaxy Nexus using Tapatalk 2

I understand the knowledge shared here but better be safe and follow all four steps then be not sure? Or not?
Can someone help by providing such script please?

Search for the Android Revolution ROM in the dev section. IIRC they have some kind of script in the OP

Anyone can pass Wipe Script Flashable ZIP me to flash (for Baked ROM)?
Thanks!!

There's no need to wipe until after you're done

Related

Switching ROMs in EXT4

Once I have converted over to EXT4, can I flash any EXT4 friendly ROM directly? What CWM version do I need to use to flash it?
Sent from my Epic 4G using XDA App
Yes, you can flash any ext4 compatible rom.
If it has been updated to use an edify script, then it is compatible with 2.5.1.2 and 3.0.0.whatever.
If it still uses an old amend script, then it is only compatible with 2.5.1.2.
Yes, once you convert to ext4 that stays intact until you odin.
Thank you for your help
Sent from my SPH-D700 using XDA App
Sorry, even newer it seems.
Sorry guys, I'm even newer than airbag84 at this. By flashing you guys mean to put the zip file on the root of the sd-card, and run the .zip file from recovery mode, using either version of CWM? I'm already on a ext4 rom, no more final kernel or clearing data, etc, etc?
Yes flashing = installing zip in recovery mode.
When going from ROM to ROM, its a good idea to do a full wipe. However, unless you brick your phone and re-Odin, you will not need to worry about running one click ext4 again, just wipe and flash just like you would any other ROM.
Hope that answered your question.
ryno502 said:
Yes flashing = installing zip in recovery mode.
When going from ROM to ROM, its a good idea to do a full wipe. However, unless you brick your phone and re-Odin, you will not need to worry about running one click ext4 again, just wipe and flash just like you would any other ROM.
Hope that answered your question.
Click to expand...
Click to collapse
& Ryno, how is it that the full wipe thingy works? Sorry for my newness(if that's a word)
do I wipe data or cache partition? or both? how many times?
EGRENY1 said:
do I wipe data or cache partition? or both? how many times?
Click to expand...
Click to collapse
Both. Wipe data, cache partition, and dalvik cache (under "advanced" in clockworkmod" 3 times to be safe. The reason for this is to ensure your not mixing files from two different roms, which could cause a ton of problems.
And don't sweat it, I was new at one point too. Hell, I am still learning lol.

[Q] N00b updating Custom ROM

I have installed MildWild CM-2.7 on my Desire but there is now MildWild CM-2.8 and I can't find a guide how to install/update my Desire.
I have got S-OFF and recovery by Revolutionary The guide I followed to S-OFF and ROOT
This is the ROM I using. MildWild CM ROM
Just flash it via recovery like you did with the previous version
Will flashing the new version cause me to loose everything on my current version I.e apps and data etc??
Thanks for the reply though
do back up first, wipe davik+cache and flash it... it should work if not do full wipe and restore back up
just post any result we will move from there
What should I use to hackup TIbackup? Or is there a better one that you reccomend?
Wh000sher
Titanium and recovery. All basic stuff. Have a,read of my rooting faq in my signature. Tells you everything you need to know
Sent from my HTC Desire using Tapatalk
rootSU said:
Titanium and recovery. All basic stuff. Have a,read of my rooting faq in my signature. Tells you everything you need to know
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
Do I only restore the Titanium I am guessing, as restoring recovery would revert back to my current ROM? and I have thanks
Yes indeed. With titanium, only restore "missing apps with data".
Theres a guide Angusc wrote here:
http://forum.xda-developers.com/showthread.php?t=1480343
ROM Manager can make updating so much easier - well worth the investment.
JohnHarrisNZ said:
ROM Manager can make updating so much easier - well worth the investment.
Click to expand...
Click to collapse
I can't speak for other devices but for Desire, nope it's not worth the time and money.
kotag82 said:
do back up first, wipe davik+cache and flash it.
Click to expand...
Click to collapse
So I'm only wiping the davik cahce correct?
Not anything else or have I missed something?
Wh000sher said:
So I'm only wiping the davik cahce correct?
Not anything else or have I missed something?
Click to expand...
Click to collapse
Things I've learned with all this flashing that may be helpful for you.
1. Before flashing, always backup your current system up. nandbackup via recovery, titanium for your apps, sd card if really needed for that you need to do.
2. If flashing an updated version of same rom, wipe cache and dalvik only on your recovery (unless explicitly specified by dev to make a full wipe.)
3. If you are having weird issues after upgrading the same rom, do a full wipe and start fresh. If issue is not resolved, report the issue to the Dev's thread.
4. Do a Full Wipe on recovery (System/factory, cache, dalvik if coming from a different rom).
stankyou said:
Things I've learned with all this flashing that may be helpful for you.
1. Before flashing, always backup your current system up. nandbackup via recovery, titanium for your apps, sd card if really needed for that you need to do.
2. If flashing an updated version of same rom, wipe cache and dalvik only on your recovery (unless explicitly specified by dev to make a full wipe.)
3. If you are having weird issues after upgrading the same rom, do a full wipe and start fresh. If issue is not resolved, report the issue to the Dev's thread.
4. Do a Full Wipe on recovery (System/factory, cache, dalvik if coming from a different rom).
Click to expand...
Click to collapse
Thanks for the reply.
In response to 2. I am using ClockworkMod as my Recovery and I am guessing you mean I have to wipe 'cache partition' and 'wike dalvik cache' under advanced?
I am creating a guide to help fellow N00bs how to update a rom and change between ROM's
Wh000sher
Wh000sher said:
Thanks for the reply.
In response to 2. I am using ClockworkMod as my Recovery and I am guessing you mean I have to wipe 'cache partition' and 'wike dalvik cache' under advanced?
I am creating a guide to help fellow N00bs how to update a rom and change between ROM's
Wh000sher
Click to expand...
Click to collapse
Yes if I remember correctly there are the first three lines on that recovery is wipe system, cache partition (like you stated), and wipe dalvik. So if upgrading just wipe cache partition and dalvik cache.
System partition is where the "Android OS" resides. Wiping it is like formatting your computer. Most of the time, incremental updates of the same rom requires you to wipe just the cache partition and dalvik, otherwise if the rom update has a lot of changes, the dev might require you to wipe all three options on the recovery.
Having wiped my cache and dalvik cache. I am now wanting to install the new version. On the main screen I have 2 options which are tempting to click.
One is 'Apply update from SD card' and the other is 'Install zip from SD card'
I am unsure of which to choose but my gut instinct is to go with 'Install zip from SD card', is this correct or am i going to make a terrible mistake?
wh000sher
Install zip from SD

Flashing a ROM (JellyTime)

I got a simple question about flashing a rom, at this point its JellyTime.
I'm not really familiar with the order that you need to flash and if you need to flash the kernel separately?
My order is now:
- clean/wipe
- Flash ROM
- Flash gapps
- fastboot flash boot.img (is this step required, or does this already happen when flashing the ROM?)
Then the follow-up question is, does it affect the ROM when you boot the first time with an older kernel?
Spluh said:
I got a simple question about flashing a rom, at this point its JellyTime.
I'm not really familiar with the order that you need to flash and if you need to flash the kernel separately?
My order is now:
- clean/wipe
- Flash ROM
- Flash gapps
- fastboot flash boot.img (is this step required, or does this already happen when flashing the ROM?)
Then the follow-up question is, does it affect the ROM when you boot the first time with an older kernel?
Click to expand...
Click to collapse
You can flash the kernel basically anytime. I usually dirty flash kernels with no problem.
Also, no need to fastboot the boot.img. The rest of your order looks fine.
My order :
- format all partitions (except sdcard)
- wipe cache/dalvik
- Flash ROM
- Flash gapps
- fixing permissions
- Reboot
But i think your steps should be fine as well.
Sent from my Desire HD using xda premium
How do you fix permissions ?
When I flashed gapps I saw that in the end its fixing permissions. Do I need to something manually ?
Kobibo said:
How do you fix permissions ?
When I flashed gapps I saw that in the end its fixing permissions. Do I need to something manually ?
Click to expand...
Click to collapse
You can fix permissions using recoveries like 4ext and stuff...remember to wipe cache and davlik if you are flashing just kernel.
Like he said use recovery 4ext there's an option at "tools".
[ Sent from my HTC Desire HD using XDA-Premium App ]
RayRayX91 said:
My order :
- format all partitions (except sdcard)
- wipe cache/dalvik
- Flash ROM
- Flash gapps
- fixing permissions
- Reboot
But i think your steps should be fine as well.
Sent from my Desire HD using xda premium
Click to expand...
Click to collapse
Wiping cache+dalvik cache is redundant after formatting all partitions. A lot of people have this habit and recommend it, but its unnecessary. Dalvik-cache is located in the data partition. It's nothing special, its a folder there like any other, and contains classes.dex files for all apps on the device. When you format all partitions, data is formatted, so the dalvik-cache is wiped along with it. And the cache partition is formatted anyway. So wiping cache+dalvik again after formatting all partitions is of no use and unnecessary.
ai6908 said:
You can fix permissions using recoveries like 4ext and stuff...remember to wipe cache and davlik if you are flashing just kernel.
Click to expand...
Click to collapse
You don't need to wipe cache and dalvik after flashing a kernel. I used to do it too, but many times the devs themselves have said it isn't required. Lord Clockan said many times that wiping cache+dalvik is unnecessary after flashing a new kernel. When you think about it, it makes sense. Dalvik cache just contains classes.dex files for all the apps on the device and nothing else. When the dalvik-cache is rebuilt after a wipe, it pulls the classes.dex from each apk and puts it in the dalvik-cache folder (please correct me if I'm wrong). This isn't in any way related to the kernel and what it does. Regardless of the kernel flashed, the dalvik cache will remain the same. So it shouldn't make sense to wipe it for every kernel flash.
Sent from my Desire HD using xda premium
RayRayX91 said:
My order :
- format all partitions (except sdcard)
- wipe cache/dalvik
- Flash ROM
- Flash gapps
- fixing permissions
- Reboot
But i think your steps should be fine as well.
Sent from my Desire HD using xda premium
Click to expand...
Click to collapse
Hello, I did all of the steps in this order and ROM is booting OK. But after that I have random freezes while doing different tasks (taking picture, going to settings, after unlock). Do you have any suggestions what can I do/change to fix this. This is happening on all Jelly Time releases - i tried R3, R4, R5.1 and also AOKP V6. When I flash IcoColdSandwich everything is running without problem.
I will appreciate your help. Thank you!
My order :
- wipe data/factory reset
- wipe cache
- wipe dalvik
- Flash ROM
- Flash gapps
- fixing permissions
- Reboot
Thanks, that makes it clear.
So its possible that you flash the kernel when you are flashing the ROM!

[SOLVED] Before installing ROM

Hi All,
So I've just unlocked my bootloader, flashed .79 firmware and flashed DooMKernel v14
My question is what do i need to do before installing the ROM from my SD card
Format the phone "Factory Reset"?
Wipe dalvik cache?
Wipe cache partition?
Also if I'm wanting to try another ROM do I need to do any of the above before installing a different one?
Thanks
Re: Before installing ROM
Fraymond said:
Hi All,
So I've just unlocked my bootloader, flashed .79 firmware and flashed DooMKernel v14
My question is what do i need to do before installing the ROM from my SD card
Format the phone "Factory Reset"?
Wipe dalvik cache?
Wipe cache partition?
Also if I'm wanting to try another ROM do I need to do any of the above before installing a different one?
Thanks
Click to expand...
Click to collapse
Yes wipe data(factory reset), then wipe dalvik cache and cache. You need to do this when switching ROMs. If its an update of same ROM and OP say there is no need for wipes then dont, otherwise always wipe.
Sent from my GT-I9300 On Official JB
Re: Before installing ROM
Dalvik is contained in /data if I remember. I thought it was system, data, and cache that you had to wipe.
Sent from my SCH-I535 using Tapatalk 2
Default Re: Before installing ROM
brainard52 said:
Dalvik is contained in /data if I remember. I thought it was system, data, and cache that you had to wipe.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Yep I agree
I do the following:
(1) Wipe cache/data/advanced dalvik cache
(2) Mounts&Storage format cache/data/system
(3) Install rom.
Maybe you do not need to do all that but I do and don't get any bootloops

|Tool | Utility| Wiping Tools | 5 Aug 2013 |

What is this?
Recovery flashable cache, Dalvik, and data wiping tools.
Why?
The script that wipes data should help prevent the problems experienced when different recoveries wipe data differently and with different options to choose from.
(Those that have typed in "YES" when wiping data know what I mean)
Why are there two?
One wipes cache & Dalvik.
One wipes cache, Dalvik, and data.
What data is wiped?
The data that is wiped should be all that is required for flashing ROMs (see below).
Media (your pics, music, etc) will not be deleted.
Feedback
Feedback from users that flash a lot of different ROMs (especially both TW and source built) will be useful in case there are any additional files and folders that need to be wiped.
Usage:
As always, flash at your own risk!
Flash in recovery
(these are most useful when using a recovery like TWRP where multiple zips can be queued for flashing)
A typical queue might be something like this:
1) Cache, Dalvik, and Data wiping tool
2) ROM
3) loki-doki
In case any devs want to add this to their ROM updater-script (most likely for an Aroma package), this is the code for the data wipe:
Code:
delete_recursive("/data/app");
delete_recursive("/data/app-asec");
delete_recursive("/data/app-lib");
delete_recursive("/data/app-private");
delete_recursive("/data/backup");
delete_recursive("/data/clipboard");
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");
Download
Wipe_Cache_Dalvik_SGS4_v1.0
Wipe_Cache_Dalvik_Data_SGS4_v1.0
Wipe_Cache_Dalvik_Data_System_SGS4_v1.0
Thank you for this :good: what about formatting system though? Formatting system before a rom flash has solved many problems for me.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Planktron said:
Thank you for this :good: what about formatting system though? Formatting system before a rom flash has solved many problems for me.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
It would be redundant since all devs should format system in their install script.
Finally. :thumbup:
Sent from my SAMSUNG-SGH-I337 using xda premium
I have been meaning to thank you for this - I have used it a number of times already and found it to be very helpful. I am on OUDHS recovery - and while it would be better in some ways if I had TWRP because you can setup multiple files for flashing - it is still a big time saving tool when flashing any rom, update, kernel or theme on OUDHS/CWM. ANd it works beautifully.
I assume that I still need to wipe system when I want to do a totally CLEAN Flash - is that correct? If so - any thought of creating a third file that Wipes Data/Wipes System/Clears Cache and Clears Delvic Cache?
Or do you feel that is not needed?
Lol probably will implement this into my ROM once I put Aroma into it, if that's okay?
lol I love that part about "YES" i've seen too many users wipe their whole partiton and TWRP not be able to create one again (idk why) and then bootloops galore.
mocsab said:
I have been meaning to thank you for this - I have used it a number of times already and found it to be very helpful. I am on OUDHS recovery - and while it would be better in some ways if I had TWRP because you can setup multiple files for flashing - it is still a big time saving tool when flashing any rom, update, kernel or theme on OUDHS/CWM. ANd it works beautifully.
I assume that I still need to wipe system when I want to do a totally CLEAN Flash - is that correct? If so - any thought of creating a third file that Wipes Data/Wipes System/Clears Cache and Clears Delvic Cache?
Or do you feel that is not needed?
Click to expand...
Click to collapse
If devs are coding their install scripts properly, there is no need to wipe system (as I mentioned earlier with formatting system).
But...maybe I should make one just in case.
jetlitheone said:
Lol probably will implement this into my ROM once I put Aroma into it, if that's okay?
lol I love that part about "YES" i've seen too many users wipe their whole partiton and TWRP not be able to create one again (idk why) and then bootloops galore.
Click to expand...
Click to collapse
Absolutely you may use it. That's why I included the code.
Added zip to OP that will also format /system.
I wanted to thank you again for this tool - it has really been very useful and has saved me a ton of time and steps when flashing new roms and updates. Thanks - BIG TIME!

Categories

Resources