Habib_Muhammad

Xiaomi CN Bootloader Unlock

Apr 28th, 2026
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | Science | 0 0
  1. CN版小米15全系等 8 Elite 机型,支持免费离线解锁BL!中文版本完整教程见本帖最结尾。
  2.  
  3. CN variants of the Xiaomi 15 series and other Snapdragon 8 Elite (SM8850) devices now officially support FREE, OFFLINE Bootloader Unlocking! The full Chinese version is located at the bottom of this post.
  4.  
  5.  
  6. EMBRACE FREEDOM! FREEDOM IS HERE!
  7. Unlock IMMEDIATELY. Do NOT let Xiaomi strip away your hard-won freedom!​
  8.  
  9.  
  10.  
  11. 🚨 URGENT WARNING & FIRMWARE PREREQUISITES 🚨
  12.  
  13. Currently, it is believed that you MUST be on the January 2026 security patch or older for this to work (the Redmi K90 February patch might also be unlockable).
  14.  
  15. If your system has unfortunately been updated to the February patch or newer, you can still attempt the exploit. If it fails, you must rush to an official Service Center immediately to downgrade your firmware. Do this as fast as humanly possible. Restrictions could drop at any second blocking downgrades to unlockable versions (there is already a strong consensus that service centers will only downgrade firmware released within the last 6 months—ACT NOW).
  16.  
  17. If you do not have time to unlock right this second, YOU MUST COMPLETELY FREEZE OR DISABLE THE SYSTEM UPDATER APP. Turning off the "Auto-Update" toggle in settings is completely useless now. A massive number of CN users have reported being hit with forced silent updates despite having the toggle disabled. Xiaomi is using absolutely ruthless, bottomless tactics to prevent users from attaining freedom.
  18.  
  19. Note: The current tutorials might still have slight imperfections. I am providing two different methods from two different authors, along with their respective files. If you fail with one, try the other.
  20.  
  21.  
  22.  
  23. 🛠️ TUTORIAL 1 (Automated Script) 🛠️
  24.  
  25. Original Author (Coolapk): @汤圆就是汤圆
  26. Contributors: @莫离然然, @Str123, @皓皓的小月
  27. Supported Devices:
  28. Xiaomi 15 (Tested - MUST flash downgrade mini-package)
  29. Xiaomi 15 Pro (Tested - No downgrade package needed)
  30. Xiaomi 15 Ultra (Tested - No downgrade package needed)
  31. Redmi K80 Pro (Tested - No downgrade package needed)
  32. Redmi K90 (Tested - No downgrade package needed)
  33. Xiaomi MIX Flip 2 (Tested - No downgrade package needed)
  34. Xiaomi Pad 8 Pro (Tested - No downgrade package needed)
  35.  
  36. Prerequisites:
  37. 1. Read the "Notes" (注意事项) text inside the folder before starting.
  38. 2. Enable USB Debugging and OEM Unlocking (Go to Settings -> My Device -> Detailed info -> Tap OS version 5 times to enable Developer Options).
  39. 3. Ensure PC drivers are installed (included in the folder).
  40. 4. Xiaomi 15 users MUST flash the downgrade mini-package first (integrated into the folder).
  41.  
  42. Instructions:
  43. 1. Download Tool: The original link required a +86 CN phone number, so I have mirrored it to Google Drive for global access: Google Drive Link (Tutorial 1)
  44. 2. Extract to a folder (Ensure there are NO spaces or special characters in the folder path). If you get extraction errors, update your archiving software.
  45. 3. Open the folder corresponding to your specific device model.
  46. 4. Run the script and click "Permissive and push abl and unlock" (宽容并推送abl并解锁).
  47. 5. Wait for the execution to finish. The phone screen will glitch out (artifacts). Wait exactly 10 seconds, then manually reboot into Bootloader (Hold Volume Down + Power).
  48. 6. Check your Bootloader status by running:
  49. Code:
  50. fastboot getvar unlocked
  51. If the output says `unlocked: yes`, you have successfully unlocked!
  52. 7. Finally, execute the "Restore official gpt and wipe data" (还原官方gpt并清数据) script and wait for the phone to boot.
  53.  
  54.  
  55.  
  56. 🛠️ TUTORIAL 2 (Manual Commands) 🛠️
  57.  
  58. Original Author (Coolapk): @素冬
  59. This method advises against 1-click scripts and requires manual command entry.
  60.  
  61. Prerequisites:
  62. Download the specific mini-package for your device AND download the matching Fastboot ROM from `xiaomirom.com`.
  63. CRITICAL: You MUST be able to acquire temporary Root access to proceed with these steps!
  64.  
  65. Instructions:
  66. 1. Boot into Fastboot mode (`adb reboot bootloader` or Vol Down + Power).
  67. 2. Execute the following commands in order:
  68. Code:
  69. fastboot.exe oem set-gpu-preemption 0 androidboot.selinux=permissive
  70. Code:
  71. fastboot continue
  72. Code:
  73. adb shell getenforce
  74. Code:
  75. adb.exe push "path_to_abl_file_in_mini_package" /data/local/tmp/abl
  76. Code:
  77. adb.exe shell service call miui.mqsas.IMQSNative 21 i32 1 s16 "dd" i32 1 s16 'if=/data/local/tmp/abl of=/dev/block/by-name/abl_a' s16 '/data/mqsas/log.txt' i32 60
  78. Code:
  79. adb.exe shell service call miui.mqsas.IMQSNative 21 i32 1 s16 "dd" i32 1 s16 'if=/data/local/tmp/abl of=/dev/block/by-name/abl_b' s16 '/data/mqsas/log.txt' i32 60
  80. Code:
  81. adb reboot bootloader
  82. Your device should now be back in Fastboot mode.
  83. 3. Drag the `flash_all.bat` script from the downgrade mini-package into your ADB command line and press Enter. Wait for it to finish. If you see a "lock" error, retry Step 2.
  84. 4. The mini-package will automatically boot you into FTD mode or a black screen. Once the PC detects the connection, enter `fastboot reboot bootloader`. If it stays on a black screen permanently, force it into Fastboot via Vol Down + Power.
  85. 5. In Fastboot, run the `bat` file located inside the "Core Unlock File" (核心解锁文件) folder. Wait for completion.
  86. 6. Your phone should now show a white screen. Manually hold Vol Down + Power to re-enter Fastboot.
  87. 7. Right-click the `flash_all.bat` script from the mini-package, click "Edit", and add the following lines at the location shown in the tutorial:
  88. Code:
  89. fastboot %* flash partition:0 %~dp0images/gpt_both0.bin || @echo "Flash gpt_both0 error" && exit 1
  90. fastboot %* flash partition:1 %~dp0images/gpt_both1.bin || @echo "Flash gpt_both1 error" && exit 1
  91. fastboot %* flash partition:2 %~dp0images/gpt_both2.bin || @echo "Flash gpt_both2 error" && exit 1
  92. fastboot %* flash partition:3 %~dp0images/gpt_both3.bin || @echo "Flash gpt_both3 error" && exit 1
  93. fastboot %* flash partition:4 %~dp0images/gpt_both4.bin || @echo "Flash gpt_both4 error" && exit 1
  94. fastboot %* flash partition:5 %~dp0images/gpt_both5.bin || @echo "Flash gpt_both5 error" && exit 1
  95. 8. Drag this modified script into the command line, hit Enter, and wait until the phone enters FTD.
  96. 9.In FTD, type fastboot reboot bootloader to enter Fastboot again. Finally, drag the flash_all.bat script from the OFFICIAL Fastboot ROM into the command line, wait for the flash to complete, and let the device boot.
  97.  
  98. Resource Downloads:
  99. (Includes a Chinese video tutorial, but does NOT contain files for the Xiaomi MIX Flip 2)
  100. The original link required a +86 CN phone number, so it has been mirrored to Google Drive:
  101. Password: Unlock
  102. https://drive.google.com/file/d/1_B1GqYGhngIQ2573NBNWqDHzwGe9yQV2/view?usp=sharing
  103.  
  104.  
  105.  
  106. 🗣️ BACKGROUND & DECLARATION OF FREEDOM 🗣️
  107.  
  108. Currently, the bootloader unlocking scene in the CN region is facing brutal, draconian network censorship. Massive numbers of tutorial threads are mysteriously vanishing. The very first author to publish a tutorial even had his account banned by "some unbeatable, invisible authoritative power" in CN. It was only after a massive outcry and appeals from the community that his account was unbanned, yet he remains heavily shadow-banned and throttled.
  109.  
  110. They can ban the people who release unlocking tools, but they will NEVER be able to ban the human desire and pursuit of freedom, digital property rights, and privacy. They cannot ban the inherent human rights and dignity we hold.
  111.  
  112. As global users, you may not comprehend just how unethical Xiaomi has become in China. The tactics they deploy are not just "exams that you can never pass." They are actively trampling user rights and dignity into the dirt. The grief of these past experiences cannot be summarized in a few lines of text. CN users frequently use the term "Playing us for monkeys" (耍猴) to describe the company. In the eyes of this corporation, the "human rights" of a tech enthusiast are worth less than those of a monkey.
  113.  
  114. This unlock exploit is the crystallized wisdom of the CN modding community. Its significance is monumental. It allows countless users—who lost their freedom and property rights due to bootloader lockdowns and Xiaomi's perversely abusive unlocking policies—to reclaim the freedom and dignity that rightfully belongs to them.
  115.  
  116. You might not have endured the Xiaomi CN "Unlock Exam" or the infamous 'Xiaomi Political Vetting' (政审) that follows—a corporate manual review process so notoriously difficult and arbitrary that CN users nicknamed it after government background checks because it is practically impossible to pass. It utilized malicious, forced score-manipulation mechanics even if you got everything right. It featured rigged single-choice questions where two different options were both technically correct, but the system only allowed you to pick one—ensuring a forced failure regardless of your choice. And if you dared to complain about this perverse system, or merely voiced a dissenting opinion, you were permanently blacklisted from passing.
  117.  
  118. This was never a simple exam. It was, plain and simple, an obedience training program.
  119.  
  120. Countless Mi Fans supported the Xiaomi 14 series with their hard-earned money, patiently waiting to reach Level 5 on the Xiaomi Community just to take the unlock exam. But when they finally met the criteria, Xiaomi subjected them to a test more torturous than the Chinese College Entrance Exam (Gaokao), followed by a vetting process that was pure obedience conditioning. Yet, after enduring this entire gauntlet of systematic obedience training, the ultimate irony is that most of these fans were still denied the unlock in the end.
  121.  
  122. These fans gave Xiaomi their absolute trust. Xiaomi repaid them with scars that will never fade.
  123.  
  124. But today, we won.
  125. A wicked company loses its profits, and a company that treats its users like monkeys loses their hearts.
Add Comment
Please, Sign In to add comment