前言

十年生死两茫茫
CM魔趣今何在
现在我们稳定点就剩下
CM的继承者LineageOS

准备

下载 TWRP

1
https://twrp.me/oneplus/oneplusone.html

下载 LineageOS 系统包

1
https://download.lineageos.org/devices/bacon/builds

下载 ADB 软件包

1
2
3
4
5
6
# Windows
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
# Mac
https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
# Linux
https://dl.google.com/android/repository/platform-tools-latest-linux.zip

Fastboot 解锁 BootLoader

开启 USB 调试

设置 --> 更多 --> 开发者选项 --> USB调试

ADB 连接设备

解压ADB软件包并在Terminal引用安装路径

1
adb devices 

ADB 进入 Fastboot 模式

1
adb reboot bootloader

Fastboot 连接设备

1
fastboot devices

解锁 BootLoader

1
fastboot oem unlock

Fastboot 刷入 TWRP

刷入 TWRP

1
fastboot flash recovery <twrp-Version-Devices.img>

进入 TWRP

  • 第一次刷入后需要先输入指令进入一次TWRP
  • 以后使用音量- + 电源键 进入 TWRP
1
fastboot boot <twrp-Version-Devices.img>

TWRP 刷入 LineageOS

进入 TWRP

1
adb reboot recovery

清除数据

格式化 Data 分区

清除 --> 格式化 Data 分区 --> 输入 yes 确认 --> 完成后点击 返回

高级清除

清除 --> 高级清除 --> Dalvik / ART Cache,System,Cache --> 返回

ADB sideload 安装 LineageOS

  • ColorOS v1.2.0救砖包有点问题
  • 现已换成CyanogenMod v13.0救砖包
1
adb sideload <ThirdOS.zip>

稍等便会自动刷完

LineageOS 刷入成功

参考 & 引用

https://segmentfault.com/a/1190000012314376
https://miuiver.com/how-to-flash-lineageos/
https://bbs.oneplus.com/thread/3228966