Bootloader: Difference between revisions
→Motorola: Add exploit |
m Sorted alphabetically; Reworded a few things; Added HMD Global; Added devices to BootUnlocker |
||
Line 1: | Line 1: | ||
On many devices the bootloader is locked and you | 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 [[Installation_guide|installing postmarketOS]]. | Unlocking is therefore also required for [[Installation_guide|installing postmarketOS]]. | ||
If you | 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== | ==Unlocking the bootloader== | ||
{{Warning|Unlocking the bootloader will result in a formatted system as well as userdata partitions. Make sure you have a backup/official firmware.}} | |||
{{Warning| | On some devices it is enough to enter: | ||
On | |||
<code> | <code> | ||
fastboot oem unlock | fastboot oem unlock | ||
</code> | </code> | ||
Others require you to enter a code: | Others will require you to enter a code: | ||
<code> | <code> | ||
fastboot oem unlock your-code-here | fastboot oem unlock your-code-here | ||
</code> | </code> | ||
===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. | |||
===HTC=== | |||
[https://www.htcdev.com/bootloader/ htcdev unlock site] | |||
===Huawei=== | ===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 | Some services claim to be able to unlock these devices, but they charge money for it (e.g. DC-Unlocker charges 4€). Be careful and try to do your research and make sure that you're not one some fishy website before giving any of these services your money!<br> | ||
Another option is to try [https://github.com/SkyEmie/huawei-honor-unlock-bootloader brute forcing] the code. This takes time and might not work | Another option is to try [https://github.com/SkyEmie/huawei-honor-unlock-bootloader brute forcing] the code. This takes time and might not work. | ||
There is also this [https://github.com/mashed-potatoes/PotatoNV Open Source Solution for Kirin | There is also this [https://github.com/mashed-potatoes/PotatoNV 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. | ||
* [https://wiki.postmarketos.org/wiki/Huawei_Ascend_G7_(huawei-g7)#Preparation WIP Experimental work around which involves replace the entire bootloader] & [https://wiki.postmarketos.org/wiki/Huawei_Y635_(huawei-y635)#Flashing_custom_bootloader] | * [https://wiki.postmarketos.org/wiki/Huawei_Ascend_G7_(huawei-g7)#Preparation WIP Experimental work around which involves replace the entire bootloader] & [https://wiki.postmarketos.org/wiki/Huawei_Y635_(huawei-y635)#Flashing_custom_bootloader] | ||
* [https://github.com/hhj4ck/checkm30 A bootrom exploit of Huawei Hisilicon Smartphones that could be used to unlock Huawei bootloaders] | * [https://github.com/hhj4ck/checkm30 A bootrom exploit of Huawei Hisilicon Smartphones that could be used to unlock Huawei bootloaders] | ||
===Motorola=== | ===Motorola=== | ||
[https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a/ Motorola unlock site] | [https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a/ Motorola unlock site] | ||
An exploit does exist, see [http://bits-please.blogspot.com/2016/02/unlocking-motorola-bootloader.html here]. | |||
=== Sony === | === Sony === | ||
{{note| | {{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.}} | ||
[https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/ Sony | [https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/ Sony Unlock Page]. | ||
=== Wiko === | === Wiko === | ||
Just enable OEM unlocking in the Developer options and then use <code>fastboot oem unlock</code> in fastboot mode. | |||
=== Windows Phones === | === Windows Phones === | ||
Use [[Windows_Phone#Tools|WPInternals]]. The tool contains the instructions for unlocking. | |||
===Xiaomi=== | |||
[https://en.miui.com/unlock/index.html Xiaomi Unlock Page]. | |||
=== Mixed === | === Mixed === | ||
[https://github.com/osm0sis/boot-unlocker BootUnlocker] for [[Google_Galaxy_Nexus_GSM_(samsung-maguro)|Google Galaxy Nexus (maguro)]] ''& (toro, toroplus)'', [[Google_Nexus_4_(lg-mako)|Google Nexus 4 (mako)]], [[Google_Nexus_5_(lg-hammerhead)|Google Nexus 5 (hammerhead)]], [[Google_Nexus_7_2013_(asus-flo)|Google Nexus 7 2013 (flo)]], [[Google_Nexus_7_2013_LTE_(asus-deb)|Google Nexus 7 2013 (deb)]], [[Google_Nexus_10_(samsung-manta)|Google Nexux 10 (manta)]], [[OnePlus_One_(oneplus-bacon)|OnePlus One (bacon)]], [[OnePlus_Two_(oneplus-oneplus2)|OnePlus Two (oneplus2)]], [[OnePlus_X_(oneplus-onyx)|OnePlus X (onyx)]], YU Yuphoria (lettuce), [[Yu_Yureka_(yu-tomato)|YU Yureka (tomato)]], [[Zuk_Z1_(zuk-z1-ham)|Lenovo Zuk Z1 (ham)]], InFocus M810 (VNA), InFocus M812 (VN2), or Yota Phone 2 (yotaphone2). | |||
[[Category:Guide]] | [[Category:Guide]] |
Revision as of 07:05, 20 January 2023
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
WARNING: Unlocking the bootloader will result in a formatted system as well as userdata partitions. Make sure you have a backup/official firmware. |
On some devices it is enough to enter:
fastboot oem unlock
Others will require you to enter a code:
fastboot oem unlock your-code-here
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.
HTC
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 and try to do your research and make sure that you're not one some fishy website 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 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.
- WIP Experimental work around which involves replace the entire bootloader & [1]
- A bootrom exploit of Huawei Hisilicon Smartphones that could be used to unlock Huawei bootloaders
Motorola
An exploit does exist, see here.
Sony
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. |
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
Mixed
BootUnlocker for Google Galaxy Nexus (maguro) & (toro, toroplus), Google Nexus 4 (mako), Google Nexus 5 (hammerhead), Google Nexus 7 2013 (flo), Google Nexus 7 2013 (deb), Google Nexux 10 (manta), OnePlus One (bacon), OnePlus Two (oneplus2), OnePlus X (onyx), YU Yuphoria (lettuce), YU Yureka (tomato), Lenovo Zuk Z1 (ham), InFocus M810 (VNA), InFocus M812 (VN2), or Yota Phone 2 (yotaphone2).