Loading... # 线刷 > 条件 > > - 打开开发者模式 > - 开启USB调试模式 > - 开启OEM解锁 ## 下载镜像 https://developers.google.com/android/drivers 选择对应版本下载  ## 刷机 - 解压镜像文件进入目录  - 重启手机到fastboot ```shell adb reboot bootloader ``` - 测试连接 ```shell fastboot devices ```  - 执行刷机脚本 ```shell ./flash-all.sh ``` > 执行过程会有点长 > > 执行完后会自动重启进入正常系统 ## Root - 安装 Magisk.apk - 将镜像目录里的imagse压缩包解压  - 将解压出来的boot.img 给 Magisk.apk 修补成root版镜像  - 重新进入fastboot模式将修补文件刷入到系统 ```shell adb reboot bootloader fastboot flash boot magisk_patched-25200_P20ps.img fastboot reboot ``` > 执行完后会自动重启进入系统 > 最后修改:2024 年 06 月 27 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏