Category:Bootloaders/Unlocking

From postmarketOS Wiki

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

If you have forgotten whether your device is unlocked or not, check to see if it displays "device unlocked" or something similar at the bottom in flash mode or during the boot.

Unlocking the bootloader

Icon WARNING: Unlocking the bootloader will result in a formatted userdata partition. Make sure that you have backed up your data.

Generic Methods

Usually those method below use some kind of vulnerability to unlock the bootloader.

Generic fastboot method

Note If you have got error message remote: Flashing Unlock is not allowed , then you will need to go to developer settings in setting and turn on allow OEM unlock.

(Usually,that is the case for new Android device)

If you didnt see developer settings in setting, then go to about device and spam click Build Number.

Those command at below usually work on Oneplus and Pixel,Nexus and Nothing phone but it may not for others.

fastboot oem unlock

fastboot oem unlock-go

fastboot flashing unlock

Also some device may required code from vendor.Once you have the code you might able to unlock the bootloader by running those command at below.

fastboot oem unlock your-code-here

BootUnlocker

BootUnlocker This tool require you to root your Android device.Then it will use root access for modify the lock status of the bootloader.

This tool seem to only work on old devices due to it hasn't been update.Also Rooting Android device without unlocking bootloader is probably require vulnerability in Android userland or Linux Kernel.

Brute Force

If your phone uses a bootloader unlock key to unlock bootloader, then you can try to brute force the key via https://gist.github.com/alex-spataru/b187bdc3d987a0fcb1cae4e9b17c0e9e .

HMD Global

HMD Global no longer provides unlock codes.

There are several unofficial ways to unlock these devices. Some devices can be unlocked for free, while some are not.

See Category:Bootloaders/Unlocking/HMD Global

HTC

htcdev unlock site

Huawei

Huawei no longer provides unlock codes.

Tutorials that tell you to go to some Huawei website, log in with your Huawei ID and sign the unlock agreement to get a code are NO LONGER working. Even contacting their support has no effect.

Some services claim to be able to unlock these devices, but they charge money for it (e.g. DC-Unlocker charges 4€). Be careful, do your research and make sure that you're not on some fishy website before giving any of these services your money!
If you do try, please run wireshark usb capture, so there's a chance to understand how it works. Try to replicate it if possible.

Another option is to try #Brute Force the code. This takes time and might not work.

There is also this Open Source Solution for devices on Kirin SoC called PotatoNV which can be used to unlock the bootloader of Kirin-based devices, but has the disadvantage that you have to open the device and short a "test point" (unique to each device) to ground. This will also change your bootloader unlock code to a new one instead of printing out the original code.

Motorola

Motorola unlock site

An exploit does exist, see here.

Sony

Note This is your last chance to download the latest ROM via OTA update before unlocking the bootloader. Sony does not provide OTA updates for unlocked devices.

Sony Unlock Page.

Wiko

Just enable OEM unlocking in the Developer options and then use fastboot oem unlock in fastboot mode.

Windows Phones

Use WPInternals. The tool contains the instructions for unlocking.

Xiaomi

Note The #Generic fastboot method method might work on some older Xiaomi devices (eg.Xiaomi Redmi 2 (xiaomi-wt88047)

Xiaomi Unlock Page.

Samsung

Note If you don't see OEM unlocking option, then

1. your device's bootloader can't be unlocked.

2. your device need Crom Service to unlock bootloader (See below).

3. your device has a bootloader that can't be locked or unlocked (usually that is case for old devices).

1. Turn on OEM unlocking in the developer settings

2. Turn off the device

3. Press Volume down + Power button + home key (if the device has a physical home button )

Note If you don't see that line of text, then your device's bootloader can't be unlocked.

4. You should see blue screen on your phone. In that screen you should see this line of text : Volume up and long press: Device unlock mode. If you see it, then long press volume up.

5. Press volume up and wait for the bootloader unlock to reset the device.

Crom Service

Note The method shown below only works on some Samsung devices

If you see this line of text: CROM SERVICE: LOCK in odin mode then you need a app named Crom Service to unlock the bootloader (can be found in Galaxy Store or Internet Archive).

See Also

Bootloader Unlock Wall Of Shame (It contain some unlock bootloader guides's link)

This category currently contains no pages or media.