How to Flash Custom ROM on Android Device

Android Custom ROM
TechLatest is supported by readers. We may earn a commission for purchases using our links. Learn more.

Wondering how to Flash Custom ROM? or are you bored of the same custom UI of your OEM and want to try something new? Or you heard a lot about custom ROMs but didn’t know how to flash them on your Android smartphone?


Then you are in the right place,

In this article, we are going to discuss everything about Custom ROMs and eventually will learn how to flash custom ROM on Android devices.

We tried to cover everything in as simple as possible language, if you still faces any issues somewhere, then feel free to contact us.

Note: Although the below method is 101% safe to use, still we at TechLatest can not be held responsible for bricking, hardware, or any kind of software problems arising on your while you follow this guide

What is a Custom ROM?

Custom ROMs are the customized version of the base Android OS. Unlike iOS/iPadOS, Android is all about fun and customizations. You can modify each and every element/function of the OS.

Advantages of Android Custom ROM

There are many advantages of any Custom ROM, some of them are listed below:

  • You will get regular updates
  • They bring better performance
  • You can have customizable UI
  • They behave close to stock android
  • They can easily be rooted and customized
  • There’ll not be any bloatware
  • Various battery optimizations
  • and so on…

Is Every Custom ROM Compatible with Every Android Device?

The answer is both Yes and No.

Like most of the smartphones from Google, Xiaomi, Motorola, and OnePlus do support flashing custom ROMs.

On the other hand, a few smartphones from Samsung do support customization like unlocking the bootloader and flashing custom ROM and a few of the smartphones don’t.


And in the totally opposite, the smartphones from Realme strictly disallow any type of customisation to the software.

For your ease, let me list a few popular custom ROMs and their compatible devices, check those and decide yourself.

You may find the list of the compatible smartphones with a different and unique name than the normal smartphone name, those are called smartphone codename. For example, Poco F1 will be denoted as beryllium.

Smartphones codename are the early production/project unique name assigned to that product before the actual and official name of the smartphone.


Although, we have listed most of the Android smartphones’ codename in the following article, List of Android Device Codenames.

ROM NameCompatible Devices
LineageOSDevice List
Pixel Experience Device List
AOSP ExtendedDevice List
Paranoid AndroidDevice List
crDroidDevice List
Evolution XDevice List
Arrow OSDevice List
DOT OSDevice List
Havoc OSDevice List
Resurrection RemixDevice List

Also, Read: Best Android Custom ROM for Gaming Available Right Now

Pre-requisites of Flashing Custom ROM

OEM Unlock

Flash Custom ROM

The first and foremost step to get into Android Customisation is OEM Unlock.

OEM is the acronym for “Original Equipment Manufacturer”. It is also called “Jailbreaking” sometimes.


OEM unlocking is the process in which the unlock ability flag is set to 1 instead of 0, of your device. Generally, this is locked by the original manufacturing company, so the name given to it is OEM Unlocking.

The bootloader is locked by the manufacturer so that there shouldn’t be any unauthorized access to your device which we will discuss next.

We have a dedicated article for OEM Unlock, read the whole article here, OEM Unlock: How to, Uses, Advantages, Disadvantages.

Bootloader Unlock

Flash Custom ROM

If you have stepped into the beginning world of technology then, you might be aware of the word “booting”.


Booting is nothing but a process of running iso images on your device and the program that runs it is called a “bootloader”.

The process of making a bootloader to run that image is called “booting”.

So, to get started, we will have to unlock the bootloader of that respective device in order to proceed further.

You will need a PC at this stage to proceed, get and PC, and set ADB and fastboot using the following article, How to Install ADB and Fastboot?


Now, that you have successfully set up the ADB and Fastboot on your system, open command prompt on the ADB directory and execute the following commands,

First, connect your smartphone to PC and execute the following to check the connectivity,

adb devices

If the setup was done correctly, you should see the serial number of your device in the Terminal window output.

Note: On unlocking the bootloader, you will lose all your data personal as well as the system, so before proceeding, copy all your personal data to a safe place, i.e., PC or external storage.

Now, we are going to open fastboot mode using the following ADB command,

adb reboot fastboot

Now, use the following command(s) to unlock the bootloader of your Android device,

fastboot flashing unlock

In case you are using an old device, then execute the following command,

fastboot oem unlock

After successful execution of the command, the smartphone will automatically be booted into system as a new device.

Also, Read: Useful ADB and Fastboot Commands


Custom Recovery

Flash Custom ROM

A custom recovery may be a third-party recovery environment. Flashing this recovery environment onto your device replaces the default, stock recovery environment with a third-party, customized recovery environment.

This is often like flashing a custom ROM — but rather than replacing your device’s Android OS, it replaces the recovery environment.

And you should have a custom recovery to flash Custom ROM.

Follow the similar steps like in the above section to boot into fastboot mode.


Connect your smartphone to PC and then open command prompt on the ADB directory, check this article for reference, How to Install ADB and Fastboot?

Now, execute the following command one by one,

adb devices
adb reboot fastboot

Now, download your favourite custom recovery img file and put it in the ADB directory/folder. (Best Custom Recovery for Android Phone)

Finally, use the following command to flash the custom recovery file (make sure to put the correct file name in place of custom_recovery):

fastboot flash recovery custom_recovery.img

Now you can verify the installation by booting into recovery mode by using the following command:

adb reboot recovery

Full-system Backup (NANDroid Backup)

This is a very important step, this will ensure that if you stuck at any type of errors while flashing the Custom ROM, you can go back to the original ROM.

The NANDroid backup includes the following files,

  • System and system image of stock or custom ROM
  • Boot partition
  • All Data excluding storage.
  • Recovery partitions
  • All system settings
  • All stored passwords, including Wi-Fi passwords
  • Vendor and Vendor image

For the illustration purpose, we are going to use the TWRP or Teamwin Recovery Project.


The steps are similar for every Custom Recovery, so if you are using any other recovery than TWRP, then you also can follow similar steps,

  • Tap on the Backup button on the TWRP homepage.
  • Then, select the following,
    • System
    • System Image
    • Data
    • Boot
    • Recovery
    • Vendor
  • Finally, swipe the bar that says ‘Swipe to Backup’
  • Now, you are good to go.
Flash Custom ROM

If you are using TWRP, then you can even take the backup and save it directly into your PC. For doing so, follow the next article, How to Take TWRP Backup Directly On PC With ADB

Flash Custom ROM on Android Device


Details and Downloads

Here are a few things to download before getting into the whole flashing custom ROM process.

Also, ReadWhat is Magisk | Root Android Device using Magisk

Boot into Custom Recovery

Save the downloaded file to a save place on your smartphone’s internal storage or SD card. And then connect the device to the PC, and then open the command prompt on the ADB directory, check this article for reference, How to Install ADB and Fastboot?

After that, execute the following command one by one,

adb devices
adb reboot recovery

Now, you are in the recovery mode, you can disconnect the phone from the PC, if you want.

Wipe System, Data, Cache, Dalvik

The next step is to wipe the stock system which will be followed by data, cache and dalvik.

  • When you are on the custom recovery homepage, click on the Wipe button.
  • Then, tap on the Advanced Wipe.
  • Then select the following,
    • System
    • Data
    • Cache
    • Dalvik
  • Finally, swipe the bar towards the right end, that says, ‘Swipe to Wipe’

Flash ROM File

Flash Custom ROM
  • After wiping the mentioned partitions, go back to the recovery homepage by using the navigation keys.
  • Now, you are on the homepage,
  • Then, click on the Install button, it will open the file explorer.
  • Navigate to the directory where you saved the ROM and other files.
  • And select the ROM file.
  • Finally, swipe the bar towards the right end, that says, ‘Swipe to Confirm Flash’

Flash GApps (Conditional)

As the name suggests, “GApps” stands for Google Applications. because the Android OS, GApps, or Google Apps and Services also are open-source in nature and may be used seamlessly on Android OS running devices.

Needless to mention that you simply can’t even use Google apps and services on your Android device if the GApps package isn’t installed. like Google Play Services, Play Store, Gmail, Google Drive, Docs, Google Keep, Forums, Calendar, Phone, Messages, YouTube, Photos, Maps, etc.


This step is conditional and varies with every other custom ROM. A few ROMs may include the GApps (aka Google Apps) with the ROM whereas a few ROMs don’t include and in that case, you will have to flash the GApps additionally.

For example, the Pixel Experience ROM includes the GApps with the ROM whereas ROMs like ArrowOS or DotOS don’t provide the GApps with the ROM file.

So, before proceeding, cross-check with the ROM details, that whether the ROM has GApps or not.

  • After flashing the ROM file, go back to the recovery homepage by using the navigation keys.
  • Now, you are on the homepage,
  • Then, click on the Install button, it will open the file explorer.
  • Navigate to the directory where you saved the GApps and other files.
  • And select the GApps file.
  • Finally, swipe the bar towards the right end, that says, ‘Swipe to Confirm Flash’

Flash Magisk (Optional)

This step is optional, if you want root access to your smartphone, then only flash magisk file otherwise you can skip this process.

  • After flashing the GApps file, go back to the recovery homepage by using the navigation keys.
  • Now, you are on the homepage,
  • Then, click on the Install button, it will open the file explorer.
  • Navigate to the directory where you saved the Magisk Zip and other files.
  • And select the Magisk Zip file.
  • Finally, swipe the bar towards the right end, that says, ‘Swipe to Confirm Flash’
Flash Custom ROM

General FAQs

  • Will it void my warranty?

    Yes, for most smartphones, you will void the warranty. But in case you are using a Xiaomi device then you are safe here, your warranty will not be void.

  • Will I lose my personal data?

    The data will be wiped in the bootloader unlocking process, so in case, your device’s bootloader is already unlock then you will not lose any of your personal data.

  • Is it safe to flash Custom ROM?

    It is absolutely safe but the process of flashing custom ROM involves unlocking bootloader which can be an open door to malicious files.

  • Will I be able to use all payment applications?

    At first you will not be able to use it if you have rooted the system, but by using Magisk Hide feature you can use those applications without any issues. For doing that you will have to install the Magisk Apk file.

Final Verdict

That was it. We have successfully learned from scratch how to flash custom ROM on Android device. Go through the each steps carefully and flash as many custom ROMs you want.

In case, you didn’t understand any step, or you have another doubt regarding this article, anything else regarding rooting and flashing ROMs, then feel free to comment down below.

Leave a Comment
Related Topics
Notify of
Inline Feedbacks
View all comments