How to Install a Custom ROM
Now you have everything ready to install a custom ROM, we can begin the process.
Step 0: Back up your data
There’s one more thing you need to do before starting the installation though, and that’s to make a backup of all your data. We have a detailed guide to help you back up every aspect of your phone’s data so make sure you do that so it’s easy to restore your data once you install a new ROM.
Step 1: Downloading the correct ROM
As we mentioned earlier, the best way to do this is to head over to the XDA Forums for your device and look for a ROM that best suits your needs. Custom ROMs are device-specific so download a ROM that’s made specifically for your device. Also, there can be multiple variants of the same device based on carrier, region, etc. so keep this in mind too. Locate the appropriate custom ROM for your exact device. If you’re not sure, ask about compatibility in the XDA Forums.
Once you’ve found the ROM you want to install, download the zip file either on your computer or on your phone. Note that you will need to data wipe your phone in some of the later steps, so it is advisable to do the file transfer later on, after the data wipe — but ensure that your phone can connect to your computer and can receive files, just to be clear that your device drivers are in place. Later on, you will need to copy the ROM file to the root of your phone’s internal storage. Don’t extract the zip file.
Step 2: Downloading GApps or Google Apps
Custom ROMs do not come with Google’s apps and services pre-installed (with the exception of a few). So if you want to be able to sign in with your Google account and use Google’s services like Sync, Play Store, Gmail, Drive, etc., you’ll need to install a separate GApps package. There are multiple variants of GApps you can install. You can refer to our guide on finding the right Gapps package for you and download one that’s appropriate for you. This will also be in the form of a zip file. Download and transfer it to your phone’s internal storage. You can also install them right from your PC/Mac if you opt for the adb sideload method.
Note: Some custom ROMs like Pixel Experience come with GApps pre-installed. In such cases, you don’t have to flash the GApps file separately.
Step 3: Booting into TWRP
Once you’ve copied the ROM and GApps files to your phone’s internal memory, it’s time to boot into TWRP to flash the files. If you’re not familiar with booting into recovery mode on your phone, we have a guide telling you how to boot into recovery on your phone so you can follow that to boot into TWRP. Once you’re in TWRP, there are a few things you need to do before installing the ROM which we’ll go over in the next step.
Step 4: Installing the Custom ROM
Once you’re in TWRP, it’s a good idea to take a nandroid backup of your entire system before proceeding further. This can be useful in case you end up with a failed installation. You’ll be able to boot into TWRP and restore the backup to go back to the previous state of your device.
To do this, select the Backup option in TWRP and select Boot, System Image, Data, Modem, and EFS, and then Swipe to backup. Wait till it’s done.
This step will wipe your entire phone: Go back to the main menu of TWRP and select Wipe. Then, Swipe to Factory Reset. Select the Format Data option and type in ‘yes’ and select the tick mark to format your phone. Note that formatting the /data partition will need you to reboot once so that TWRP can properly identify the newly created file system.
Moreover, since the internal memory of the device is wiped during formatting, you must copy the ROM and GApps files once again to your phone’s storage.
You can do this from within TWRP itself. Head over to the Mount section and select the Enable MTP option.
Now, connect your phone to your PC and it should be detected as a storage device. Transfer the ROM and gapps files.
Once done, go back to the main menu on TWRP and select Install. Browse to the location where you saved the ROM and GApps files. First, select the ROM and Swipe to Install it.
Head back to the previous menu and select the GApps file. Install that as well. Once the installation is complete, select Reboot to System.
If your installation does not boot with this sequence of steps, you may need to flash/install the ROM, reboot back into recovery, and then flash the GApps file. This additional reboot is needed in some cases.
You now have a custom Android ROM installed on your phone! Wait for your phone to boot up. It may take a while for the initial boot process so don’t panic, your phone will boot into the setup process.