Skip to content

Commit

Permalink
oneplus3: add LineageOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince1171 committed May 30, 2021
1 parent e34b5c0 commit adbf18e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions v2/devices/oneplus3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,61 @@ operating_systems:
- core:user_action:
action: "recovery"
slideshow: []
- name: "LineageOS"
options:
- var: "channel"
name: "LineageOS version"
tooltip: "Which LineageOS channel do you want to install?"
type: "select"
remote_values:
lineage_os:channels:
- var: "installTWRP"
name: "Install TWRP"
tooltip: "Install TWRP 3.2.1-0 to recovery (recommended)"
type: "checkbox"
value: true
prerequisites: []
steps:
- actions:
- core:download:
group: "firmware"
files:
- url: "https://archive.org/download/twrp-3.2.1-0-oneplus3/twrp-3.2.1-0-oneplus3.img"
checksum:
sum: "4df27c0e0ea7dde9139f7f4717206df3577c34163c2822bc3e8a26b15c60ccd4"
algorithm: "sha256"
condition:
var: "installTWRP"
value: true
- actions:
- adb:reboot:
to_state: "bootloader"
fallback:
- core:user_action:
action: "bootloader"
- actions:
- fastboot:flash:
partitions:
- partition: "recovery"
file: "twrp-3.2.1-0-oneplus3.img"
group: "firmware"
condition:
var: "installTWRP"
value: true
- actions:
- fastboot:boot:
group: "firmware"
file: "twrp-3.2.1-0-oneplus3.img"
fallback:
- core:user_action:
action: "recovery"
- actions:
- lineage_os:install:
- actions:
- adb:reboot:
to_state: "recovery"
slideshow: []

- name: "OxygenOS"
options:
- var: "version"
Expand Down

0 comments on commit adbf18e

Please sign in to comment.