Bootloader unlocking

Bootloader unlocking is the process of disabling the bootloader security that makes secure boot possible. It can make advanced customizations possible, such as installing a custom firmware. On smartphones this can be a custom Android distribution or another mobile operating system. Some bootloaders are not locked at all, others can be unlocked using a standard command, others need assistance from the manufacturer. Some do not include an unlocking method and can only be unlocked through a software exploit.

An unlocked bootloader, showing additional available options

Bootloader unlocking is also done for mobile forensics purposes, to extract digital evidence from mobile devices, using tools such as Cellebrite UFED.

Background

Unlocking the bootloader usually voids any warranties and may make the device susceptible to data theft.[1] On Chromebooks, enabling developer mode makes the system less secure than a standard laptop running Linux.[2] Unlocking the bootloader may lead to data loss on Android and ChromeOS devices, as some data is impossible to back up without root permission.

Sascha Segan from PCMag considered a locked bootloader a mistake on the Qualcomm Snapdragon Insiders phone, which is targeted at advanced users.[3]

Platforms

Android

Unlocking the bootloader is typically done during the process to obtain root access.

Android bootloader unlocking as of 2023[4]
ManufacturerDifficulty levelMethod
GoogleEasy (non-Verizon)
Impossible (Verizon)
Command-line (unlocked variant, not restricted to carrier, and non-Verizon carrier variants when paid off fully)
SamsungEasy (outside North America)
Impossible (North America)
Development settings (except North America variants)
OnePlusEasy (non-T-Mobile)
Medium (T-Mobile)
Command-line, except on T-Mobile US variants where an unlock code is needed
XiaomiHardAdd Mi account, request code via Windows-only software, wait up to a month (limited to one device per month).

On devices with Mediatek system on a chip it is easy with a third-party tool called MTKClient

AsusImpossibleUnlocking was performed via a first-party unlocking tool, but servers and app were removed.
SonyMediumCommand-line, request code at Sony website
FairphoneMediumCommand-line, request code at Fairphone website
MotorolaMediumCommand-line, request code at Motorola website
RealmeMedium-HardCommand-line, after installation of the in-depth test app and submitting a application for in-depth testing.
NothingEasyCommand-line
HuaweiImpossible, due to unlocking services being shut downN/A
OPPOImpossible (Fastboot binaries are removed)N/A
HMD-NokiaImpossibleN/A
vivoImpossible[5]N/A
LGImpossible, due to unlocking services being shut down,[6] only G and V series models from 2015 onwards were affected, including VelvetN/A
TecnoEasyCommand-line
InfinixEasyCommand-line
TCLImpossibleN/A

History

The bootloaders of Nexus and Pixel devices can be unlocked by using the fastboot command fastboot oem unlock or if it doesn't recognize the command fastboot flashing unlock.[7]

When Motorola released a bootloader unlocking tool for the Droid Razr, Verizon removed the tool from their models.[8]

In 2011, Sony Ericsson released an online bootloader unlocking tool.[9] Sony requires the IMEI number to be filled in on their website.[10] For the Asus Transformer Prime TF201, Asus has released a special bootloader unlock tool.[11]

In 2012, Motorola released a limited tool for unlocking bootloaders.[12] They require accepting terms and conditions and creating an account before the bootloader can be unlocked for a Moto G.[13]

HTC phones have an additional layer of lock called "S-OFF/S-ON".

Bootloaders can be unlocked using an exploit or using a way that the vendor supplied. The latter method usually requires wiping all data on the device.[14] In addition, some manufacturers prohibit unlocking on carrier locked phones. Samsung phones and cellular tablets sold in the US and Canada do not allow bootloader unlocks regardless of carrier status.

In 2018, a developer from XDA Developers launched a service which allowed users to unlock the bootloader of some Nokia smartphone models.[15] Similarly, another developer from XDA Developers launched a service to allow users to unlock the bootloaders of Samsung Galaxy S20 and Samsung Galaxy S21 Phones.[16]

Huawei announced plans to allow users to unlock the bootloader of the Mate 30 series, but later retracted that.[17] Huawei has stopped providing bootloader unlock codes since 2018.[18] A bootloader exploit named checkm30 has been developed for HiSilicon based Huawei phones.[19][non-primary source needed]

When the bootloader of the Samsung Galaxy Z Fold 3 was unlocked, the camera became less functional. This could be restored by re-locking the bootloader.[20] This issue was later fixed by Samsung.[21] For the Samsung Galaxy S22 series, unlocking the bootloader has no effect on the camera.[22]

Others

Microsoft

The WPInternals tool is able to unlock bootloaders of all Nokia Lumia phones running Windows Phone, but not phones like the Alcatel Idol 4 or HP Elite x3.[23][24] Version 1.0 was released in November 2015.[25] In October 2018, the tool was released as open source software when the main developer René Lergner (also known as HeathCliff74) stepped down.[26]

The slab bootloader used by Windows RT could be unlocked using a vulnerability, but was silently patched by Microsoft in 2016.[27] UEFI Secure Boot on x86 systems can generally be unlocked.

Apple

The boot ROM protection on iOS devices with an A11 processor or older can be bypassed with a hardware exploit known as checkm8, which makes it possible to run other operating systems including Linux.[28]

The bootloader on Apple Silicon-based Macs can be unlocked.[29] However, other Apple devices like the iPhone and iPad cannot be bootloader unlocked even when using the same chip used in a Mac.

Google

The equivalent of bootloader unlocking is called developer mode in Chromebooks.[30] Chromebooks use custom bootloaders that can be modified or overwritten by removing a Write-protect screw.[31] Some models lack a screw and instead may or may not require disabling the onboard Cr50 chip.[1]

In 2013, the bootloader of the Chromecast was hacked using an exploit.[32] In 2021, it was hacked again for newer versions.[33]

Asus

Asus used to provide an Unlocking tool for both of their smartphone lines, the Zenfone and ROG Phone. This worked as an installable .apk file that the user could install on their phone, then unlock the bootloader. The app worked by contacting Asus unlocking servers, then prompting the user to perform a factory reset. In 2023 Asus removed the tool from their website and closed the unlocking servers, so even phones with the .apk file installed couldn't unlock their bootloaders. Representatives on the Asus forums claimed the tool would be available again, but as of March 2024 no additional information has been provided, even after the release of their latest device the ROG Phone 8 and the upcoming release of the Zenfone 11 Ultra. A user on the popular fourm XDA (website) filed a court claim application against Asus due to the unlock tool never being released and alleged that Asus censored comments about the unlock tool on their form.[34]

SpaceX

In August 2022, security researcher Lennert Wouters applied a voltage injection attack to bypass firmware verification of a Starlink satellite dish from SpaceX.[35]

Relocking

On Android, it is possible to relock the bootloader.[36]

Shutdown of online services

In 2018, Huawei stopped providing bootloader unlock codes.[37] On 31 December 2021, LG shut down their website which provided bootloader unlock codes.[38] In August 2023, ASUS removed the unlocking tool from their website and shut down the servers used to unlock the bootloader.[39]

See also

Explanatory notes

References

External links