注意:教程来源于用户上传,互联网收集,其中真实性注意斟酌,操作可能存在风险,请践行时注意保存资料防止丢失,如果本教程侵犯您的个人或者集体利益,请邮件fiimecn@163.com下架处理,非常感谢!
MIUI Bootloader 无需电脑解锁(手机到手机)
翻译作者:FiimeROM奥奥(qq741500926)
步骤1 【配置设置】【主电话】:
» 前往“设置”>“关于手机”:多次单击“MIUI 版本”,直至启用开发者选项
» 进入设置主页 > 其他设置 > 开发者选项:启用 OEM 解锁和 USB 调试
» 然后进入小米解锁状态:点击添加帐户和设备
步骤2【安装Flash脚本】【辅助电话】:
» 在辅助手机上下载并安装以下APP:
file1 (https://github.com/RohitVerma882/termux-miunlock/raw/main/account.apk)
file2 (https://github.com/termux/termux-api/releases/download/v0.50.1/termux-api_v0.50.1+github-debug.apk)
» 打开 Termux 应用程序:按照说明
一一运行这些命令
步骤3
一个可用于检索小米设备的引导加载程序解锁BL的程序。 (并解锁引导加载程序)使用 Termux
注意:此工具无法绕过 7、14、30 天的解锁时间。
从存储库安装所需的应用程序 termux、termux-api 和 account.apk。
克隆这个仓库。
git 克隆
https://github.com/RohitVerma882/termux-miunlock.git && cd termux-miunlock
运行setup.sh来安装所需的包。
chmod +x setup.sh && ./setup.sh
获取设备代号
mi-fastboot getvar product
获取设备token
mi-fastboot getvar token
获取 mtk 设备的设备令牌。
mi-fastboot OEM get_token
如果您收到 2 或 3 个令牌,则将其合并,例如:
// 处理前 (引导加载程序)令牌:VQECMAEQTSdjm281zqPylolzfxy3bQMGbWVy (引导加载程序)令牌:bGluAhTVfQBXJGUJ78qoZQ0ctBDLQ1PkJg== // 处理后 VQECMAEQTSdjm281zqPylolzfxy3bQMGbWVybGluAhTVfQBXJGUJ78qoZQ0ctBDLQ1PkJg==
使用所需参数运行 get_token.sh 脚本。
chmod +x get_token.sh && ./get_token.sh --product=PRODUCT --token=TOKEN DATA
如果代码成功,它将给您一个非常长的字符串,这是解锁令牌。
如果出现错误 20045,您应该传递在 account.apk 中使用的正确区域
可用选项:印度、全球、中国、俄罗斯、欧洲
请输入区域为:india, global, china, russia, europe
chmod +x get_token.sh && ./get_token.sh --product=PRODUCT --region=REGION --token=TOKEN DATA
将解锁令牌字符串写入二进制bin文件。
回显
echo "UNLOCK_TOKEN" | xxd -r -p > token.bin
举例:
mi-fastboot stage token.bin && mi-fastboot oem unlock
或者(跳过第 8 步):
mi-fastboot oem-unlock "UNLOCK_TOKEN"
设备将恢复出厂设置并成功解锁。
注意:我们对任何数据丢失或设备损坏概不负责。继续需要您自担风险。此过程需要使用2部Android手机和一根OTG线进行ADB调试。
如果这是您第一次解锁引导加载程序或您的设备正在使用新的 MIUI 帐户,请在 7 天后继续执行步骤 2
制作人员
- Techbuzznet (https://youtu.be/l2N_xVtb4es?si=WXHscsNX2yxg-ZHx)(针对印度人的视频说明)
- RohitVerma888 (https://github.com/RohitVerma882)
- WildWaze (https://t.me/WildWaze)
译文信息:
译文来源:https://t.me/Mi_Updates/8137
MIUI Bootloader Unlock without PC (Phone-To-Phone)
Step 1 [Configuring Settings] [Primary Phone]:
» Go to Settings > About Phone: Click on MIUI Version multiple times until developer options are enabled
» Go to Settings Homepage > Additional Settings > Developer Options: Enable OEM Unlocking and USB Debugging
» Then go to Mi Unlock Status: Click on Add account and device
Step 2 [Installing Flash scripts] [Secondary Phone]:
» Download and install these APKs on your secondary phone:
file1 (https://github.com/RohitVerma882/termux-miunlock/raw/main/account.apk)
file2 (https://github.com/termux/termux-api/releases/download/v0.50.1/termux-api_v0.50.1+github-debug.apk)
» Connect the primary phone to the secondary phone via OTG
» Boot the primary phone into fastboot mode
» Open the Termux app: Follow and run these commands one by one according to the instructions (https://github.com/RohitVerma882/termux-miunlock?tab=readme-ov-file#instructions)
A program that can be used to retrieve the bootloader unlock token for Xiaomi devices. (and unlock the bootloader) using Termux
Note: This tool cannot bypass the 7, 14, 30 day unlock time.
Install required apps termux, termux-api and account.apk from repo.
Clone this repo.
git clone
https://github.com/RohitVerma882/termux-miunlock.git && cd termux-miunlock
Run setup.sh to install required packages.
chmod +x setup.sh && ./setup.sh
Get device product
mi-fastboot getvar product
Get device token
mi-fastboot getvar token
Get device token for mtk device.
mi-fastboot oem get_token
if you received 2 or 3 token then merge it, example:
// Before (bootloader) token: VQECMAEQTSdjm281zqPylolzfxy3bQMGbWVy (bootloader) token: bGluAhTVfQBXJGUJ78qoZQ0ctBDLQ1PkJg== // After VQECMAEQTSdjm281zqPylolzfxy3bQMGbWVybGluAhTVfQBXJGUJ78qoZQ0ctBDLQ1PkJg==
Run get_token.sh script with required arguments.
chmod +x get_token.sh && ./get_token.sh --product=PRODUCT --token=TOKEN DATA
if the code succeeds it will give you a really long string which is the unlock token.
You should pass correct region which you used in account.apk if you got error 20045
available options: india, global, china, russia, europe
chmod +x get_token.sh && ./get_token.sh --product=PRODUCT --region=REGION --token=TOKEN DATA
Convert unlock token string to binary token.
echo "UNLOCK_TOKEN" | xxd -r -p > token.bin
Type:
mi-fastboot stage token.bin && mi-fastboot oem unlock
Or (skip step 8):
mi-fastboot oem-unlock "UNLOCK_TOKEN"
The device will factory reset and unlock successfully.
Note: We are not responsible for any data loss or corrupt devices. Proceed at your own risk.
This procedure requires the use of 2 Android phones and an OTG cable for ADB debugging.
If this is your first time unlocking the bootloader or your device is using a new MIUI account, proceed with Step 2 after 7 days
Credits
- Techbuzznet (https://youtu.be/l2N_xVtb4es?si=WXHscsNX2yxg-ZHx) (Video instructions for Indians)
- RohitVerma888 (https://github.com/RohitVerma882)
- WildWaze (https://t.me/WildWaze) (thx for banner)
没有评论数据