• December 2019
 

How to Unlock Bootloader on Any Android Phone – Using Fastboot

CyanogenMod ROM Forums Forum for Common Topics (Generic Topics for all Devices) Common Android How-To Guides How to Unlock Bootloader on Any Android Phone – Using Fastboot

  • This topic has 29 replies, 17 voices, and was last updated 3 months ago by siba.
Viewing 10 posts - 1 through 10 (of 30 total)
 
 
 
  • Author
    Posts
  • #3561
    shibaa987
    Participant

    You need to unlock bootloader on an Android phone in order to install a Custom recovery like TWRP or a custom ROM like: LineageOS, CyanogenMod, Resurrection Remix etc.

    This post guides on how to Unlock Bootloader on any Android phone Using Fastboot. Below are the OEMs list categorized in supported and unsupported list. This bootloader unlock will be effective for Android phone from Supported OEMs list, ONLY.

    You might be wondering what is supported and unsupported list of this unlock bootloader guide? Well, this post guides you to unlock bootloader using the fastboot, which is a very simple procedure. But there are OEMs like Motorola, HTC, Sony, Xiaomi, etc. have a bit longer process of bootloader unlock.

    For those OEMs I have separate bootloader unlock procedure written individually in separate posts. For your convenience I have added those individual links to OEMs in unsupported list.

    Many of the OEMs missing from the list at this moment. I will keep on adding them as I will explore which one is really supported by this guide and which one is not. There is no harm in trying this in any case. If this guide works on your phone then simply your bootloader will be unlocked and if it does not work it will simply through an error message.

    Below is the OEM list filtered out for which this Bootloader Unlock guide will work and for which this guide may not work for you:

    SUPPORTED UNLOCK BOOTLOADER LIST:
    Google
    Le Eco
    Oppo
    OnePlus
    Xiaomi (Older Phones)
    Yu
    ZTE
    Zuk

     

    UN-SUPPORTED UNLOCK BOOTLOADER LIST:
    Asus
    Sony
    HTC
    Huawei
    Motorola
    Samsung
    Samsung
    Xiaomi (Newer Phones)
    Yandex

    Go to the respective links found at the end of this post to unlock bootloader for Android phone of un-supported OEMs:

     

    DISCLAIMER:
    First thing first, unlocking the bootloader on your Android may VOID your warranty and may delete all your data. You are solely responsible for anything that happens to your Phone; because you are the only person making changes to your phone and I cannot be held responsible for the mistakes done by you in anyway.

    How to Unlock bootloader on any Android

    Required resources to Unlock Bootloader on Android phone

    ADB and Fastboot one click installer for Windows.
    OEM USB drivers and Google USB Drivers
    – Enough battery backup. (More than 60% of battery charge will be good enough)
    – A PC with USB driver (mentioned above) installed for your Android.

    ADB and Fastboot Installation:
    ADB Fastboot Installation guide for Windows
    ADB Fastboot Installation guide for Linux and MAC

    How to Unlock bootloader on Android Phone using Fastboot?

    If you don’t know the key combination on your Android to enter into bootloader mode or if you are a newbie to Android Customization then this process is strongly recommended to Unlock Bootloader on your Android:

    1. Download and install the ADB and Fastboot binaries using the above installer download link for Windows or Linux or MAC.
    2. Enable USB Debugging under Developer Options.

      If you don’t know how to do this then here is:
      How to Enable Developer Options
      How to Enable USB Debugging and OEM Unlock

    3. Now connect your Android to the PC using a USB cable.
    4. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type the following command to restart your phone into fastboot mode or bootloader mode:
      adb reboot bootloader

      – You can also enter into fastboot or bootloader mode by pressing some specific key combinations.
      – If your Android Phone asks permission such as ‘Allow USB debugging‘ then just tap on OK to proceed

    5. Now when your Android is on the bootloader mode just execute one of the following command (or try both) on the console:
      fastboot oem unlock
      fastboot flashing unlock

      This will Unlock the bootloader and delete all user data present on the phone. Here is a Step by step guide to take full backup of your phone data

    Some of the Phone specific OEM unlock bootloader commands:

    ZTE: fastboot -i 0x19d2 oem unlock
    Zuk: fastboot -i 0x2b4c oem unlock
    Le Eco (LeTv): $ fastboot -i 0x2a96 oem unlock

    You should have now an unlock Bootloader of you Android if this is the guide for your device and you have followed it step by step.
    Welcome to the developers world where you are yet to experience many more things on Android customization. The very NEXT STEP you may want is to install TWRP recovery on your Android or want to ROOT it.

    Here goes some more guide for you:
    How to install TWRP on Android

    HTC Bootloader Unlock Guide

    Unlock bootloader on HTC Phone

    Huawei / Honor Bootloader Unlock Guide

    Unlock bootloader on Huawei / Honor Phone

    LG Bootloader Unlock Guide

    Unlock bootloader on LG Phone

    Mediatek Bootloader Unlock Guide

    Unlock bootloader on Mediatek Phone

    Motorola Bootloader Unlock Guide

    Unlock bootloader on Motorola Phone

    Samsung Bootloader Unlock Guide

    Unlock bootloader on Samsung Phone

    Yandex Bootloader Unlock Guide

    Unlock bootloader on Yandex Phone

    #3709
    zam-man
    Member

    Am getting a problem, when i enter the command fastboot oem unlock then my pc command box shows waiting for device, meanwhile device is already connected to pc via USB
    how to resolve this?

    #3717
    shibaa987
    Participant

    I guess the ADB & Fasboot Drivers are not installed for your Device on the PC. For any Android Device the USB drivers and the ADB & Fastboot drivers are different.

    Can you tell me which Device you were trying with??? Then I can search the fastboot drivers for you.

    #8215
    areen sahu
    Member

    Will i not be able to unlock bootloader if i am using a samsung device???? If not, then how should flash rom??

    #8235
    shibaa987
    Participant

    If you are using a Samsung phone then I think you can still flash an ODIN flashable ROM. But many ROMs are made such that they can be flashed using a custom recovery. Well, to flash a custom recovery you need to unlock the bootloader.

    OK, can you enable developer options and then enable OEM unlock (if you have an option) from Developer options menu and then connect your phone to the PC and see if it is detected.

    #9564

    Trying to install TWRP on a Lenovo P1a42. I am stuck at step 1 of unlocking the bootloader.
    1. I downloaded and installed the ADB & Fastboot installer and the OEM/Google usb drivers. When I try to use the command “adb …..” , it fails and says “adb not recognized as an internal or external command or operable program”. I can see the abd folder with 5 files under my C:\ drive.
    2. Cannot locate the correct TWRP file.
    Any help will be appreciated.

    #10147
    shibaa987
    Participant

    Hi Wayne, basically “adb not recognized as an internal or external command or operable program” meaning the command prompt is unable to find the path to adb.exe.

    There are two ways how you can solve this:

    1. Traverse (of course in the command prompt only) into the adb and fastboot directory where you have downloaded and extracted and then run the adb command, it will work
    2. Put the adb and fastboot directory into windows’ PATH variable.

    To locate the TWRP file you need to traverse the directory in command prompt where you have downloaded the TWRP file.

    Let’s say the TWRP file named twrp-3.0.2.0-xxx.img is downloaded default into the Downloads directory in windows. Now open the Downloads directory and press shift + right click and then select Open commad window here. Now you will have a command window opened where you have the TWRP file. But the problem here is, the adb and fastboot might not be there directly in the Downloads directory and may be present in some other directory and you will again see the following: “adb not recognized as an internal or external command or operable program”

    So, my suggestion is to copy the TWRP file to adb and fastboot directory and open the command prompt window inside the adb and fastboot directory and then your problem will be solved.

    I hope my writing is clean enough to make you understand the whole scenario. If you still unable to fix this then let me know I will help you out.

    #11191
    JcTatis
    Member

    my phone use to appear before i installed bluestack i use to do cmd commands to install the new or old miui official roms. after a time my phone didn’t appear in the list appear empty. when my phone was turn on it appear on the attached list, when i rebooted it to fastboot it show empty. i did what the guide told

    C:\adb>adb reboot bootloader

    C:\adb>adb devices
    List of devices attached
    C:\adb>fastboot oem unlock

    OKAY [ -0.000s]
    finished. total time: -0.000s

    C:\adb>
    after this the phone rebooted into TWRP (my current recovery) and after that the phone rebooted again in system. apparently it work. in the miui forum i asked about if mi3 come with bootloader block i think a admin told me that it didn’t so.. now it booted normally i guess it success?

    C:\adb>fastboot oem device-info

    (bootloader) Device tampered: true
    (bootloader) Device unlocked: true
    (bootloader) Charger screen enabled: false
    (bootloader) Display panel:
    OKAY [ 0.009s]
    finished. total time: 0.009s

    #11219

    Hi! I´m stuck after the cmd window, “waiting device” 🙁

    Ihace Zuk Z1 Cyanogen OS, and I want to change to ZUI 2 can you help me please??

    #11676

    Hello? I followed the steps to unlock bootloader on Wileyfox Swift,but surprisingly,I managed to unlock it yet I didn’t lose any data in my phone. Is that possible?
    When I try to repeat the process,cmd tells me Device already unlocked. But going ahead to install TWRP has become hard for me. I adb and fastboot installed,USB drivers for wileyfox,and required twrp .img file. So,I was wondering,which cmd do I use,I have the original windows one,and the adb and fastboot one.
    Please help,thanks.

Viewing 10 posts - 1 through 10 (of 30 total)
 
 
 
  • You must be logged in to reply to this topic.