Skip to main content

Free Shipping on Domestic Orders $75+

How to install a different operating system on an Android Phone

Views: 290K

View statistics:

Past 24 Hours:
146
Past 7 Days:
1,029
Past 30 Days:
4,805
All Time:
290,180
Comments: 62

55 comments on steps, 7 guide comments.

Go to guide comments
Completed: 76

76 people have marked this guide "completed." Will you be next?

Favorites: 11

11 people have favorited (and subscribed to) this guide. Will you be next?

Time Required: 15 minutes - 1 hour
Difficulty: Moderate
Community-Contributed Guide

An awesome member of our community made this guide. It was not created by iFixit staff.

Bullets!

Better coordination with markups and the color/type of bullets will help make this guide more clear!

How to install a different operating system on an Android Phone

Introduction

Go to step 1 ↓

A custom ROM (aka aftermarket firmware) is a modified version of an existing operating system, that is not officially supported by the manufacturer of a device. Some custom ROMs are based on existing mobile OSs, like Android, and some are based on PC operating systems, such as Manjaro or Ubuntu. They’re different from devices that use stock firmware in that they can offer features and enhancements not found in stock versions of Android, do not contain bloatware, and do not depend on the devices manufacturer for software updates.

The most popular custom ROMs include LineageOS, LineageOS for microG, Paranoid Android, ProtonAOSP, GrapheneOS and CalyxOS.

Some custom ROMs, like GrapheneOS and ProtonAOSP, offer a WebUSB-based installer that is easier to use for most users, but in this guide, I will be covering the command-line based installation as it is the more traditional and universal approach to installing custom ROMs.

Warnings

  • Unlocking the bootloader will reset your phone, so make sure you have all your data backed up!
  • This process may void your warranty with some manufacturers.
  • A modified device will trip the Play Integrity API (formerly SafetyNet Attestation API) which can cause some services like GPay to stop working.
  • This will make your device vulnerable against hackers with physical access to your device, so do not unlock the bootloader on a device that you intend to carry state/company secrets on.
  • Flashing a custom ROM can be risky and may cause unexpected issues or even brick your device. It is recommended to only flash a custom ROM if you are experienced with Android.
  • Always use caution and read the instructions carefully when unlocking your device's bootloader or flashing a custom ROM. Improperly following the steps can cause irreversible damage to your device.
  • Before flashing a custom ROM, make sure it is compatible with your device and check for any known issues or bugs reported by other users.
  • If you encounter any issues during the unlocking or flashing process, do not hesitate to seek help from experienced users on forums or support channels provided by the custom ROM developer.
    1. How to install a different operating system on an Android Phone, Finding the Build Number: step 1, image 1 of 3 How to install a different operating system on an Android Phone, Finding the Build Number: step 1, image 2 of 3 How to install a different operating system on an Android Phone, Finding the Build Number: step 1, image 3 of 3
      • First, we need to find the Build Number.

      • Usually you can find it under About Phone > Build Number or System > About Phone > Build Number, but since it varies from device to device using the search function is usually the easiest way.

      Ask FixBot

      Add Comment

    2. How to install a different operating system on an Android Phone, Unlocking developer options: step 2, image 1 of 2 How to install a different operating system on an Android Phone, Unlocking developer options: step 2, image 2 of 2
      • Now you just need to tap the Build number repeatedly, until you get a confirmation message saying "You are now a developer!". I already enabled developer options on my device, so I don’t need to do it again.

      • You might be prompted to enter your lock screen password, if you have one set up.

      Ask FixBot

      Add Comment

    1. How to install a different operating system on an Android Phone, Allowing OEM unlocking: step 3, image 1 of 1
      • In the developer options, find the OEM unlocking option and enable it.

      • You might be prompted to enter your lock screen password, if you have one set up.

      Ask FixBot

      Add Comment

    2. How to install a different operating system on an Android Phone, Enable USB debugging: step 4, image 1 of 1
      • In the developer options, find the USB debugging option and enable it.

      Ask FixBot

      Add Comment

    3. How to install a different operating system on an Android Phone, Connect your phone to your computer: step 5, image 1 of 2 How to install a different operating system on an Android Phone, Connect your phone to your computer: step 5, image 2 of 2
      • Plug your phone into your computer via a USB-C to USB-A Cable.

      • If you have a bad cable you might encounter some problems. Some older devices also dislike USB 3 in fastboot mode.

      • Pull down the notification shade and select Charging this device via USB.

      • Select the option File transfer/Android Auto.

      • On some older devices this option might be called MTP instead.

      Ask FixBot

      Add Comment

    4. How to install a different operating system on an Android Phone, Allowing your computer to run ADB commands on your device: step 6, image 1 of 2 How to install a different operating system on an Android Phone, Allowing your computer to run ADB commands on your device: step 6, image 2 of 2
      • Open the terminal application on your computer with the SDK Platform Tools installed and enter adb devices

      • This should trigger a popup on your device. Make sure to have the checkmark ticked and click Allow.

      • I haven’t added the platform-tools-folder to PATH. That’s why I need to open my terminal window in the platform-tools-folder and enter .\ as a prefix to my commands.

      • You can run the command again to check if it worked. It should now say device instead of unauthorized.

      Ask FixBot

      Add Comment

    5. How to install a different operating system on an Android Phone, Unlocking the bootloader: step 7, image 1 of 1
      • Enter the command adb reboot bootloader

      • Wait a couple seconds until your device rebooted into the bootloader, then enter the command fastboot flashing unlock

      • Some devices might use the command fastboot oem unlock instead.

      • If you receive an error message along the lines of FAILED (remote: 'Failed to unlock, decrypt failed!'), your phone has a locked bootloader and needs an unlock code from the manufacturer.

      • If you're stuck at < waiting for any device > and have already confirmed that your connection is stable, you may need to update your phone's USB driver.

      • You should now see a prompt similar to the one shown in the picture. Use the volume rocker to choose the Unlock the bootloader-option and confirm by pressing the power button.

      Ask FixBot

      Add Comment

    1. How to install a different operating system on an Android Phone, Boot into the bootloader: step 8, image 1 of 1
      • If your device rebooted after unlocking the bootloader, boot into the bootloader again by pressing and holding the power- and volume-down-button until the device has rebooted into the bootloader.

      Ask FixBot

      Add Comment

      • Download the TWRP Recovery for your device or the recovery that came with your custom ROM.

      • Enter the command fastboot boot [directory]\[filenameOfTheRecovery].img and wait until your device has rebooted into recovery mode.

      • On some devices you might need to enter the command fastboot flash boot [directory]\[filenameOfTheRecovery].img and fastboot reboot recovery instead.

      Ask FixBot

      Add Comment

      • On TWRP press Advanced > ADB sideload

      • With other recoveries, like the LineageOS recovery, the option might be similar to Apply Update > Apply Update from ADB

      Ask FixBot

      Add Comment

      • Download the OS image for the custom rom you want to install.

      • Enter the command adb sideload [directory]\[filenameOfTheOsImage].zip

      Ask FixBot

      Add Comment

      • You only need to do this if you want/need to use Google services and your OS image does not already include GApps.

      • This will not work if you already rebooted your device.

      Ask FixBot

      Add Comment

      • Download the GApps package you want to install.

      • Repeat step 10 to reenable ADB sideload.

      • Enter the command adb sideload [directory]\[filenameOfTheAppsPackage].zip

      • If the script tells you that the API level does not match even though you are using the correct GApps package for your version, you can typically resolve this by rebooting into recovery.

      • Do not boot into the system before flashing all the extra packages you want to install.

      • Some recoveries might tell you that verification failed. You can ignore this and continue anyways.

      • For some devices you might run into space problems. You can typically resolve these problems by choosing a smaller GApps package and later installing what you need through the Play Store.

      Ask FixBot

      Add Comment

      • This might take some time, but as long as the phone is not boot looping (repeatedly rebooting), everything should be fine.

      • If it didn’t work, you can just try again, starting from step 8.

      Ask FixBot

      Add Comment

Conclusion

To restore your device to its factory condition, follow these instructions with an OS image provided by your device manufacturer.

Cancel: I did not complete this guide.

76 other people completed this guide.

Sebastian

Member since: 08/19/18

33,719 Reputation

72 Guides authored

7 Guide Comments

The problem is you need the exact customt TWRP recovery AND exact install .zip for the model number. There is no unversal twrp file or universal android, or utbuntu. Each manufacturer, model, useds a 'custom twrp file. and unique identifier for android 'custom' rom even for android itself.

if you install wrong file not for the particular device, it won't work and you need to customized or find the exact model rom known as custom rom. even if the phone is running android. you can only flash the manfucturere rom for that device. or c ustomized it yourself

oem unlocking just means you can FLASH it. most devices now have oem locked and you cannot flash anything on it. improperly flashing wrong rom can brick the device and if there is no custom rom for download, there is nothing you can do. you have make one for yourself which needs the manufacturers drivers etc.

Nexus Nexus - Reply Share

And you notice there is no technical support about flashing your old tablets or phones from the manufacturere to download and firmware. or download section. Because they don't want people to be flashing and old phone or tablet. You neeed both custom recovery plus 'custom' rom for that operating system to work. and that .zip files is from manufacturer. most people dont have the tech ability to make custom roms or custom android for their device and with so many models and very little demand it's not worth making it.you see droid kits which only works on samsung phones or tablets and they have downloads to reflash it is BRICKED.

Nexus Nexus - Reply Share

Please 🙏 make a video on it I didn't really understand from step 7.

Achiever Fua - Reply Share

Ho can help me to instal. A New systeem on my Android Phone?

Please help me

Theo - Reply Share

Wie oh wie kan mij helpen een nieuw besturingssysteem op mijn telefoon te zetten het is een merkloze gsm het moet voor een Samsung s25 door gaan hij komt uit China

Wie wil en kan mij helpen???

Theo - Reply Share

Add Comment

View Statistics:

Past 24 Hours: 146

Past 7 Days: 1,029

Past 30 Days: 4,805

All Time: 290,180