Loading... > 真他丫难刷。。。。 ##准备: ###工具:数据线,一部Redmi 9A,一台电脑,最好可以科学上网。。。 ###文件: ***p.s.:文件名所带链接大部分为下载链接,途径代表下载网页或官方网站*** ####刷机包 1. [**原版国内包**](https://bigota.d.miui.com/V12.0.16.0.QCDCNXM/dandelion_images_V12.0.16.0.QCDCNXM_20210803.0000.00_10.0_cn_d412cbd9bd.tgz) ~~救砖和用回MIUI时用~~ 途径:https://www.xiaomi.cn/post/20980945 2. [**刷机MIUI底包**](https://bigota.d.miui.com/V12.0.11.0.QCDMIXM/dandelion_global_images_V12.0.11.0.QCDMIXM_20210223.0000.00_10.0_global_25fef36b06.tgz) ~~底包没啥好说的~~ 途径:https://gitee.com/zijianjiao2017/android_device_xiaomi_dandelion/releases/lineage-17.1-beta_1-20210410-UNOFFICIAL 3. [**LineageOS**](https://gitee.com/zijianjiao2017/android_device_xiaomi_dandelion/releases/lineage-17.1-beta_1-20210410-UNOFFICIAL) ~~此处@ImFatF1sh大佬~~ 途径:https://gitee.com/zijianjiao2017/android_device_xiaomi_dandelion ####刷机工具 1. [**Mi Flash Unlock**](http://miuirom.xiaomi.com/rom/u1106245679/5.5.224.55/miflash_unlock-5.5.224.55.zip) ~~一切的开始~~ 途径:https://www.miui.com/shuaji-393.html 2. [**Mi Flash**](http://bigota.d.miui.com/tools/MiFlash2018-5-28-0.zip) ~~SP_Tool我用不了啊。。。~~ 途径:https://www.miui.com/shuaji-393.html 3. [**SP Flash Tool**](https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v6.2124_Win.zip) ~~SP Tool救砖~~ 途径:https://spflashtools.com/ 4. [**Mi Flash Pro**](https://www.mediafire.com/file/d0xphl0efariuli/MiFlash_Pro_v6.3.318.42_EN_Setup.zip/file) ~~集成SP Flash Tool+MiFlash~~ 途径:https://miflashpro.com/ 5. [**MTK Bypass Utility**](https://github.com/MTK-bypass/bypass_utility/archive/refs/tags/v.1.4.2.zip) ~~Bypass 锁深刷,救砖时好使,要下这个一定要用下一个~~ 途径:https://github.com/MTK-bypass/bypass_utility 6. [**MTK Bypass Utility payloads**](https://github.com/MTK-bypass/exploits_collection/archive/refs/tags/v1.6.zip) ~~Bypass的payloads~~ 途径:https://github.com/MTK-bypass/exploits_collection 7. [**MTK Bypass带UI**](http://www.mediafire.com/file/qtmkilaimympapf/mtk_bypass_rev4.7z/file) ~~Bypass但是集成了UI也不用下payloads~~ 途径:https://www.mcttools.com/ ####ADB 1. [**ClockworkMod adb全家桶**](https://github.com/koush/adb.clockworkmod.com/releases/latest/download/UniversalAdbDriverSetup.msi) ~~adb+fastboot都带上了,顺便安装时加入path~~ 途径:https://adb.clockworkmod.com/ 2. [**Platform Tools**](https://developer.android.google.cn/studio/releases/platform-tools) ~~adb+fastboot Google官方版~~ 途径:https://developer.android.google.cn/studio/releases/platform-tools ####FASTBOOT刷入 1. [**PBRB rec**](https://github.com/PitchBlackRecoveryProject/android_device_xiaomi_dandelion-pbrp/releases/download/3.0.0-test/PBRP-dandelion-3.0.0-20210320-1754-UNOFFICIAL.zip) ~~Rec,虽说已经停止维护但还挺好用~~ 途径:https://github.com/PitchBlackRecoveryProject/android_device_xiaomi_dandelion-pbrp 2. [**vbmeta**](https://gitee.com/zijianjiao2017/android_device_xiaomi_dandelion/attach_files/667377/download/vbmeta.img) ~~去除vbmeta验证~~ 途径:https://gitee.com/zijianjiao2017/android_device_xiaomi_dandelion/releases/lineage-17.1-beta_1-20210410-UNOFFICIAL ####REC刷入 1. [**OpenGApps**](https://opengapps.org/) ~~Google!!!!~~ 途径;https://opengapps.org/ 2. [**Magisk**](https://github.com/topjohnwu/Magisk/releases/download/v23.0/Magisk-v23.0.apk) ~~Magisk v23 最新版就是香~~ 途径:https://github.com/topjohnwu/Magisk/ 3. [**奇怪脚本**](https://gitee.com/zijianjiao2017/just-shity-scripts/releases/Mirror_of_some_scripts) ~~基带什么的....~~ 途径:https://gitee.com/zijianjiao2017/just-shity-scripts/ ##开始: 1. **进行解锁** 1. 进入“设置 -> 开发者选项 -> 设备解锁状态”中绑定账号和设备; 2. 手动进入Bootloader模式(关机后,同时按住开机键和音量下键); 3. 打开Mi Flash Unlock,登录小米账号,通过USB连接手机,点击 “解锁”按钮; ***p.s.:可能需要等待168小时到1000小时不等。。。*** ~~开发者选项不会有人不会进吧,不会有人不知道Bootloader==FastBoot吧~~ 如图fastboot模式:  2. 安装adb并将其添加入电脑path(方便全局使用) , 3. **刷入底包** 1. 解压底包 2. 打开Mi Flash/Mi Flash Pro->Mi Flash 3. 选择有flash_all.bat的目录 4. 进入Bootloader模式,加载设备,刷机,大约5分钟刷完 4.**刷入PBRB并进入rec** 1. 手机再次进入Bootloader模式 2. 电脑Shift+右键->打开cmd输入 ```bash fastboot flash recovery path/to/your/PBRP/recovery.img fastboot reboot recovery ``` 5. **刷入LineageOS** 6. **刷入Magisk** 7. **刷入gapps** 8. **执行命令** ```bash adb shell cd /sdcard dd if=/dev/block/platform/bootdevice/by-name/boot of=boot.img dd if=boot.img of=/dev/block/platform/bootdevice/by-name/recovery rm boot.img exit ``` 9.**fastboot执行** ```bash fastboot flash vbmeta vbmeta.img fastboot flash vbmeta_system vbmeta.img fastboot flash vbmeta_vendor vbmeta.img fastboot flash recovery path/to/your/PBRP/recovery.img ``` 10. **正常开机** ```bash 去掉WiFi受限以及时间同步 删除变量:(删除以后默认启用) adb shell settings delete global captive_portal_mode 关闭检测: adb shell settings put global captive_portal_mode 0 查看当前状态: adb shell settings get global captive_portal_mode 删除(删除默认用HTTPS) adb shell settings delete global captive_portal_https_url adb shell settings delete global captive_portal_http_url 分别修改两个地址 adb shell settings put global captive_portal_http_url http://captive.v2ex.co/generate_204 adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204 时间同步 adb shell settings put global ntp_server ntp1.aliyun.com ``` 来不及做下次刷补充 最后修改:2021 年 09 月 18 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏