PDF download Download Article
A comprehensive guide to custom Android ROMs
PDF download Download Article

A custom ROM changes the way the Android looks and operates, breathing new life into your old phone or tablet. Installing a custom ROM is an advanced procedure, and you risk rendering your Android device inoperable and voiding your warranty.

Using a Custom Android ROM

  • Begin by enabling USB debugging on your Android.
  • Install a custom recovery like TWRP on your Android using Fastboot ABD, then copy the ROM and Gapps into the root directory.
  • Boot your phone into recovery mode, use TWRP to back up your device, and install the ROM and Gapps.
Part 1
Part 1 of 9:

Before You Begin

PDF download Download Article
  1. Depending on your Android model, you may be able to unlock the bootloader with the manufacturer's help. Not all manufacturers allow this; even if they do, not all models may be supported.
    • To see which models your manufacturer allows to be unlocked, search "[manufacturer's name] unlock bootloader" (e.g., "HTC unlock bootloader"). This will typically display the manufacturer's bootloader website as the first result.
  2. Even if the device manufacturer allows unlocking the bootloader, your carrier may not allow it. Contact your cellular provider's customer service and ask if they allow you to unlock the bootloader.
    Advertisement
  3. Several risks are involved with unlocking your bootloader and installing a custom ROM:
    • Void your warranty: Unlocking the bootloader voids any warranty on your device, and you will lose support from the manufacturer.
    • Hardware and software issues: Certain features may not work properly or may not work as well, and some apps may not be able to run.
    • Security risks: Many custom ROMs do not allow the same level of encryption that the manufacturer's ROM allows. Installing custom ROMs may make you more susceptible to malware, viruses, and security breaches. [1]
    • Data loss: During installation, you may lose the data on your phone. Be sure to back up all data you want to keep before proceeding.
    • You may brick your phone: In the worst-case scenario, installing a custom ROM may cause permanent damage to your phone and render it inoperable and unable to boot up.
  4. Advertisement
Part 2
Part 2 of 9:

Enabling USB Debugging

PDF download Download Article
  1. To do so, swipe down from the top of the screen and tap the gear icon in the upper-right corner.
  2. It's usually near the bottom of the Settings menu.
  3. This will enable the Developer Options menu.
    • "Build number" may be under "Software Information" on some phone models.
  4. Press the back arrow to return to the previous menu and tap the newly created "Developer Options" menu.
  5. Not all phones will display this option, and it is only necessary if it is there.
  6. This allows you to send commands to your Android through ADB.
  7. Advertisement
Part 3
Part 3 of 9:

Installing Platform Tools

PDF download Download Article
  1. You'll need a few utilities on your computer to unlock your bootloader.
    • Visit the [hhttps://developer.android.com/tools/releases/platform-tools Android developer website].
    • Scroll down and click the download for your operating system.
    • Scroll down and click the checkbox to agree to the terms of service.
    • Click Download Android SDK Platform Tools .
  2. Double-click the ZIP file after you've placed it in its folder and click the "Extract" option to extract the contents of the ZIP file . There should be a folder called "cmdline-tools" in the zip file. Place that folder in any location on your hard drive.
  3. You can find these on your device's manufacturer's support page.
  4. You can use the charger that came with your phone and connect it to a free USB port on your computer.
  5. It's inside the folder that was created when you extracted the zip file you downloaded.
  6. To do so, click the address bar at the top, type "cmd", and press Enter .
  7. You should see your device's serial number.
  8. Advertisement
Part 4
Part 4 of 9:

Unlocking the Bootloader

PDF download Download Article
  1. You can use the charger that came with your phone and connect it to a free USB port on your computer.
  2. The following process will vary depending on your phone manufacturer. Be sure to follow the instructions they provide exactly. What follows here is a general guide.
  3. The process for this will vary depending on your device, but generally, you'll need to turn off your phone and then hold Power and Volume Down for 10 seconds.
  4. This command is different for every manufacturer. For example, for HTC, you would type fastboot oem get_identifier_token .
    • Make sure your Android device is still connected to your computer and that the Command Prompt window is open from the platform-tools folder.
  5. You'll see a long code appear on the screen, which may be broken into several lines. Copy the entire code.
  6. Use the bootloader unlock code request form to submit and request your unlock code. This can take a week or two, depending on the manufacturer.
  7. When you receive your unlock code, you'll be given the command to apply it to your device. This command varies depending on the manufacturer. Your Android must be connected to your computer and in fastboot mode.
    • For Nexus devices, run fastboot oem unlock , or fastboot flashing unlock for the Nexus 5X and newer.
    • The command for your manufacturer may be different. For example, HTC users would type fastboot oem unlocktoken Unlock_code.bin after placing the Unlock_code.bin file received from HTC into the ADB folder.
  8. You may be prompted by your phone to confirm the unlock.
  9. This command will reboot your device and exit fastboot mode.
  10. You'll see this message every time you turn on your device as a security measure. Make sure your device boots completely into the Android operating system as normal. You're now ready to install a custom recovery.
  11. If your manufacturer or carrier will not allow you to unlock the bootloader, your only other option is to find and use an exploit to bypass it. This process is different for every phone model, and some phones cannot be unlocked at all.
    • The best place to start is the XDA Forums . Find your phone model and look for any bootloader unlocks released by the community.
    • When performing an unlock using an exploit, follow every step in the XDA thread exactly, as the risk of bricking your device increases dramatically when not using official methods.
  12. Advertisement
Part 5
Part 5 of 9:

Installing a Custom Recovery

PDF download Download Article
  1. Visit the TWRP website . This guide will cover installing TeamWinRecoveryProject (TWRP), one of the more popular recovery methods for Android ROMs. [2]
    • Another popular recovery is ClockworkMod Recovery (CWM) . Both should work for installing most ROMs, though some will require a specific recovery environment.
  2. It's in the upper-right corner of the web page.
  3. If your device is not on this list, try a different recovery environment like CWM.
    • Note that while your device might be supported, your carrier or region may not.
  4. This will display more details for your specific device.
  5. This will download TWRP in IMG format to your computer.
  6. Place it in the same location as your ADB binary files. This will allow you to transfer it to your phone using ADB in the Command Prompt.
  7. This will make it easy to enter the name during the transfer.
  8. If you don't still have the Command Prompt open, hold Shift and right-click in the open platform-tools folder. Select "Open command window here."
  9. This will copy the TWRP image file to your Android device and replace your current recovery environment with it.
  10. This will reboot your Android device.
  11. Advertisement
Part 6
Part 6 of 9:

Creating a Backup

PDF download Download Article
  1. This will enter recovery mode in most devices.
    • Some devices may have a different button combination for entering recovery mode. Perform a web search for " model recovery mode."
  2. This will allow TWRP to access your encrypted device, which is essential for creating backups.
  3. This will create a full system backup, allowing you to restore your device if something goes wrong. Use the following steps to create a backup:
    • Tap Backup .
    • Tap Boot .
    • Tap System .
    • Tap Data' .
    • Swipe the bar to begin the backup.
  4. Tap the back arrow until you return to the Backup menu.
  5. This will have different names depending on your device (PDS, EFS, WiMAX, etc.), and your device may not have anything listed here.
  6. This will back up your IMEI information, which will be essential for restoring connectivity if you break something later.
  7. Advertisement
Part 7
Part 7 of 9:

Finding a ROM

PDF download Download Article
  1. Visit the XDA forums . The XDA forums are the most popular Android development community on the internet, and you'll find virtually every available ROM here.
  2. You'll see popular devices listed on the main page, or you can use the search bar to find your specific model.
    • Make sure your model matches both your device and your carrier. The same device on two carriers will have two different model numbers, and you'll need a ROM matching your exact model.
  3. It's at the top of the page. This filters development forums.
  4. Threads that have a ROM for download will generally say "[ROM]" in the thread title. The number of ROMs available for your device heavily depends on its popularity. Some devices may only have one or two ROMs to choose from, while others may have dozens. Some devices don't have any ROMs available, but these are usually devices that don't have unlockable bootloaders.
    • Different ROMs can accomplish different things. Some ROMs are designed to be as barebones as possible for maximum performance, while others will add a bunch of features that aren't normally available on your device.
  5. ROMs often add new features but also have limitations that may not have been present on your original device. Make sure that you will be OK with the feature set of your new ROM.
  6. Many ROMs will have special instructions you must follow during installation. It is imperative that you follow the author's instructions exactly , or you may encounter serious problems.
  7. This will begin downloading the ROM file, usually in ZIP form. ROMs may be large, and the file could take a while to download.
  8. Advertisement
Part 8
Part 8 of 9:

Download GApps

PDF download Download Article
  1. Visit the GApps download site . This site lets you download Googe's proprietary apps like Gmail and the Play Store since ROMs cannot legally include them.
  2. You'll need to select your device's architecture (platform), operating system version, and the variant you want.
    • If you don't know your device's platform, you should be able to find it on the XDA Forum's device information page for your device.
    • Make sure the OS version matches the ROM you are installing, not your current version.
    • Most users can select Stock as the variant, including all the default GApps.
  3. This will begin downloading your selected GApps package. You should now have two ZIP files: your chosen ROM and the GApps file.
  4. Advertisement
Part 9
Part 9 of 9:

Installing the ROM

PDF download Download Article
  1. If it isn't already, you'll need to connect your Android to your computer via USB to transfer the files onto the device's storage.
  2. You can transfer the files to your Android's internal storage or the SD card if you have one inserted.
  3. You can click and drag them to your device's storage. Make sure they are placed in the base directory for either the internal storage or the SD card (don't put them in folders).
  4. Disconnect the USB cord from your Android phone after the files finish transferring.
  5. You'll need to open Recovery mode, which you'll do from the powered-off state.
  6. This process will vary depending on your device, so perform a web search if you aren't sure. Generally, you'll hold Power and Volume Down until the recovery menu appears. You'll know you're in the right place when you see TWRP.
  7. It is always recommended that you wipe your device before installing a new ROM. This will delete all of the data on the device.
  8. The reset process will only take a few moments.
  9. It's in the upper right corner.
  10. Make sure to start with the ROM, not the GApps file.
  11. The ROM file will begin installing, which may take several minutes to complete.
  12. Now you'll be installing the GApps file
  13. It should be in the installation menu.
  14. The GApps installation will begin, which may take as long or longer than the ROM installation.
  15. This will clear the cache, which is necessary for starting the ROM the first time.
  16. Your Android device will reboot, and if everything went smoothly, you'll load your ROM's home screen environment.
    • It may take a long time for your new ROM to boot. This should only happen the first time you boot it up.
  17. Advertisement

Community Q&A

Search
Add New Question
  • Question
    I have a Huawei Ascend Y250. When I try to install Lollipop ROM, it shows an error, then aborts. What am I doing wrong?
    Community Answer
    This can occur if your phone is not rooted. You can use Kingroot or other root apps.
  • Question
    What if I have already downloaded the ROM?
    Akash Sawarkar
    Community Answer
    Switch off your phone and reboot it into recovery mode by pressing 'vol+' or 'vol-' and power button at the same time. If the Android logo appears on the screen, leave the buttons and you will see you are in recovery mode. In recovery mode, click on update from SD card / storage and select the downloaded ROM from your storage. It will start flashing the file and the device will be updated.
  • Question
    I'm about to buy AsusROG phone 2 and I want a custom ROM. But I am scared if my armory crate (a specific app on rog phones) will be deleted.
    Community Answer
    Armory crate will be removed if you install a custom rom. But you can just download the app from the play store again, so don't worry.
See more answers
Ask a Question
      Advertisement

      Video

      Tips

      • There are device-specific methods that are significantly different than the steps outlined above. Read all instructions for unlocking your device's bootloader and flashing a ROM.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Performing a step incorrectly or out of order can permanently brick your device. Always read all of your device-specific instructions carefully before proceeding.
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 288,265 times.

      Is this article up to date?

      Advertisement