Remove All Ads from XDA

Noob friendly guide to clean install ROM.

25,063 posts
Thanks Meter: 49,252
By dr.ketan, Recognized Developer / Recognized Contributor on 2nd September 2014, 03:24 PM
Post Reply Subscribe to Thread Email Thread
5th January 2016, 06:42 PM |#111  
zainmerchant's Avatar
Thanks Meter: 3
Thanks for this guide!
6th January 2016, 07:20 AM |#112  
Junior Member
Flag Chennai
Thanks Meter: 0
12th January 2016, 11:47 AM |#113  
Senior Member
Thanks Meter: 223
Humble suggestion
Hi Dr. Ketan, this is a very good how to for n beginners.

OT: When I owned a N7105 I used to have a look at your roms for N7100 and appreciated a lot your work, always very polished. I have been apart from modding for almost one year, but I will try your N5 rom port asap.

Back to topic: first thing, I think you could ask a mod to 'pin' your thread on to the top of the section, so that people can easily find it: now it's somehow hidden and you've got tp scroll the entire section to reach it, so it runs the risk of being useless, since an user who has just bought a note 4 won't very likely see this thread.

Second thing, it seems that nobody cares about people who don't want or cannot use windows and there is no reference to Heimdall, which works even better than Odin. I spent a little time to compile it from sources and wrote down a short how to in the general section. It's for Ubuntu 14:04, but should work with minimal adjustment for any linux distro which is up to date.

Imho, when a total noob comes the first time to this forum, he should immediately find your exhaustive how to and a link or a reference to the fact that windows is not the only option to root and flashing firmwares, bootloader, kernels and so on. So, if you do agree, feel free to copy and paste where you prefer my how to or to put somewhere a link.

BTW, Heimdall is open source, would it be fair if I should create a deb and attach it to my thread? Is it against any rule?

Last edited by lucaoldb; 12th January 2016 at 11:50 AM.
The Following User Says Thank You to lucaoldb For This Useful Post: [ View ] Gift lucaoldb Ad-Free
12th January 2016, 07:44 PM |#114  
Andy Yaddah's Avatar
Junior Member
Thanks Meter: 3
Thanks for this thread
16th January 2016, 11:24 PM |#115  
Junior Member
Thanks Meter: 1
Originally Posted by dr.ketan

Noob friendly guide to clean install ROM.

Ok friend here posting some steps to clean Install ROM and how to keep device ready to clean install ROM with minimal risk of loosing data with keeping data restore handy.
I have devided this guide in Three sctions.

If you are first time flashing custom ROM then first part of this guide is not much helpful to you. Move to section 2 (installing ROM) as well read post#2

1.Pre Flashing - How to keep device ready to clean install ROM/Wipe
2.Installing ROM
3.Post flashing data restore.

1.Pre Flashing preparation and data backup management.(for rooted device)

Here for this I do prefer titanium with schedule backup to keep my data protected on daily basis and describing below how do I prefer to manage it.

Ok let's start with schedule backup with titanium. This step will secure you to keep your data backup everyday without your interference.

- Install Titanium backup from play store (features mentioned here best managed with Pro version only)
- Now open titanium application and select click to edit filter as shown in screenshot below

-In next screen select create label. see image below

-Now give this filter a desired label like here i gave data only in below screenshot. After this select add/remove elements in same screen. This is very inportnt step and you have to decide what elements you requires to backup daily. In my case giving you some examples like
contact storage ( look for contac storage green color to make contact backup), Messages (yellow colored) to make backup of SMS. like this. You can select your desired application data to make backup according your needs. But I strongly recommend to make backup od these two only from system application part. Though another important app is Launcher which can helpful to restore your launcher setting (Homescreen) for that you need to select TouchWiz home (red color). Also note that when you restore red color backup, select only to restore data only. we will discuss again in restoring section. Ok you can also select third party elements which changes data frequently. in my case I don't use stock launcher so selecting third party launcher so whenever i do change my homescreen setting, i need not to worry about it. Anyway it's enough to make clear what you have to select here is only application which data frequently get changes.
Once you finish this setup you will see your filter in nect screen

-Now come to main screen and select Schedule. See image below

-Now here you can see two pre defined rule here on ths page. see image below

-Select first rule by tapping on edit on first rule. Now next screen is very important and you will find three tables. Here in below screenshot as I shown select first tab to "Backup new user app and New version" This will ake backup of all user app which backup is not present. Also it will make re backup if you update application version.
second tab is keep no filtering so all user app will backup and third tab should setup to 'Any' so it can make backup without any power condition.
Also in lower part select desired day and time when to make backup. You can select daily or on selected day. I prefer to do during our sleeping time so it can do silently.

-Now click on edit button of second rule. This is for backup of all app and data for which you have created lebel.
Now on first table select 'All user App + System data" and in next table (filter) select label which you have created earlier. So this will make backup of only stuff which you have selected in add/removal elements while creating label. Also recommended to keep 'Any' under power condition of third table.
Same as before here defined your prefered time to make backup. Keep considerable time between first and second rule so app will remain free at time od backup of second rule.

-Ok most of setup is now finished and select menu key - preference from titanium app and Check mark 'Auto-Sync TB setting' This will save setting on SD card and when you install Titanium next time all above made setting will be retrived autometically.

-I prefer to keep titanium backup folder on Ext SD because many times you may needs to wipe IntSD too. Also prefereable to make periodic manual backup of titanium backup folder to PC from Ext SD card. you can set loaction from Menu - preernce - Backup folder location.

-also recommended to keep multiple copy of backup by selecting Number of backup under menu-preference. This is important when one backup failed then old to that backup may be useful

So this is all about keep device ready to make backup of your device anytime on daily basis. Though you can manually run scheduled backup by selecting 'RUN' in schedule-rule just before flashing ROM to assure latest settings are being backup already.

2.Flashing ROM

1.Flash your desired CWM/TWRP if you are still on stock recovery. - READ POST #2 FOR DETAIL ABOUT FLASHING RECOVERY.
Note that your device not required to be rooted to flash custom ROM. Just having CWM/TWRP (what is recommended by your ROM developer)
2.Download and copy ROM file to your SD card (Int/Ext)
(Here I am showing example of Philz recovery and some option may be different in case of you are using other recovery)
3.Reboot to recovery and select wipe data (for clean installation) (see image)

4.Select Install zip and then select zip from SD (where you copied) (see image)

5.Now wait here and don't immediately confirm by pressing 'yes' but wait till it finish md5 check. (see image) MUST READ
Once it finish md5, compare it with below provided md5 sum and select yes only if it matches. If it doesn't match that means your download is corrupted and needs to redownload.

Ok Next important thing to mentione here is management of bootloop

So many users experiences bootloop after flashing ROM, even after clean install. This is most of due to corrupt data and common issue on kitkat based ROM.
Here recommended steps in case you get bootloop.

1.Make sure you have checked MD5. I have desribed here how to check md5 on device above wit Philz recovery. I strongly recommend to check MD5 on device because sometime file can be corrupted while transffering from PCto device. In case you are using other recovery then you can use root explorer from play store to check MD5. Open root explorer - navigate to ROM file - Long press and select properties. Vait for some time while it finish calculating MD5 and once it matches with one provided on ROM thread.
2.Use recovery which is recommended by developer of ROM.
3.Before flashing ROM wipe data and then install ROM.
4.If still issue then you can try flashing stock recovery and then wipe data with stock recovery. NOTE that wiping data with stock recovery will erase all data from Int SD too.
5.Even after this issue persist then last final way is to flash stock ROM with Odin and then wipe data using stock recovery. After that follow install instruction as said above.

Now After successful flashing ROM last step is to restore data

3.Post flashing Restoring data.

1. First complete setup wizard and wait till you get homescreen. Now here wait for your device to become cool. On first boot after clean install media scanner will scan all drive and Index srvice also will run that will make device quite hot. and this depends on data on your device (5 to 30min) Don't intall anything during this period and wait till device gets cool. (This waiting period is optional but still recommended to prevent any unwanted issue)
2.Now reboot device and add your google account. If you have cloud backup for your contacts then let sync to finish and as soon as you add google account your contacts will be restored autometically. Ifyou don't want to sync contact data then immdiately open account-google and select 'Cancel sync' now you can manually select each option which you want to select if you needs selected data to sync only.
3.In case you don't sync contacts with google server then now time to restore from backup you made by other way. Apart from titanim other way to backup contacts is from contact application itself. for that you needs to make bachup before wiping device by
Contact - menu -Impoort/Export - export (SD/ExtSd)
If you have make backup this way then now restore it by doing this in reverse. Contact-men-Import/Export-Import (from where you created backup)
In case you have created backup by titanium then
Open titanium app - look for contact storage (green color) and select it - restore -data only. Remeber this step you have to do after adding google account only otherwise you can't see contacts.
Next is restore SMS
Open titanium - look for Messages (Yellow color) - select - restore -data only
Now reboot device and check contacts and messages are restored correcly
4.Restore rest of app and data.
For this open titanium - menu - batch action - Select "Restore missing app with data" option Here very important thing on next screen is to keep selected two option a.App + data and b.Exclude System apk. This option a will restore all your app including data like game level (may not with few app), credential of app, settings/preferences of app etc and option b will prevent any junk file of preveios ROM to inject.
After confirming of these two options now check list of app which going to restore. Have a look again and deselect any app you don't needs as well an app you don't know what is it (sometimes old ROM junk can be seen here)

Once restore process start, keep patience and let it finsh. During this time device getting hot is normal. and once restore finish, simply reboot device and open application whih requires to give auto notification. Also open applications manually which require root permission. Remember some application can't work unless you manually open it once after titanium restore.

Also to remind that if you find lots of application causing force closes after restoring titanium then may e your ROM is not fixed for it and you needs to Install TB restore fix from play store and needs to apply fix. Also to note you needs to do it everytime you restore titanium data.

OK friends I think lots for now and will update if I find anything missin here. Thiugh it's long to read but I can assure once you do it, you will never worry about wiping device. and it's one time investment to keep device clean

All the best and happy flahing !

Thank you!! Really helped me out!!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes