[GUIDE] Flashing ROMs correctly, every time

cobraboy85

Senior Member
Aug 25, 2011
2,480
1,231
0
***original post copied verbatim******************************************************************


So I was rummaging around the dev section, QA, so forth. And I have seen numerous threads, questions, posts, where people have had issues with ROMs or just general left field issues that were resolved by going back to square 1 doing a fresh clean install of "rom.zip..

My goal with this thread is to contribute some insight and experience with customizing android devices in the way we all do... at square one, clicking the download button.... we also do not have a thread dedicated to this one subject alone, so here it is. I feel stickying this thread would be extremely useful, as so many people could see it right from the get-go and get valuable information from it.

Just getting right into it, I will say this, I have flashed (I'm sure) damn near 1,000 ROMs to various devices. Mine. Friends. Etc. And never once have I installed a corrupt zip file to these devices. This should never happen, and among other important details to any installation of a ROM, this one is the most important...

VERIFY THAT YOUR DOWNLOADS ARE GOOD!

How do you do this??? Well I will show you... it is with this handy little app called md5 checker from the play store. EVERY. SINGLE. ONE OF US.... should have this app, guys (and gals, because I know you are out there ;) it is a free app. No excuses ;)

What is an MD5 checksum? Trusty link to get the gist of it.. http://www.fastsum.com/support/md5-checksum-utility-faq/md5-checksum.php

Making this simple - I will break this down into steps. Follow this meticulously and 99.9% of the time you will not have an issue or be one of the random bugs popping up when everyone else seems fine.


1. Download md5 checker.

2. Download all zip files needed for your ROM. (whether you do this from your mobile device or a desktop/laptop it doesn't matter, because you WILL verify the file AFTER you have transferred it to where it needs to be allocated - your device). Basically, download it, transfer it.

3. Open md5 checker, the app is pretty easy to use. Much like a file explorer in its layout with the obvious differences.

4. Retrieve md5 for your zip files.

5. Verify them with ROM developer, or others using that particular ROM. Any discrepancies - back to step 2.

6. All is well? Boot to recovery.

7. Wipe data 3 times (you don't need to wipe dalvik cache, that directory is found in the data partition - wiping data = wiping dalvik cache)

8. Wipe cache 3 times (this sometimes does not need to be done either depending on whether or not your recovery wipes cache with data.. most recoveries will spit out some text during the wiping phase letting you know the details of the process and you'll see see something like this when wiping data)..
"Wiping /data...
"Wiping /cache

If you see cache being wiped, you are good. No need to manually wipe cache.

9. Format your system partition through recovery 3 times

10. Install your ROM. Reboot. Let it sit for a minute or two, reboot it again. If you are not installing a custom kernel, stop here. You are done, and winning.

11. Reboot to recovery, wipe cache partition 3 times AND dalvik cache. They are both there as options, for this reason - the goodies we install after a full ROM install.

12. Flash kernel zip. Reboot. Let it sit for a minute or two, reboot it again. You are done, and winning.



Interesting fact about all the ROMs I have installed over the years, NOT ONCE, have I ever installed something corrupted, and every issue/bug I have ever had with a ROM was a known issue. This also doesn't mean your particular device is always going to be able to run for weeks on end without needing a quick reboot. Sometimes its good to do the dishes, I get that. But my disclaimer here is for all to note, if you follow these steps meticulously, you will ALWAYS be able to say to yourself with confidence "nope, did it right, there is something else going on here." And thus you will be a greater problem solver and contributor to the community as a whole every single time you pose a thought or question regarding any problems you are having.

"Do it right once, instead of doin it wrong twice before doing it right."

We are nothing useful without useful information. Useful information = posting in a thread in this tone...

"Hey, installed ROM correctly/thoroughly, verified downloads, XXX is buggy blah blah etc etc... can somebody else here verify if they are or aren't having this issue? Thanks!"

Based on people's response you'll know if it is just you or a legitimate issue, in which case, you brought it to the attention of us all, and the dev(s), and you have now been very useful.

What you don't want to do is this....

"My phone keeps rebooting!!! Haaaalp"

The reason why you shouldn't post like that is because you will ALWAYS get a sour response or people will just ignore you. Or, they will reply with questions you should have already asked yourself... "did you verify your downloads were good??? Did you do a clean and thorough install???"


Long post, but I hope somebody will find it useful and utilize it. It will increase your experience with your android device in a positive way, as it has for me. Cheers
 

Alienator9191

Senior Member
Jan 18, 2012
361
116
0
why not format every partition 3 times (idk how recovery looks at this device, im used to 4ext on the HTC sensation) and the wipe data to set al parations right again and install the rom? even why wiping 3 times instead of 1?
 

neock

Senior Member
Jul 22, 2007
276
4
0
Canton
why not format every partition 3 times (idk how recovery looks at this device, im used to 4ext on the HTC sensation) and the wipe data to set al parations right again and install the rom? even why wiping 3 times instead of 1?
agreed

since nand ram has its life time of cycle. wiping the nand for more than needed is some kind of suicide mission to your droid....
 

cobraboy85

Senior Member
Aug 25, 2011
2,480
1,231
0
I disagree. If you are the type that flashes a ROM 5 times a day then yes that might be a factor.... might be. Each android device I have owned I have flashed a ROM/kernel to it literally thousands of times and nothing was ever damaged because of scrubbing the disk too much and flashing to it too much. Sorry, but misinformed about just how robust these disks are.
 

Phistachio

Senior Member
Oct 22, 2011
1,475
1,026
0
24
Belgium, BE
Most definitely, wiping 3 times is completely unnecessary. Only 1 time is enough for the NAND to perform the wipe commands. Not only that, but also you're wearing out the flash drive by wiping so much, even though you flash a lot. Another reason to only wipe once.
 
  • Like
Reactions: zenzip

zenzip

Senior Member
Apr 7, 2010
363
34
0
Napoli
First of all thz for this step-by-step guide, for newbie is useful.

Most definitely, wiping 3 times is completely unnecessary. Only 1 time is enough for the NAND to perform the wipe commands. Not only that, but also you're wearing out the flash drive by wiping so much, even though you flash a lot. Another reason to only wipe once.
I agree, why repeat 3 time the same wipe command, when 1 time is enough for wipe data from NAND...
unless there is an hidden reason, I don't see a good reason to do that! :cyclops:
 
Last edited:

sloppy1

Senior Member
Nov 9, 2010
264
102
0
bradford
First of all thz for this step-by-step guide, for newbie is useful.



I agree, why to repeat 3 time the same wipe command, when 1 time is enough for wipe data from NAND ?
unless there is an hidden reason, I don't see a good reason to do that! :cyclops:
1 wipe is more than enough
plus this thread should be in general section
 

dr.ketan

Recognized Developer / Recognized Contributor
Apr 9, 2011
34,382
67,793
263
Gujarat, India
drketanrom.com
I never face any problem with these steps (surely more then 100 flashing)

1.Downoad and flash ROM with Odin (odin doesn't check md5??)
2.Reboot, nevermind if stuck
3.Reboot to recovery, wipe cache and data.
Thats it.
If your counter is already raised, first make sure you have stock kernel and recovery
Reset counter
Start from step 1 above.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone