Saturday, May 9, 2020

Guide to Flash Custom ROMS on any phone

Step 1.Unlock Bootloader
Watch this video for unlocking bootloader on Xiaomi phones

UNLOCKING BOOTLOADER DOES NOT VOID WARRANTY!!

It takes about 4-5 days to get permission to unlock.
**Device not showing??
No problem...make sure you update your fastboot drivers...for that click on driver option in mi unlock tool application.


Step 2.Install any custom recovery like TWRP(there are many recoveries like orange fox,sky hawk...etc..).
Watch these videos for help!!

**NOTE:Custom recovery file is different for each device....make sure you download it for your device...(each phone has a code name for development of ROMS and other features...like beryllium for POCO F1,Santoni for Redmi 4/4X...Raphael for K20PRO...etc..)

TWRP(official) recovery link:https://twrp.me/Devices/

**For installing any custom recovery you need Platform tools on your computer....(It is different for windows,Linux,Mac ......and the commands too)
Platform tools link and guide for commands:

for Windows users...
1.extract Platform tools folder...and place TWRP image in platform tools folder

2.Open command prompt in the same folder by typing cmd on search bar.

3.Connect your phone in fastboot mode with pc using USB.

4.To check if the device is connected successfully...type fastboot devices....here you must get a code or serial no. on command prompt screen...this shows it is connected successfully.
If you don't get...connect it again...make sure bootloader is unlocked!!

5.Type command fastboot flash recovery twrp(press tab key to automatically type the file name)and press enter key.

6.Reboot to TWRP Recovery now.....for that type fastboot reboot twrp(press tab key to type it automatically) and press enter key.
7.Your phone will now reboot to TWRP Recovery.

8.Swipe to allow modifications.

9.In Xiaomi phones if you reboot to MIUI ...the TWRP(custom recovery) will be replaced by stock recovery of MIUI...you will need to install it again...hence it is recommended to flash a custom ROM like pixel experience (for beginners) before booting to MIUI(stock ROM).[Custom ROMS are different for all phones]

**Many phones having a good development like POCO F1 can avoid this just by installing 
Disable force encryption(dfe) or by ROOTING(installing magisk.zip)before booting to MIUI(stock ROM)....but this method may not work on all phones!!

Step 3.How to flash any custom ROM??

First we need to understand some terms....
1.Clean Flash:Go to wipe>Advanced wipe>select dalvik/art cache,system,data,vendor and swipe to wipe them....Clean flash is used to flash a new ROM.

2.Dirty flash:Go to wipe>advanced wipe>select dalvik/art cache,cache..and wipe them....then install a new update for the same ROM.Dirty flash used to update ROMS.(Flashing processes won't wipe internal storage until you select it while wiping).

3.Go to install...select storage where you have downloaded files including(ROM,Vendor,Firmware,dfe)

4.Select Firmware file First then click add more zips...then select vendor then again click add more zips ...select ROM...at last dfe(disable force encryption).Magisk for ROOTING is optional.(Firmware>vendor(if needed)>ROM>Gapps(if needed)>DFE>Magisk(optional).

*Note:Custom ROMS may have two versions for each build....(one is called Vanilla...it does not have google apps preloaded...you need to install gapps.zip package after ROM....the other is preloaded with Google apps...you don't need to install gapps).

Google Apps[Gapps] link:


*Note:All custom ROMS for phones like POCO F1 come preloaded with vendor now...Hence no need to install vendor separately!!
though If you install...the vendor that comes with the ROM will replace it.
If you do not know whether your phone's Custom ROM has vendor preloaded or not ...it is recommended to install it before each ROM.

5.Swipe to install...after installation click reboot system and select do not install if you get a prompt by TWRP recovery!!


From where to find Custom ROMS for your phone??
Google your phone name and add XDA after it!!
Or use search bar on XDA site:https://www.xda-developers.com/


Some basic concepts:

Vendor zip file:It contains necessary drivers for the phone to function properly!!

Firmware zip file:It interacts with your hardware and ROM for proper functioning...It is very necessary for booting the phone....hence latest firmware is necessary!! Firmware cannot be deleted by TWRP recovery or any Custom ROM...It can only be updated or downgraded!!


Dfe(Disable force Encryption) zip file:If you are flashing Custom ROM for first time or if your device was not encrypted (check encryption in settings>security>Encryption credentials) then flash dfe after each ROM otherwise you will need a password to open phone...and you will need to format data by TWRP recovery to open phone...this will erase your internal storage
For That Go to TWRP>WIPE>FORMAT DATA >TYPE YES.In some phones dfe also helps by avoiding the stock recovery to change the custom recovery after you flash stock ROM like MIUI.


How to ROOT and UNROOT your Phone:Rooting is optional...you can root any phone just by installing magisk.zip file by TWRP or any custom recovery.
What does rooting do??It gives you superuser access and is necessary if you want to overclock your GPU and display.

Magisk zip link(works on all Android phones):

Does Rooting void my warranty?? Yes it voids ...but you can Unroot your phone just by uninstalling magisk by magisk manager app.

How To overclock GPU and Dispaly??
By installing Custom kernels

Watch these videos for help.

Method to install custom kernels:
Go to Recovery.
Wipe dalvik,cache.
Install Magisk to ROOT.(some custom kernels which do not overclock do not need root)
Install kernel zip
Backing up old kernel is recommended!!

How to Backup and Restore kernel and ROM:
1.Backing up ROM.
Go to Recovery.
Go to backup.
Select BOOT,SYSTEM,DATA
Swipe to backup.

2.Backing up kernel.
Just select BOOT and swipe to backup.


TO RESTORE.
Go to Restore Option in Recovery.
Select the backed up file and swipe to restore.

What if I flash wrong ROM/Kernel  or got any error??
If you install wrong ROM ...recovery won't let you install...It will show ERROR 7.
If you flash kernel and not able to boot your device and moreover you did not backup your old kernel??

NO NEED TO PANIC...
Just clean flash the ROM again...your phone will work as it was working.

No comments:

Post a Comment