1. 备份好手机数据
2. 下载所需工具
下载adb.exe fastboot.exe
下载地址:https://dl.google.com/android/repository/platform-tools-latest-windows.zip
下载twrp-3.6.1_9-0-oneplus3.img
一加三下载地址:https://dl.twrp.me/oneplus3/twrp-3.6.1_9-0-oneplus3.img
其它手机型号下载地址https://twrp.me/Devices
下载lineage系统[lineage-18.1-20220502-nightly-oneplus3-signed.zip]
一加三下载地址:https://mirrorbits.lineageos.org/full/oneplus3/20220502/lineage-18.1-20220502-nightly-oneplus3-signed.zip
其它手机型号下载地址https://download.lineageos.org
[可选]下载谷歌全家桶[MindTheGapps-11.0.0-arm64-20220217_100228.zip]
lineage-18.1-20220502-nightly-oneplus3-signed.zip 对应的下载地址为: http://downloads.codefi.re/jdcteam/javelinanddart/gapps/MindTheGapps-11.0.0-arm64-20220217_100228.zip
其它系统下载地址:https://wiki.lineageos.org/gapps
下载Magisk-v24.3.apk
下载地址:https://github.com/topjohnwu/Magisk/releases
3. 刷入lineageos系统
- 新建文件夹刷机,把上面下载的资源放入其中。
- 手机打开开发者选项
- 开启USB调试
- USB连接电脑
- 电脑上打开cmd
- 进入刷机文件夹cd C:\Users\Welcome WQ\Desktop\刷机
解锁手机OEM
- adb.exe reboot bootloader
- fastboot.exe oem unlock
刷入twrp-3.6.1_9-0-oneplus3.img
- fastboot.exe flash recovery twrp-3.6.1_9-0-oneplus3.img
安装lineage
- 重启手机到recovery模式
- Wipe -> Format Data
- Advanced Wipe -> Cache and System
- Advanced -> ADB Sideload
- 安装lineage系统:adb sideload lineage-18.1-20220502-nightly-oneplus3-signed.zip
- [可选]安装谷歌全家桶: adb sideload MindTheGapps-11.0.0-arm64-20220217_100228.zip
[可选]去掉WiFi受限的提示
- adb.exe shell settings put global ntp_server ntp1.aliyun.com
- adb.exe shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
- adb.exe shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
4. 手机root
手机安装Magisk-v24.3.apk
adb.exe install Magisk-v24.3.apk
从手机安装包lineage-18.1-20220502-nightly-oneplus3-signed.zip中解压出boot.img把boot.img发送到手机;
我这里使用adb.exe工具发送,adb.exe push C:\Users\Welcome WQ\Desktop\刷机\lineage-18.1-20220502-nightly-oneplus3-signed\boot.img /storage/emulated/0/Download
不会的可以使用别的方式,如微信传输。
在手机上用Magisk-v24.3.apk生成magisk_patched***.img把手机上生成的magisk_patched***.img发送到电脑
我这里使用adb.exe工具发送,adb.exe pull /storage/emulated/0/Download/magisk_patched***.img C:\Users\Welcome WQ\Desktop\刷机
手机进入bootloader模式adb.exe reboot bootloader把magisk_patched***.img刷到手机
fastboot.exe flash boot magisk_patched-24300_6MwHT.img
关键词:手机刷lineageos系统(lineageos刷机办法)