Ga door naar hoofdinhoud

How to install a different operating system on an Android Phone

Wat je nodig hebt

  1. How to install a different operating system on an Android Phone, Finding the Build Number: stap 1, afbeelding 1 van 3 How to install a different operating system on an Android Phone, Finding the Build Number: stap 1, afbeelding 2 van 3 How to install a different operating system on an Android Phone, Finding the Build Number: stap 1, afbeelding 3 van 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.

  2. How to install a different operating system on an Android Phone, Unlocking developer options: stap 2, afbeelding 1 van 2 How to install a different operating system on an Android Phone, Unlocking developer options: stap 2, afbeelding 2 van 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.

  3. How to install a different operating system on an Android Phone, Allowing OEM unlocking: stap 3, afbeelding 1 van 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.

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

  5. How to install a different operating system on an Android Phone, Connect your phone to your computer: stap 5, afbeelding 1 van 2 How to install a different operating system on an Android Phone, Connect your phone to your computer: stap 5, afbeelding 2 van 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.

  6. How to install a different operating system on an Android Phone, Allowing your computer to run ADB commands on your device: stap 6, afbeelding 1 van 2 How to install a different operating system on an Android Phone, Allowing your computer to run ADB commands on your device: stap 6, afbeelding 2 van 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’m using MS PowerShell. That´s why I need to open my terminal window in the platform-tools-folder and enter .\ as a prefix to my commands. In Linux you do not need to do this.

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

  7. How to install a different operating system on an Android Phone, Unlocking the bootloader: stap 7, afbeelding 1 van 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.

    • 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.

  8. How to install a different operating system on an Android Phone, Boot into the bootloader: stap 8, afbeelding 1 van 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.

    • 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.

    • 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

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

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

    • 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.

    • 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.

    • 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.

Conclusie

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

9 andere personen hebben deze handleiding voltooid.

Sebastian Dorr

Lid sinds: 08/19/18

8.250 Reputatie

44 handleidingen geschreven

0 opmerkingen

Voeg opmerking toe

Weergavestatistieken:

Afgelopen 24 uren: 131

Afgelopen 7 dagen: 808

Afgelopen 30 dagen: 4,348

Altijd: 10,291