Beginners guide on flashing Custom Roms

Beginners guide on flashing Custom Roms

@MR_R0B0T12

Pre-Requisites :

1.      Unlocked Bootloader

2.      Minimal ADB and Fastboot drivers

3.      Motorola Drivers

4.      twrp-3.2.1r22

5.      twrp-3.3.0

6.      Pie Custom Rom

7.      Android Q custom Rom

NOTES:

-->     Before Starting anything, make sure to backup your personal data (It’ll all be deleted)

-->     After Starting the process, till you flash any Pie rom, don’t reboot to system, as it may remove twrp which you have flashed and you need to start from beginning.

-->     At any point of time while you are in recovery mode, if your phone isn’t showing in your pc, just reboot back to recovery, not system.

--> In this process you need to backup Efs and Persist from both stock Rom and Pie Rom, Make sure to store those backups safely in pc / cloud as it’ll be more helpful than your files.


How to flash Custom Rom:

->     Install the USB Drivers.

->     Install Minimal ADB and Fastboot

->    First connect phone to pc and enable usb debugging(Settings>developer options>usb debugging).

->    Copy twrp 3.2.1r22 to minimal adb and fastboot folder (C:\Program Files (x86)\Minimal ADB and Fastboot).

->     Now, Run minimal adb and fastboot as administrator and type "adb reboot bootloader" command, then it should make your phone to boot into bootloader

->     Now type "fastboot flash recovery twrp-3.2.1r22.img"  and after it shows success, type "fastboot reboot recovery"

->     This should reboot to recovery.

->    Now, in twrp, allow modifications, then go to backup section, Select Efs and Persist and swipe to backup.

->     After backing up, copy those to your pc ( you can see your files in pc at recovery mode too)

->     Hit back twice, go to wipe section, click on format (not advance wipe), then type “yes” and swipe to format.

->     If it shows any error, hit back twice and in reboot section select recovery, it should reboot your phone back to recovery.

->     Now try again to format, if it still shows error , repeat the same once again ( rebooting to recovery and format)

->     Now, it should format your phone.

->     Now go back and in wipe/Advance wipe, select System,data,cache,dalvik and swipe to wipe.

->     Now copy Pie Rom to phone via pc.

->     Go to install section, select Pie Rom (no need to flash gapps) and swipe to install.

->     After installing click on reboot, It takes time to reboot so wait till reboot,

->     After booting, skip setting up Google account and check whether everything is working or not( check IMEI , Baseband)

->     If everything works fine, copy an android 10 Rom, gapps (if needed), twrp-3.3.0 to phone and reboot back to recovery.

->     In install section click “select image” and select the twrp-3.3.0 and flash it to recovery partition.

->     After flashing, from reboot section reboot to recovery

->     Now, Backup Efs and Persist again and copy that to pc

->     Click on wipe/Advance wipe/ select System, Data, Dalvik, cache and swipe to wipe.

->     Go back to main menu and in install section, select new android 10 Rom and swipe to flash.

->     Flash gapps if necessary.

->     Then reboot.

->     Enjoy the custom Rom


Here comes some extra tips:

 When and how to clean flash:

Clean flash is mandatory when you change to next iteration of android (from stock to pie and pie to android 10) or when your Rom maintainer says so or when changing to different rom. To clean flash go to recovery and wipe System,data,cache,dalvik, then install rom

When and how to dirty flash:

Dirty flash can be done when you are changing to next version (not iteration) of the same Rom. It is done by wiping system,cache,dalvik (excluding data) in recovery and install Rom.

If you encounter any issues in dirty flash, make a clean flash.

Report Page