备忘录

首先明确刷机的目标

k20pro 当做主力机,日常刷b站不游戏,改电池,稳续航
配置: 橙狐rec+星空官改12.5+阿尔法面具

明确刷机思路

  1. 解锁bl 小米解锁
  2. 刷入rec twrp 橙狐 PC ADB
  3. 刷rom 星空官改12.5
  4. 刷内核 魔理沙r16
  5. 刷面具 lsp riru啥的 搬运地址
  6. 准备救砖 如果不出意外就没有6了

前置知识

双清、三清、四清

Data:程序数据,可以理解为清除安装的app。
Cache:系统缓存,刷完出现问题,可以用于恢复还原。
Dalvik Cache:安卓系统启动时,需要建立一个所有程序的信任分支、以优化缓存文件,加快启动速度,清除这个,初次启动很慢,以后启动就快了,比如刷完rom后第一次启动会等比较长是时间,之后就正常启动了。
System分区:系统分区,理解为原来的系统,清除了,如果不想刷机了,那么原来的系统也没有了。
内置存储:挂载和大容量存储,即手机的内部存储文件,打开文件管理看到的那个。
双清:清除Data、Cache
三清:清除Data、Cache和Dalvik Cache
四清:清除Data、Cache、Dalvik Cache和System分区

魔理沙内核下载地址

小米9 MIUI12/11:https://wwa.lanzoui.com/b099rg0qd 密码:36li
K20P MIUI12/11/类原生(LOSFOD):https://wwa.lanzoui.com/b099rg1oh 密码:1hra
小米9/K20Pro MIUI12.5下载:https://wwa.lanzoui.com/b09anlbej 密码:1g8t
小米9/K20Pro Android 12类原生下载:https://wwa.lanzoui.com/b09apj77i 密码:hu1t
BUG反馈,交流讨论请加群:707232355 入群答案为MarisaKernel
开发不易,不要白嫖,送我一瓶快乐水可以嘛?你的一点小小捐赠,也许就会改善整个国内开发界!w
爱发电地址:https://afdian.net/@laulan56

刷入橙狐rec

下载windows驱动
橙狐官方教程

由于橙狐recovery暂时未提供一键刷入工具,存在格式一般为2种,一种是XXX.img结尾一种为ZIP格式。
如果是ZIP格式,我们先刷入TWRP中文版,使用TWRP安装橙狐recovery卡刷包,安装完成后重启到recovery,你就会发现TWRP成功变成橙狐recovery了
如果是img格式,我们可以直接fastboot刷入recovery镜像,或者直接先刷入TWRP,使用TWRP安装镜像功能,刷入对应的镜像到recovery分区,再次进入recovery,也就成功刷入了
橙狐官方文档走adb命令
Via fastboot, and then recovery
You need a PC for this. If you do not have a PC, or access to a PC, then you are stuck!
Note - these instructions are for A-only devices:

Unlock your bootloader (if not already unlocked)
Install adb, fastboot from here, and the relevant USB drivers onto your PC
Download the correct OrangeFox zip file to your phone, and to your PC
Extract recovery.img from the OrangeFox zip file, and copy recovery.img to your PC’s adb directory
Reboot your phone into fastboot/bootloader mode
Open up a command line window / terminal emulator on your PC
Change to the adb directory on your PC
Flash OrangeFox Recovery by using the fastboot flash recovery recovery.img command
Reboot into OrangeFox by pressing the power + volume up keys, until you see the OrangeFox splash screen (the keys may be may vary on your device)
After OrangeFox has booted up, check that everything is working – eg, that it has mounted the data partition successfully, and that the touchscreen works.
Find and select the OrangeFox zip on your phone, tap on it, and swipe to install it (because OrangeFox Recovery needs some files from the zip)
After installation, the phone will automatically reboot into OrangeFox
Enjoy!
最后修改:2022 年 02 月 08 日
如果觉得我的文章对你有用,请随意赞赏