How to Install a Custom ROM with TWRP Recovery
In this article
Installing a custom ROM replaces your phone's stock operating system with an alternative version, often giving you a cleaner interface, newer Android updates, or extra features. The process is done through TWRP (Team Win Recovery Project), a custom recovery that lets you flash ZIP files. Before starting, you must unlock your phone's bootloader and install TWRP itself—those steps are not covered here. Also, this process wipes all data on your device, so back up anything important first.
What You'll Need
- A phone with an unlocked bootloader and TWRP recovery already installed.
- A custom ROM ZIP file compatible with your exact phone model, downloaded from a trusted source (like XDA Developers).
- Optional: Google Apps (GApps) ZIP if the ROM doesn't include them—most custom ROMs require a separate GApps package.
- Optional: Magisk ZIP if you want root access.
- A USB cable and a computer with ADB and Fastboot tools installed (for transferring files and issuing commands).
- Sufficient battery charge (at least 70%) to avoid shutdown during flashing.
Step-by-Step
- Back up your data. This process wipes your phone. Copy photos, documents, and other files to a computer or cloud. Use an app like Titanium Backup or Swift Backup to save app data if you want to restore it later.
- Transfer the ROM and GApps ZIP files to your phone. Connect your phone to your computer via USB. Copy the ZIP files to the phone's internal storage or an SD card. Make sure you know the exact filenames and paths.
- Boot into TWRP recovery. Turn off your phone. Then press and hold the Volume Up + Power buttons simultaneously (the key combination varies by manufacturer—check your device's specific combo). You should see the TWRP home screen.
- Create a Nandroid backup (recommended). In TWRP, tap Backup. Select the partitions you want (at least System, Data, and Boot), choose a storage location (usually internal storage or SD card), and swipe to back up. This creates a full snapshot you can restore if something goes wrong.
- Wipe the current system. Go to Wipe and then Advanced Wipe. Select Dalvik/ART Cache, System, Data, and Cache. Do not select Internal Storage unless you want to erase your files. Swipe to wipe. This clears the old OS and prepares for a clean install.
- Flash the custom ROM. Go back to the TWRP home screen and tap Install. Navigate to the ROM ZIP file you transferred earlier. Tap it, then swipe to confirm the flash. Wait for the process to finish—it can take a few minutes.
- Flash GApps (if needed). After the ROM installs, tap Install again and select the GApps ZIP file. Swipe to flash it. Do this immediately after the ROM, before rebooting, to avoid compatibility issues.
- Optional: Flash Magisk. If you want root, flash the Magisk ZIP the same way. Do this after GApps.
- Wipe cache/dalvik again. After flashing all ZIPs, go to Wipe and wipe Dalvik/ART Cache and Cache one more time. This helps avoid boot loops.
- Reboot the system. Tap Reboot and then System. The first boot can take 5–10 minutes—be patient. If it takes longer than 15 minutes, you may have a problem (see Troubleshooting).
Common Mistakes
- Flashing a ROM meant for a different device model—this can brick your phone. Always verify the ROM is for your exact model number.
- Skipping the data wipe. Flashing a new ROM over the old one without wiping often causes crashes and boot loops.
- Forgetting to flash GApps. Many ROMs don't include Google apps, so you'll have no Play Store or Google services.
- Using an outdated or incompatible TWRP version. Always use the latest TWRP for your device.
- Interrupting the flash process (e.g., unplugging the phone or pulling the battery). This can corrupt the system.
Tips
- Read the ROM's official thread on XDA Developers for specific instructions and known issues. Each ROM may have unique requirements.
- Keep your Nandroid backup on an external SD card or transfer it to your computer after creating it—if your phone becomes unbootable, you can still restore it from recovery.
- Use a high-quality USB cable and keep the phone plugged in during the process if possible, though not strictly necessary.
- After first boot, give the ROM a few minutes to settle before you start installing apps. Some initial lag is normal.
- If you're new to this, start with a popular, stable ROM rather than a beta or nightly build.
Troubleshooting
Boot loop (phone restarts repeatedly or stays on the logo). This usually means the ROM and GApps are incompatible, or you skipped a wipe. Reboot into TWRP, wipe Dalvik/ART Cache and Cache, and try rebooting again. If it still loops, wipe Data and reflash the ROM and GApps. If that fails, restore your Nandroid backup.
Phone gets stuck on the boot screen for over 15 minutes. Wait a bit longer—first boots can be slow. If it's still stuck, force reboot into TWRP by holding the key combo. Then wipe cache and dalvik again. If that doesn't help, reflash the ROM without GApps to see if GApps is the problem.
No Wi-Fi, mobile data, or Bluetooth. This often means the ROM doesn't include the correct firmware or radio drivers for your device. Check the ROM's thread for a required firmware version and flash it via TWRP (if provided) or via Fastboot.
Google Play Services keeps crashing. This usually happens when GApps version doesn't match the Android version of the ROM. Reboot to TWRP, wipe data, and reflash the ROM with the correct GApps package (e.g., Android 13 GApps for an Android 13 ROM).
Can't boot into TWRP after flashing. Some ROMs overwrite recovery. You may need to reflash TWRP using Fastboot: boot into bootloader mode, then run fastboot flash recovery twrp.img.
If all else fails: Restore your Nandroid backup from TWRP. If you don't have one, download the stock firmware for your device and flash it using the manufacturer's official tool (e.g., Odin for Samsung, Mi Flash for Xiaomi). This will return your phone to factory state.
Frequently Asked Questions
Will installing a custom ROM void my warranty?
Yes, in most cases. Unlocking the bootloader and flashing custom software typically voids the manufacturer's warranty. Some brands allow relocking the bootloader, but that doesn't always restore warranty.
Can I go back to the stock ROM after installing a custom ROM?
Yes. You can restore a Nandroid backup if you made one, or flash the official stock firmware using the manufacturer's flashing tool. This will erase all data and return the phone to its original state.
Do I need to root my phone to install a custom ROM?
No. Rooting is separate. TWRP and an unlocked bootloader are required, but you don't need root. You can flash Magisk later if you want root.
Will I still receive OTA updates?
No. Custom ROMs do not receive over-the-air updates from the phone manufacturer. You'll need to manually download and flash new versions of the ROM when they are released.
Is it safe to install a custom ROM?
It's generally safe if you follow instructions carefully and use a ROM designed for your exact device. There's always a small risk of bricking if you flash wrong files or interrupt the process. Always back up first.
Can I use banking apps after installing a custom ROM?
Often yes, but some banking apps detect custom ROMs or unlocked bootloaders and refuse to run. You may need to hide root with Magisk's MagiskHide or use a ROM that passes SafetyNet (though this is becoming harder). No guarantee.