GithubHelp home page GithubHelp logo

shuaji's Introduction

手机刷lineageos系统(android 11)

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系统

  1. 新建文件夹刷机,把上面下载的资源放入其中。
  2. 手机打开开发者选项
  3. 开启USB调试
  4. USB连接电脑
  5. 电脑上打开cmd
  6. 进入刷机文件夹cd C:\Users\Welcome WQ\Desktop\刷机

解锁手机OEM

  1. adb.exe reboot bootloader
  2. fastboot.exe oem unlock

刷入twrp-3.6.1_9-0-oneplus3.img

  1. fastboot.exe flash recovery twrp-3.6.1_9-0-oneplus3.img

安装lineage

  1. 重启手机到recovery模式
  2. Wipe -> Format Data
  3. Advanced Wipe -> Cache and System
  4. Advanced -> ADB Sideload
  5. 安装lineage系统:adb sideload lineage-18.1-20220502-nightly-oneplus3-signed.zip
  6. [可选]安装谷歌全家桶: adb sideload MindTheGapps-11.0.0-arm64-20220217_100228.zip

[可选]去掉WiFi受限的提示

  1. adb.exe shell settings put global ntp_server ntp1.aliyun.com
  2. adb.exe shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
  3. adb.exe shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204

4. 手机root

  1. 手机安装Magisk-v24.3.apk

adb.exe install Magisk-v24.3.apk

  1. 从手机安装包lineage-18.1-20220502-nightly-oneplus3-signed.zip中解压出boot.img
  2. 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
不会的可以使用别的方式,如微信传输。

  1. 在手机上用Magisk-v24.3.apk生成magisk_patched***.img
  2. 把手机上生成的magisk_patched***.img发送到电脑

我这里使用adb.exe工具发送,adb.exe pull /storage/emulated/0/Download/magisk_patched***.img C:\Users\Welcome WQ\Desktop\刷机

  1. 手机进入bootloader模式adb.exe reboot bootloader
  2. magisk_patched***.img刷到手机

fastboot.exe flash boot magisk_patched-24300_6MwHT.img

shuaji's People

Contributors

jungamer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.