Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Install a Custom ROM on a Samsung Galaxy

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Installing a custom ROM replaces Samsung's One UI with a different version of Android, giving you a cleaner interface, newer Android versions on older devices, or extra features. It also voids your warranty and carries a small risk of bricking your phone. You'll need an unlocked bootloader, a PC, and a willingness to follow steps carefully. This guide covers the general process for most Samsung Galaxy models using Odin (for Samsung) and a custom recovery like TWRP.

What You'll Need

  • A Samsung Galaxy phone with an unlocked bootloader (see Step 1).
  • A Windows PC (Odin does not work on Mac or Linux natively).
  • Odin flashing tool (download from a trusted source like XDA Developers).
  • Samsung USB drivers installed on your PC.
  • A custom recovery image (e.g., TWRP) for your exact model.
  • The custom ROM zip file (downloaded from the developer's official page or XDA).
  • Optional: Google Apps (GApps) package if the ROM doesn't include them.
  • USB cable (preferably the original).
  • Backup of your data (photos, contacts, etc.) – flashing wipes everything.

Step-by-Step

  1. Unlock the bootloader. Go to Settings > About Phone and tap 'Build number' 7 times to enable Developer Options. Then go to Settings > Developer Options and enable 'OEM unlocking'. Power off the phone, then press and hold Volume Up + Volume Down and plug it into the PC to enter Download Mode. Press Volume Up to confirm unlocking. This wipes your phone, so back up first. Note: On some carriers (e.g., Verizon, AT&T), the bootloader is permanently locked and cannot be unlocked.
  2. Install Samsung USB drivers. Download and install the official Samsung USB driver package on your PC. Restart your PC after installation.
  3. Download Odin and the custom recovery. Get the latest Odin (e.g., Odin 3.14) from a reputable source like XDA. Also download the TWRP image file (usually a .tar or .img) specifically for your Galaxy model (e.g., SM-G975F).
  4. Boot into Download Mode. Power off your phone. Press and hold Volume Down + Home (if your phone has a physical home button) or Volume Down + Bixby (for newer models), then press and hold Power. When the warning screen appears, press Volume Up to continue.
  5. Flash TWRP with Odin. Open Odin on your PC. Connect your phone via USB. Odin should show a blue or yellow COM port box. Click the 'AP' button and select the TWRP .tar file. Make sure only 'Auto Reboot' and 'F. Reset Time' are checked (uncheck 'Re-Partition'). Click 'Start'. When it finishes, your phone will reboot. Immediately hold Volume Up + Home + Power (or Volume Up + Bixby + Power) to boot into recovery before the system starts, or you'll lose TWRP.
  6. Backup your current ROM (optional but recommended). In TWRP, tap 'Backup', select 'Boot', 'System', and 'Data', and swipe to back up. This creates a safety net.
  7. Wipe data and cache. In TWRP, tap 'Wipe', then 'Format Data' and type 'yes' to confirm. This removes encryption and all data. Then go to 'Advanced Wipe' and wipe Dalvik/ART Cache, System, and Cache. Do not wipe Internal Storage unless you want to clean everything.
  8. Transfer the ROM and GApps to your phone. While in TWRP, connect your phone to the PC via USB. On your PC, your phone should appear as a drive. Copy the ROM zip and GApps zip (if needed) to the phone's internal storage. If you can't see the drive, use 'adb push' from the command line: adb push rom.zip /sdcard/.
  9. Install the ROM. In TWRP, tap 'Install', navigate to the ROM zip, select it, and swipe to flash. After it finishes, if you have GApps, flash that zip the same way. Then tap 'Wipe cache/dalvik' and reboot.
  10. First boot. The first boot can take 5–10 minutes. Do not interrupt it. If it boots to the setup wizard, you're done. If you get stuck in a boot loop, see Troubleshooting.

Common Mistakes

  • Using a TWRP or ROM for the wrong model number – always verify your exact model in Settings > About Phone.
  • Forgetting to unlock the bootloader before flashing – this causes Odin to fail.
  • Flashing TWRP but not booting into recovery immediately – the stock system overwrites TWRP on reboot.
  • Not wiping data before installing the ROM – this causes boot loops and force closes.
  • Downloading ROMs from unofficial or shady sites – stick to XDA or the developer's own page.
  • Using a USB port that is not directly on the PC – use a rear port and avoid hubs.

Tips

  • Always read the specific thread for your device on XDA – developers often include model-specific instructions.
  • Keep your battery above 70% before starting – a power loss during flashing can brick the phone.
  • Use a high-quality USB cable – a loose connection can cause Odin to fail.
  • After flashing, let the ROM settle for a day before judging battery life.
  • If you want to go back to stock, download the official firmware from SamMobile or Frija and flash it with Odin in the same way.

Troubleshooting

Odin fails with 'FAIL!' or 'Re-Partition error'. Re-download the TWRP file, ensure it's for your exact model, and try a different USB port or cable. Also, make sure you're using the latest Odin version.

Phone stuck in a boot loop (repeats logo). Boot into TWRP (Volume Up + Home + Power) and wipe data/cache again, then re-flash the ROM. If that fails, restore your backup from TWRP if you made one.

TWRP is not sticking after reboot. You likely didn't boot into recovery fast enough. Re-flash TWRP with Odin, then immediately hold the key combo to enter recovery before the system boots.

Phone won't boot at all (black screen). Try holding Power for 10 seconds to force restart. If that fails, boot into Download Mode (Volume Down + Home + Power) and re-flash the stock firmware via Odin to recover.

No Wi-Fi or mobile data after flashing. Some ROMs require a separate modem or bootloader update. Check the ROM's XDA thread for additional firmware files.

Google Play services keep crashing. You likely forgot to flash GApps or flashed the wrong version. Re-flash the correct GApps for your Android version (e.g., Android 13).

Frequently Asked Questions

Will installing a custom ROM void my warranty?

Yes, it voids the warranty because it involves unlocking the bootloader and modifying the system. You can often restore the stock firmware to re-lock the bootloader, but some carriers may still detect the modification.

Can I install a custom ROM without a PC?

No, you need a PC with Odin to flash the custom recovery (TWRP) first. Once TWRP is installed, you can flash ROMs directly from the phone, but the initial step requires a PC.

Will I lose all my data?

Yes, unlocking the bootloader and flashing a ROM wipes your phone. Always back up your photos, contacts, and files to a cloud service or your PC before starting.

What is the difference between a custom ROM and the stock firmware?

Stock firmware is the official Samsung software with One UI. A custom ROM is a modified version of Android, often based on stock or AOSP, that removes bloatware, adds features, or updates the Android version.

Can I go back to the original Samsung software?

Yes, you can download the official firmware for your model from sites like SamMobile and flash it with Odin. This will restore the stock system, but the bootloader unlock may still be detected depending on the model.

Is it safe to install a custom ROM?

It's generally safe if you follow instructions carefully, but there's always a risk of bricking your phone if you make a mistake. Sticking to well-known ROMs and following the XDA thread for your device minimizes risk.