[GUIDE] Flashing ROMs correctly, every time

Search This thread

cobraboy85

Senior Member
Aug 25, 2011
2,480
1,231
honestly, bro, doesn't get any simpler than that. reboot to your recovery and do some exploring.
 

Sk17z0

Senior Member
Nov 29, 2010
139
7
Now I feel even more confident installing ROM's. I'll remember to use that MD5 Checker app the next time I think about installing a ROM.
 

sekellas

Member
Nov 26, 2012
8
0
Seattle
Thanks for guide!

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

Thanks very much, this is a great guide for newbs like myself. I almost bricked my SGS3 and by the grace of god was able to fix it, but not without reflashing several times, and even going back to stock and then re-rooting.

This is a must, and a great reference for anyone, whether old or new to rooting.

Thanks again!
 

rani9990

Senior Member
Apr 21, 2012
1,522
960
Your mom
Why the duplication of steps? Task says it's completely unnecessary.... and I do too. Never have I had any problems with flashing a Rom only wiping data once.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
 

black13n

New member
Oct 21, 2012
4
0
what if the custom rom doesn't have md5 files? the galaxymod rom doesn't have it.

And when I flash it via CWR it loads but the menu's fail and constantly has the xxx process has stopped rendering the phone useless.
 

king101x

Member
Oct 19, 2012
32
0
i am trying to flash a new rom but I don't see this step in my phone
"6. Manually Wipe System"

can somebody help me
 

aricky56

New member
May 22, 2012
1
0
how do i wipe the system before flashing rom?

can i just use the clockwork recovery to wipe or do i need to flash a wipe file?
pls help im trying to flash ARHD on samsung galaxy s3.
 

droidsung

Senior Member
Dec 18, 2012
66
12
After the cache and dalvik wipe, I sometimes use the "Fix permissions" and sometimes don't.

However, I see no real difference in the performance and/or battery life when using fix permissions as opposed to not using it.

So, I don't know, should we always or shouldn't we fix permissions after flashing a new ROM and why?
 

cobraboy85

Senior Member
Aug 25, 2011
2,480
1,231
Most ROMs that you flash have script in the updater to fix permissions for you after everything is installed and sometimes even at boot during the loading phase of the /etc/init.d (right when you are seeing the boot animation)

I wouldn't do it unless your ROM developer instructs you to, or if you are having problems with certain apps force closing on you, or other out of the ordinary issue.

A common example is your market not being able to download an app, or it force closing, things like that. Clearing data on whatever app you are having accessibility issues with, then wiping cache and dalvik cache, then fixing permissions, will usually solve little issues such as these.

Hope that was clear for you.
 

johnny quest

Senior Member
Jul 2, 2010
1,241
253
Port Saint Lucie
Ok, after attempting to flash a rom several times and it works but sometimes I repeat the other methods and then lose my back up, my directory. I then saw your thread on flashing and I am going to try it out.

Why is it that some roms require you to wipe data/factory reset? when I do that I install my miui and it works, but when I have another rom installed and do the same wipe method I lose my directory?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    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
    2
    Cobraboy,
    I have linked this thread to my signature, is that ok with you ?
    1
    Yeah I figured it will would be a useful guide. I'm just glad others feel the same. Beauty of open source - doing things because you like it and to benefit the community

    Sent from garaxy
    1
    Great summary! Subscribed and will link to this thread when the next noob comes along and says, 'haaaaaalp!'.

    :)

    Sent from my HTC Incredible 4G on Verizon's periodically blazing fast and mostly reliable 4G LTE network using xda-developers app
    1
    Do i have to clean data and cache 3 times?

    Personally, I say no. A few people aparently found it to sometimes be necessary on a previous phone and are just more comfortable continuing to do it that way. I never have wiped more than once, and never had any problems.
    Its just what you're more comfortable with in the end. It shouldnt hurt anything, so its not a wrong way, just unnecessary imo.

    Sent from my SGH-I747 using xda app-developers app