为自己的mi8 刷入 lineageos 系统

1 阅读1分钟

之前自己的 mi8 安装的 pixelexperience ROM Android 14. 不知道什么原因,估计是自己不当刷机,录音没有声音,且该 ROM 不再更新了,影响我调试 flutter 应用决定换 lineageos 22 android 15

之前已经刷过 pixelexperience ROM 设备 BL 解锁已经做过,

需要先刷回 miui 官方rom ,下载地址 https://miuirom.org/phones/mi-8#China 注意要选择 ### Fastboot ROM (flash file) tgz 结尾的, miuirom.org/load?o=mi-8…

你可能需要 platformtools 下载地址:

https://wiki.pixelexperience.org/help/adb-fastboot-guide/
windows
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
https://developer.android.com/studio/run/win-usb
macOS:
https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
linux:
https://dl.google.com/android/repository/platform-tools-latest-linux.zip

配置 adb fast 到环境变量

长按 电源 + 音量减 到设备重启 出现 logo 松手进入 fastboot模式 , 长按 电源 + 音量加 到设备重启 出现 logo 松手进入 recover模式,

进入 fastboot模式,

解压缩 dipper_images_V12.5.2.0.QEACNXM_20211028.0000.00_10.0_cn_f4ae6b9441.tgz 得到 dipper_images_V12.5.2.0.QEACNXM_20211028.0000.00_10.0_cn文件夹 其内容如下:

➜  dipper_images_V12.5.2.0.QEACNXM_20211028.0000.00_10.0_cn tree .
.
├── flash_all.bat
├── flash_all.sh
├── flash_all_except_storage.bat
├── flash_all_except_storage.sh
├── flash_all_lock.bat
├── flash_all_lock.sh
├── flash_gen_crc_list.py
├── flash_gen_md5_list.py
├── flash_gen_resparsecount
├── images/
├── md5sum.xml
└── misc.txt

windows flash_all.bat macOS/Linux flash_all.sh 完成刷机到官方原版固件,

刷回原版后会要求使用之前的 xiaomi 账号解锁设备,解锁完后进入系统测试 手机打电话、发短信、录音、拍照功能正常,进入设备里面看到 miui 版本号连续点击 7次,打开开发者模式,然后在开发者模式里面打开允许 USB 调试,在手机屏幕提示弹框点击允许,

接下来刷入 lineageos

在 https://download.lineageos.org/devices/dipper/builds 下载最新的 lineageos ROM 参考

wiki.lineageos.org/devices/dip… 教程一步一步来就可以, 其实就是

主要步骤是 1 刷入 lineageos 的 recovery fastboot flash recovery recovery.img

2 重启进入 lineageos 的 recovery

3 刷入 lineageos 的 ROM

4 如果想要 Google 商店要在重启之前刷入 ,下载地址 https://wiki.lineageos.org/gapps/

每次进入 recover 都要 三清 格式化内存 系统

上面仅仅是记录了一下大致过程,刷机需谨慎