The Github Experiment By Ajay Gupta

Clean flash vs Dirty flash – Custom ROM’s

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Clean flash:

1.       Install Titanium Backup. Open Titanium Backup > Go to menu > Batch actions > Backup apps + system data. This will backup all your user apps, app data and all the things like wifi passwords, calendar events, etc. This will not backup system apps, as that mostly will

2.       Go to TWRP recovery (or whichever custom recovery you are using) and do a Factory reset. This will clear cache, user apps and data that those apps were using. The data (images, movies, music, etc.) that you have in your internal/external SD card/storage will remain intact.

3.       In the TWRP recovery, flash the new ROM files in the following sequence: Firmware update (if any) > Custom ROM > GAPPS > Custom Kernel (if any). Then wipe Dalvik/Cache.

4.       Reboot system.

5.       Do initial system setup (skip restoring your apps via Google account).

6.       Install Titanium backup. Restore user apps + data.

Dirty Flash:

1.       Go to TWRP. Clear cache/Dalvik.

2.       In the TWRP recovery, flash the new ROM files in the following sequence: Firmware update (if any) > Custom ROM > GAPPS > Custom Kernel (if any).

3.       Reboot system.