How To

Xiaomi Bootloader Unlock: The Easy Way Without PC or Mi Unlock Tool

Here, you will learn how to unlock the bootloader of your Xiaomi device without requiring a PC or Mi Unlock Tool. There has always been a reputation for Xiaomi devices being quite active in custom development. By rooting your device using Magisk, you can flash custom ROMs, recover your device or gain administrative privileges.

The bootloader on your device needs to be unlocked before any of these tweaks can be performed. Of all OEMs, Xiaomi has probably the most complicated method for accomplishing this task. There are complications involved in the Mi Unlock Tool, which is why it is so difficult to use.

Xiaomi Bootloader Unlock

Advertisement

The bootloader of your Xiaomi device can now be unlocked without a PC, thanks to a nifty method. It’s exactly that which we will explain in this guide. Let’s begin without further ado.

How to Unlock Xiaomi Bootloader without PC or Mi Unlock Tool!

You should take a complete backup of your device before following the below procedure because it will wipe all the data off of it [and might void the device’s warranty as well].

Furthermore, you will not be able to bypass the 168-hour waiting period through this process. You agree that AMS and its members will not be held responsible if a thermonuclear war occurs, if your alarm doesn’t wake you up, or if anything happens to your device or data if you follow the steps below.

Prerequisites

  • If you have not done so, go to Settings > Xiaomi Account and add your Xiaomi account.

Xiaomi Bootloader Unlock

  • Once Developer Options are enabled, tap on the MIUI version 7 times. You can now enable OEM Unlocking and USB Debugging by going to Additional Settings.

enable OEM Unlocking and USB Debugging

Advertisement
  • You can then add an account and device to Mi Unlock Status. If you are installing the SIM, ensuring WiFi is off, and enabling data, make sure the SIM is inserted.

Mi Unlock Status

Get the DATA Code

  • The next step is to get a USB OTG cable and another smartphone. Assign the primary device B and the phone whose bootloader is being unlocked to A and B, respectively.

  • Click here to access this GitHub page from your B phone. You can also check the View Desktop Site option by clicking the overflow icon in the top right.

  • You can now download the ZIP file by clicking on the Code button. You will need to extract it once you have downloaded it.

  • The MiUnlockAccount.apk file will be one of the files you’ll get.

  • When you launch the app, you will be prompted to sign in to your Xiaomi account. Your Xiaomi device must be logged in using the same account.

  • Click Send when you see a verification code required for your Xiaomi device. Additionally, please verify the Captcha and submit the form.

  • After the captcha has been verified, the verification code will be asked. Enter your information and hit Submit.

  • A string of alphanumeric characters will now appear; click Copy [let’s call it DATA].

Install Packages

  • The first step is to download and install Termux and Termux API.

  • Once Termux is launched, type the following command:

    pkg update

  • At various points throughout the process, you may be asked to continue, type in Y, and hit Enter each time.

  • Execute the following command once you have completed the above steps:

    pkg install git

  • Hit Enter after typing the below command

    pkg install vim

  • Once you have typed the below command, hit enter

    git clone https://github.com/RohitVerma882/termux-miunlock.git && cd termux-miunlock

  • The following command should be executed now

    chmod +x setup.sh && ./setup.sh

  • During the download process, you may proceed to the next step.

Generate Unlock Device Token

  1. The first thing you need to do is turn off your Xiaomi device. You can boot it to Fastboot Mode by pressing and holding the Power and Volume Down keys.

  2. Connect your Xiaomi device [device A] with the USB OTG on your phone B using the USB cable.

  3. Verify the Fastboot connection by typing the following command in Termux:

    mi-fastboot devices

  4. A prompt should now ask you to allow access to Android API for Termux. Click the OK button.

  5. Use the following command to find your Xiaomi’s device codename:

    mi-fastboot getvar product

  6. The next step is to generate a token [let’s call it TOKEN]. Use the following command if you have a Snapdragon chipset device:

    mi-fastboot getvar token

  7. Alternatively, you can use the following command if you have a MediaTek chipset:

    mi-fastboot oem get_token

  8. Now type in the below command

    chmod +x get_token.sh

  9. Enter the following command instead of PRODUCT (replace PRODUCT with the codename that you got above). As for TOKEN, replace it with the one you obtained just above. Use the same code obtained via the MiUnlockAccount app in STEP 2 for DATA.

    ./get_token.sh –product=PRODUCT –token=TOKEN DATA

  10. Whenever you unlock a device’s bootloader for the first time, you’ll be asked to wait 168 hours. You will receive an Unlock Device Token once you have bypassed this time limit.

STEP 5: Unlock the Xiaomi Bootloader without the PC

  1. After that, execute the following command [replace UNLOCK_TOKEN with the one you received from Xiaomi].

    mi-fastboot oem-unlock “UNLOCK_TOKEN”

  2. Now that your device has been reset, you can unlock the bootloader. You’re done.

In summary, these were the steps to unlock your Xiaomi bootloader without using a PC or Mi Unlock Tool. Feel free to ask questions about the aforementioned steps in the comments section. A solution will be provided to you as soon as possible.

mohammad umer

What other way is there for you to gain the public's trust when so much of what you know is online? Blogging can help you get your name out with your audience and improve the quality of your work.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button