How To Unlock Xiaomi Bootloader Without Mi Unlock Tool or PC.

For quite some time now, Xiaomi has been a company that has enabled Bootloader Unlocking on their devices. This allows users to access a wide range of options, including custom ROM flashing, device recovery, and administrative access through rooting with Magisk. As a result, Xiaomi has earned a reputation for being a prominent player in custom ROM development. Among all other OEMs, Xiaomi’s Bootloader Unlocking process is considered to be the most challenging due to the many complexities involved in using the Mi Unlock Tool. Here is an in-depth tutorial on how to unlock Xiaomi bootloader without PC or mi unlock tool.

Also Read- How to flash global MIUI ROM on the Xiaomi 13 Ultra – Thetecheaven

Thankfully, unlocking the bootloader on your Xiaomi smartphone has now become a hassle-free process that doesn’t require a PC. In this tutorial, we will guide you through the steps to achieve this. You’ll learn how to unlock the bootloader on your Xiaomi smartphone without using the Mi Unlock Tool or a PC.

How To Unlock Xiaomi Bootloader Without pc

Note that this procedure will erase all data from your device and won’t allow you to bypass the 168-hour waiting period. Create a backup first, and be aware that it may void your device’s warranty.

STEP 1: Essential Settings

  1. If you haven’t already, sign in with your Xiaomi account by going to Settings > Xiaomi Account.
  2. Enable Developer Options by tapping on MIUI version 7 times. Now go to Additional Settings to enable OEM Unlocking and USB Debugging.|
  3. Go to Mi Unlock Status and add Account and Device. Ensure that your SIM is inserted, WiFi is turned off and mobile data is enabled while doing so.

    Unlock Xiaomi Bootloader Without pcUnlock Xiaomi Bootloader Without pcUnlock Xiaomi Bootloader Without pc

 

STEP 2: Getting the DATA Code

To unlock the bootloader on phone A, you will need a USB OTG and a separate smartphone, which we’ll refer to as phone B. Some devices may make the whole thing difficult for you. In such circumstances, consider utilising another device as a secondary device.

Follow these steps:

  1. On phone B, navigate to this GitHub website and tap the overflow symbol in the upper right corner to toggle View Desktop Site.
  2. From the Code menu (green), select Download ZIP and unzip the downloaded files.
  3. Install the MiUnlockAccount.apk file.
  4. Open the app and log in using the same account you use to access your Xiaomi device.
  5. You will be prompted to forward a verification code from your Xiaomi smartphone, so click Send and confirm the Captcha before clicking Submit.
  6. Input the verification code when prompted, and click Submit.
  7. You will now see an alphanumeric string of letters; copy it (we’ll call it DATA).

If you do not receive the “DATA” code in STEP 2, please try again. You’ll get it after a handful of unsuccessful attempts.

You’re all set to proceed with the next step.

 

STEP 3: Installing Packages

To get started with Termux, follow these steps:

  1. Download and install both the Termux and Termux API applications on your device via F-Droid.
  2. Once installed, open Termux and enter the command: pkg update
  3. You may be prompted for further action throughout the procedure, so be sure to respond with “Y” and press Enter each time.
  4. Run the command: pkg install git
  5. Run another command: pkg install vim
  6. Then, input the following command and press Enter: git clone https://github.com/RohitVerma882/termux-miunlock.git && cd termux-miunlock
  7. Once that’s complete, run this command: chmod +x setup.sh && ./setup.sh
  8. While the files are downloading, you can move on to the next step.

 

STEP 4: Generating Unlock Device Token

  1. First, turn off your Xiaomi device. Then, to enter Fastboot Mode, hold down both the Power and Volume Down buttons simultaneously.
  2. Insert the OTG cable into your phone B and link it to your Xiaomi gadget [device A] via USB cable.
  3. In the Termux window, execute the following command to validate the Fastboot connection: mi-fastboot devices
  4. You should now be prompted to allow Termux API access to Android. Click OK.
  5. Next, run the command below to get your Xiaomi device’s codename: mi-fastboot getvar product
  6. We must now create a TOKEN.
  • If you have a Snapdragon chipset device, run the command below: mi-fastboot getvar token
  • If you have a MediaTek chipset, however, run the following instruction: mi-fastboot oem get_token
  1. Now enter the following command: chmod +x get_token.sh
  2. Then, enter the following command: ./get_token.sh –product=PRODUCT –token=TOKEN DATA (Replace ‘PRODUCT’ with the device codename you obtained before. Replace ‘TOKEN’, with the one you have just above. Similarly, replace ‘DATA’ with the code obtained in STEP 2 using the MiUnlockAccount app)
  3. If this happens to be the first time you’ve attempted unlocking the bootloader of this device, you will be prompted to wait 168 hours. After you’ve crossed the time restriction, Xiaomi will send you an Unlock Device Token.

 

STEP 5: Unlocking Xiaomi Bootloader without PC

  1. Finally, run the following command [replace UNLOCK_TOKEN with the one you received from Xiaomi]: mi-fastboot oem-unlock “UNLOCK_TOKEN”
  2. Your device will now be reset, and the bootloader will be unlocked.

Conclusion

These were the steps to unlock the bootloader on your Xiaomi device without using the Mi Unlock Tool or a PC. Unlocking the bootloader gives the user the ability to flash custom ROMs or get root access to the device. If you like customizing and experimenting with your device, you should try unlocking the bootloader for your device.

Leave a Comment