From postmarketOS
Revision as of 05:06, 17 September 2022 by Dreizehn (talk | contribs) (added additional info about PotatoNV)
Jump to navigation Jump to search

On many devices the bootloader is locked and you need to unlock it before being able to flash a custom ROM or recovery. Unlocking is therefore also required for installing postmarketOS.

If you forgot whether your device is unlocked already, check whether it displays "device unlocked" at the bottom in flash mode.

Unlocking the bootloader

Icon WARNING: Bootloader unlock results in formatted system partition as well as userdata. Make sure you have a backup/official firmware.

On many devices where the manufacture is generous it is enough to enter fastboot oem unlock

Others require you to enter a code: fastboot oem unlock your-code-here


Huawei stopped distributing unlock codes. Tutorials telling you to go to some Huawei website, log in with a Huawei ID and sign the unlocking agreement to get a code will NO longer work. Not even contacting their support.

Some services claim to be able to unlock this device, but they charge money for it (e. g. DC-Unlocker charges 4€). Be careful and try to do research before giving any of these services your money!
Another option is to try brute forcing the code. This takes time and might not work

There is also this Open Source Solution for Kirin devices named PotatoNV wich can be used to unlock the bootloader of Kirin based devices but comes with the downside of needing to open the device and shorting a "test point" (unique for each device modell) to ground. This also changes your bootloader unlock code to a new one instead of printing out the original code.


htcdev unlock site


Motorola unlock site


Note it's your last chance to download latest rom via ota update before unlocking bootloader. sony doesn't provide ota update for unlocked devices and there is no way to lock it again

Sony unlock page


Xiaomi Unlock Site


You just have to enable oem unlocking in developer settings and use fastboot oem unlock afterwards in fastboot mode.

Windows Phones

Make use of WPInternals. The tool itself holds the instructions for unlocking.