[2023] How to Unlock Bootloader of Any Android Device

Welcome to our detailed guide on how to unlock the bootloader of any Android device. Unlocking the bootloader allows you to modify the operating system of your device and install custom ROMs, kernels, and other modifications. However, some OEMs like Xiaomi, Sony, HTC, and Samsung have their own specific methods for unlocking the bootloader. Don’t worry, we’ve got you covered and have included a separate section at the end of this guide specifically for those manufacturers. Follow along with us as we walk you through all the steps necessary to unlock the bootloader of your Android device.

If you want to root your device or want to install a custom recovery, ROMs, Kernel & MODs then you have to unlock the bootloader of the android device first. After Unlocking the bootloader, you can Flash modified system, boot, kernel, custom recovery(TWRP/CWM) or other .img files on your device.

Unlocking Bootloader is now a very simple process.You can do this by just issuing some fastboot commands.The process is same for most of the devices but there are Companies like Sony, Motorola, Huawei and other OEMs officially allow users to unlock the bootloader on their devices. You have to first get a unlock password from the manufacturer Website, then you can easily unlock the bootloader by issuing few ADB & Fastboot command.

Note: Install ADB and Fastboot Drivers and required files on your PC, otherwise, this won’t work

Detailed Guide: Root Android Devices Phone With SuperSu Zip + APK

Here we will be using a windows computer, so make sure you have one.

Unlock Bootloader Of Any Android Devices Using Fastboot

This method won’t work on all Android devices. Many manufacturers have a different method of unlocking. But this will work on OnePlus, Pixel and many Android devices with vanilla pure Android Os. Unlocking bootloader will completely wipe your device’s data(Everything like music, photos, videos & apps). So we highly recommend taking backup of your important data. So take a backup of your apps and data. Guide: How to Backup Important Data On Android (Non rooted users). For other manufacturers, please check the link shared below[/note]

Disclaimer

rootmygalaxy.net will not be held responsible for any kind of damage occurred to your Android Device while following this tutorial. Do it at your own risk. [/note]

Pre-Requirements

*Make sure there is at least 60% battery left on your smartphone before begin started this process

→ Unlock Bootloader Of Android Devices Using Fastboot Commands

Steps to Unlock Bootloader Of Any Android Devices Using Fastboot Commands in 2023

→ First read the Pre-Requirement section carefully.

  • Connect your android to your PC with USB cable
  • Now go to ADB & fastboot folder and Open the command window there(Right click on the empty space inside the folder then select “Open command window here” or “Open PowerShell Window Here” option to launch a command window
  • Now reboot into the bootloader by issuing the following commands. (Make sure your device is detected by your PC)
adb reboot bootloader

adb reboot bootloader

  • Now Check fastboot connectivity by giving the command below.If your device is connected properly then it should return device code.
fastboot devies

  • Once in the bootloader, issue the following fastboot command to unlock the bootloader. (This will unlock your phone and wipe all data of your device)
fastboot oem unlock

  • Done!!! Reboot the phone and boot into your unlocked device. Use command:
fastboot reboot

  • To check the bootloader status, issue the command given below. It should return “True” on unlock status.
fastboot unlock-info

If you use Mac or Linux machine, use the code: “./fastboot oem unlock” for iOS and “sudo fastboot oem unlock” on Linux.

Some Common FAQ Regarding Unlocking Bootloader

What happens if I unlock bootloader?

Ans: Android mobile manufacturers are very serious about security so they have purposefully shipped devices with a locked bootloader. But users have the option to manually unlock it. Once you unlock your device’s bootloader, you can do all types of customization like installing Custom ROMs, recovery and MODs but you will lose the warranty too.

What does OEM unlock do on Android?

Ans: This option is under developer options. It allows users to unlock the bootloader

How do you unlock an OEM?

Ans: Check out our guide: How to Enable Developer Options, USB Debugging and OEM Unlock on Android

Is bootloader unlock safe?

Ans: It is safe but you have to follow the guide carefully or you may end up bricking your device. The process will erase all your device data and will void the warranty of the device.

Can we unlock bootloader without a PC?

Ans: No, you need to have a computer as it requires some ADB and Fastboot commands or some Tools.

If you have any questions regarding this post, please feel free to leave them in the comments section below. We will be happy to help.

RELATED ARTICLES

Photo of author

Dibyashree Sharma

49 thoughts on “[2023] How to Unlock Bootloader of Any Android Device”

  1. this thread says it works with all android devices yet… my z958 will not boot into fastboot mode in any way… adb reboot bootloader… adb reboot fastboot… both just reboot the phone normally… adb reboot recovery works and recovery has an option to reboot into bootloader mode… guess what happens when I choose that option… the phone reboots right back to the os instead… any workaround for a phone that just doesn’t give the user access to the bootloader at all?

    Reply
  2. I have Nobis NB09 tablet. Stock firmaware “gone away”…with Recovery and Fastboot option… After some tricks I install ADB driver on PC and it looks like working – but no ADB and Fastboot function are available. (waiting for device) “Debuging on USB” I cannot turn on because tablet are “bricked” Can anyone help me?

    Reply
  3. I was struggling a lot on the internet. Thanks your post helped me. Now I’ve unlocked the bootloader, can you tell me how can I root my device. My device in not listed on TWRP device list. King root doesn’t work.

    Reply
    • Simple follow these steps precisely:
      !. download device specific usb drivers
      2. download minimal adb/fastboot
      3.download your exact stock firmware from a reliable source
      4.download the latest version of the official Magisk app from Github repository
      5. unlock bootloader
      6. open your device specific stock firmware download and copy to a new folder and either patch your boot.img or your recovery.img with the official Magisk app.
      7. locate your patched boot.img or recovery.img and flash it using fastboot
      fastboot command to flash patched boot.img or recovery.img is:
      command is as follows without quotations “fastboot flash boot Magisk_patched boot.img or fastboot flash recovery Magisk_patched recovery.img
      8. enter fastboot reboot and profit
      Note: The official Magisk app is used to patch your desired system .img either boot or recovery and thats how you obtain root. Magisk does a lot more than that also. Both means of using either a patched boot.img or recovery.img are explained at nauseum on the official Magisk repository on Github and on XDA Developers website. XDA Developers website has loads of tutorials for almost anything possible for almost any device such as root and lots of other attributes that are device specific. Everyone on XDA will help a noob with questions as long as your respectful and keep the forum or inquiring about device specific. Google is your friend when getting the prerequisite download files mentioned above. If you can get a copy of your device stock firmware then you can root any device with Magisk as long as the bootloader is unlocked during the root process. It is always extremely important to have a copy of your stock device firmware before you ever think about modifying anything software related to your device for the simple fact that if anything happens you can recover your device from disaster. Make sure your build number in about phone section is exact to the build number of the stock firmware you choose to download. And if root isn’t of interest to you anymore then you can flash the stock firmware and relock your bootloader. In short do your research and use preferably your oem device usb cable and you should be golden. Take care

      Reply
      • Hi Bill,
        Your advice is, what is golden! 😉 Thanks.
        I successfully unlocked the bootloader on a Cubot Kingkong mini2, ie it says “your device has been unlocked and can’t be trusted”. The only thing that “can’t be trusted” is google itself, in my experience.
        Now I want to flash a “de-googled” android firmware, and then download the few apk that I need from the apk sites I trust. I am wondering HOW to flash de-googled android firmware. Hopefully someone knows?

        Reply
    • You have to unlock it manually. As it is an older device. You should check the updated guide. Sadly we can’t guide you as we don’t have the device in the office. But a simple google search can help. Samsung devices have different methods.

      Reply
  4. Hi. Mine is realme 5I. Stock on fastboot. Ive tried the command. It doesn’t work. Im struggling to unlock my oem. Can you help thank you

    Reply
  5. i have lenovo A6010 device. it has android 5.0, in developer options it doesnt show oem unlock option at all!! kindly help how to do oem unlock from pc

    Reply
  6. guys who having problems do not forget to unplug and re-plug the cable for the confirmation of allowing usb debugging from the computer and check -always allow…- , this is a necessity

    Reply
  7. I hope someone can help. I have a Galaxy SM-A205U w/ And.10. Been doing a bunch of searching for method to unlock the bootloader on this particular model. Quite a bit of controversy; some say it can be done, others insist it cannot. I did request Samsung for the unlock code(s), don’t know where that’ll get me?????? Would appreciate some straight forward advice, help, links, and/or discussion. If it’s discovered (truly) that the bootloader cannot be unlocked, is there a way for me to completely “wipe” the O.S. (and B/l), then install an O.S. of my choice? Appreciate all who may respond.
    THANKS
    Rick

    Reply
  8. Its hard to root my Motorola Z3 Play, I also turn on oem unlocking on the phone but still doesent unlock for rooting, nor fastboot works correctly.

    Reply
  9. Such a Nicely written and to the point article , Thanks alot .. After trying to root my Nokia 1 Ta-1047 FRT , I have gone through lots n lots of vidz , articles and what not for a duration of last 2.5 months, and I am certain to say that this guide is the best straight forward info I have found so far.

    Its another Fact that , I am unable to get my bootloadder unlocked even after trying all above . I am now left with a new question , Is Nokia 1 Ta-1047 FRT even flashable/rootable or just not to be rooted by manufacturer?

    Reply
  10. Great explanatory piece on fastboot mode and OEM unlocking. However, contrary to the title, it isn’t possible to unlock the bootloader on any Android device using fastboot. There are many devices with perma-locked bootloaders which cannot be unlocked period.

    Reply
  11. phone wont go into bootloader mode. just forever on the blue downloading screen. even with using adb command get same thing. its a galaxy s9. i couldnt find the oem unlock in debug menu. im hoping its because i already did a while back

    Reply
  12. I have a Huaeei Mate 20 X. Since EMUI 10, I think the bootloader is permalocked but not sure. Do you know if this phone can be unlocked or is all hope lost?

    Reply
  13. This article is about as misleading as one can get!! Most Carriers have encryption put into the string code for the boot loader ( ie 99% can not be unlocked) if you want to tinker with a phone buy direct from manufacturer.

    Reply
      • Carrier lock has nothing to do with the bootloader …
        The only reason to unlock your bootloader is to root or install a Rom or Unofficial OS…

        the carrier sim lock is a completely separate and independent lock that can usually be unlocked by calling your carrier and asking for the unlock code.

        Most carriers have certain restrictions
        in the case of mine It must be on an active account for a minimum of 6 months and be completely paid for ……
        and before they’ll release the code they’ll ask a lot of questions…. it took me 30 minutes on the phone and now I can swap from the factory Tracfone (Verizon compatible) sim card to my AT&T gophone sim any time I choose… without any issues (after restarting)

        Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get Android 11 (Lineage OS 18.1)Download Now
+ +
1
Share to...