Download ArticleDownload Article

This How.com.vn teaches you how to use Android Debug Bridge (ADB) to lock the bootloader on your Android device. Warning: This will likely format your device. Please backup first! You should also be aware that not every Android device has a lockable or unlockable bootloader.

Part 1
Part 1 of 2:

Installing Android Debug Bridge (ADB)

Download Article
  1. How.com.vn English: Step 1 Open a web browser on your computer.
    You can use any web browser of your choice.
  2. How.com.vn English: Step 2 Navigate to https://developer.android.com/tools/releases/platform-tools....
    Navigate to https://developer.android.com/tools/releases/platform-tools. This is the website where you can download Android SDK. This allows you to interface with your Android system on your computer.
    • Warning: Not every Android device has a lockable and unlockable bootloader. Many manufacturers and mobile carriers don't allow you to unlock or lock your bootloader.
    • Warning: Locking your bootloader will most likely wipe your entire Android device. Make sure you backup your device before attempting to lock it or flash it.
    Advertisement
  3. How.com.vn English: Step 3 Click the download file for your operating system.
    You can download Android SDK for Windows, Mac, and Linux. Click the download link for whichever operating system your computer uses. All three are listed below the "Downloads" header.
  4. How.com.vn English: Step 4 Read the Terms and Conditions and click the checkbox at the bottom.
    The checkbox is at the bottom next to " I have read and agree with the above terms and conditions." Scroll down and click the checkbox in order to continue.
  5. How.com.vn English: Step 5 Click the green download button.
    It's below the text and the checkbox. This downloads a zip file containing a folder called "platform-tools." This folder contains Android SDK.
  6. How.com.vn English: Step 6 Unzip the contents...
    Unzip the contents of the zip file. Both File Explorer for Windows and Finder on Mac can unzip zip files. Simply double-click the zip file and then drag and drop the "platform-tools" folder inside the zip file to a location that you can remember and easily access.
  7. How.com.vn English: Step 7 Download the drivers for your Android device.
    Depending on your device, you may have to install drivers to make your computer recognize your Android. You can get these drivers from your phone or tablet manufacturer's website. The following are a few websites you can download drivers for your device from:
  8. Advertisement
Part 2
Part 2 of 2:

Locking the Bootloader

Download Article
  1. How.com.vn English: Step 1 Boot your phone...
    Boot your phone into recovery mode. On most Android models, you can boot into Recovery Mode by powering your device off and then pressing and holding the Power + Volume Down buttons at the same time. Once you are in the Fastboot menu, use the Volume Up and Volume Down keys to navigate the menu. Select Recovery mode and press the Power button.[1]
    • On Samsung Galaxy devices, press and hold the Power' or "Bixby button and Volume Up to boot into Recovery Mode.
  2. How.com.vn English: Step 2 Connect your Android to the computer with a USB cable.
    If you don’t have the same USB cable that came with your device, make sure you’re using a safe compatible version.
  3. How.com.vn English: Step 3 Open the Terminal or the Command Prompt as an administrator.
    If you are using a Mac or Linux computer, you will need to use the Terminal. If you are using Windows, you will need to open the Command Prompt as an Administrator. Use the following steps to open the Command Prompt or Terminal:
    • Windows: Click the Windows Start menu and type "CMD." Right-click the Command Prompt icon and click Run as Administrator. Then click Yes.[2]
    • Mac: Click the magnifying glass icon in the upper-right corner. Type "Terminal" in the search bar. Click the Terminal to launch it.[3]
    • Linux: Press "Ctrl + Alt + T' to open the Terminal.[4]
  4. Step 4 Navigate to the "platform-tools" folder in the Terminal or Command Prompt.
    To navigate to the platform-tools folder, type "cd" followed by the path of the platform-tools folder (i.e. "cd C:\Users\username\Desktop\platform-tools") and press Enter' or Return.
    • To find the path for the platform-tools folder on Windows, open the platform-tools folder in File Explorer. Then right-click the path in the address bar at the top and click Copy address as text. You can press Ctrl + V to paste the address into Command Prompt.
    • To find the path for the platform-tools folder on Mac, right-click the platform-tools folder, and click Get Info. Highlight and copy the address next to "Where." You can press Command + V to paste the address into Terminal.
    • If you saved the platform-tools folder to another folder, such as a D: drive, you will need to switch to that drive before you can navigate to the path. To switch to a different drive, type the drive letter followed by a colon in Command Prompt or Terminal (i.e. "D:") and press Enter or Return.
  5. How.com.vn English: Step 5 Type fastboot devices and press ↵ Enter.
    This checks to make sure your device is recognized by your system. It should return your device model.
    • If it does recognize your device, make sure your Android device is in recover/fastboot mode. If it is not, you can type "adb reboot bootloader" and press Enter to boot your phone into Fastboot mode.
  6. How.com.vn English: Step 6 Type fastboot flashing lock and press ↵ Enter.
    The command will run and lock the bootloader. If you see an error message, try one of the following commands instead:[5]
    • fastboot oem lock
    • oem relock
  7. How.com.vn English: Step 7 Confirm that you want to lock the bootloader.
    Check your device. There should be a message on the screen asking you to confirm that you want to lock the bootloader. If need be, use the Volume Up and Volume Down keys to navigate the menu. Press the Power button to make your selection. Select the option to lock your bootloader or confirm that you want to lock your bootloader. Then wait for the process to finish.
    • Warning: Do not disconnect your device until this process is complete. Any interruptions during this process may permanently damage your Android device.
  8. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What if my cell phone is not recognized?
    How.com.vn English: Community Answer
    Community Answer
    Try unplugging it from the computer and plugging it back in on another port. Also, make sure the device is unlocked and you have made sure it can download from unknown sources, and have the computer set in MTP mode as a trusted device.
  • Question
    Does this format my device?
    How.com.vn English: Community Answer
    Community Answer
    It shouldn't, but backing up your device is recommended. I recommend using Titanium Backup, which you can get from the Google Play Store for free.
  • Question
    What do I do if a CMD keeps saying waiting for any device?
    How.com.vn English: Community Answer
    Community Answer
    Make sure that you have all the drivers installed on the PC. If not, search your device model on internet and the word "drivers". Also, if you don't found them, you could install "ADB Drivers". This should work.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Travis Boylls
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for How.com.vn. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 224,994 times.
      How helpful is this?
      Co-authors: 10
      Updated: March 22, 2024
      Views: 224,994
      Categories: Android
      Thanks to all authors for creating a page that has been read 224,994 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement