-
Notifications
You must be signed in to change notification settings - Fork 76
/
oneplus2.yml
250 lines (250 loc) · 8.62 KB
/
oneplus2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
name: "Oneplus 2"
codename: "oneplus2"
formfactor: "phone"
aliases:
- "msm8994"
- "OnePlus2"
doppelgangers: []
user_actions:
update:
title: "Update to latest available version"
description: "Before installing anything, make sure the OnePlus2 is updated to the latest version of OxygenOS (3.6.1)."
link: "https://www.oneplus.com/support/softwareupgrade/details?code=PM1574156053972"
twrp:
title: "TWRP"
description: "The installation instructions for this device are not fully tested yet. If you come from Android, you will have to install TWRP and format to ext4 /data and /system from inside TWRP before you can install Ubuntu Touch. \n if errors occures, it is recommended to wipe all partitions, reboot to recovery again, then wipe all partitions again."
link: "https://twrp.me/oneplus/oneplustwo.html"
recovery:
title: "Reboot to Recovery"
description: "With the device powered off, hold Volume Down + Power."
image: "phone_power_down"
button: true
bootloader:
title: "Reboot to Bootloader"
description: "With the device powered off, hold Volume Up + Power."
image: "phone_power_up"
button: true
reboot:
title: "Reboot the device"
description: "Hold down the power button until the device powers down. Then, release it briefly and hold it down again until the device boots."
button: true
twrp_unlock:
title: "TWRP unlock"
description: 'Your device will boot Team Win Recovery Project (TWRP). If the screen is off, hit the power button once to light it up, then swipe the bar in the bottom to the right where it says to "Swipe to allow modifications."'
button: true
twrp_sideload:
title: "TWRP sideload"
description: 'Select "Advanced" and then "ADB Sideload". Check the boxes "Wipe Dalvik Cache" and "Wipe Cache" and then swipe the bar in the bottom where it says "Swipe to Start Sideload".'
button: true
twrp_sideload_reboot:
title: "Sideload complete!"
description: "Follow the on-screen instructions to complete the sideload."
button: true
unlock:
- "update"
- "twrp"
handlers:
bootloader_locked:
actions:
- fastboot:oem_unlock:
operating_systems:
- name: "Ubuntu Touch"
compatible_installer: ">=0.9.2-beta"
options:
- var: "channel"
name: "Channel"
tooltip: "The release channel"
link: "https://docs.ubports.com/en/latest/about/process/release-schedule.html"
type: "select"
remote_values:
systemimage:channels:
- var: "wipe"
name: "Wipe Userdata"
tooltip: "Wipe personal data (required for new installs)"
type: "checkbox"
- var: "logo"
name: "Flash Logo"
tooltip: "Flash new Ubuntu Touch splash screen logo (thanks to Ruben Carneiro)"
link: "https://rubencarneiro.github.io/rubencarneiro.io/Ubuntu-Touch-Device-Bootlogos.markdown/"
type: "checkbox"
prerequisites: []
steps:
- actions:
- core:download:
group: "firmware"
files:
- url: "https://cdimage.ubports.com/devices/oneplus2/halium-unlocked-recovery_oneplus2.img"
checksum:
sum: "460264723cf414b3dcfd4f0d8a781007772d1811957d6d22d712ed1fbd7f1523"
algorithm: "sha256"
- url: "https://raw.githubusercontent.com/rubencarneiro/rubencarneiro.io/main/assets/downloads/oneplus2/logo.bin"
checksum:
sum: "55acbccc658df016868452e915f49f428cc2df7244f4ddec9aad337fe8bd0c91"
algorithm: "sha256"
- actions:
- adb:reboot:
to_state: "bootloader"
fallback:
- core:user_action:
action: "bootloader"
- actions:
- fastboot:flash:
partitions:
- partition: "recovery"
file: "halium-unlocked-recovery_oneplus2.img"
group: "firmware"
- actions:
- fastboot:flash:
partitions:
- partition: "LOGO"
file: "logo.bin"
group: "firmware"
condition:
var: "logo"
value: true
- actions:
- fastboot:erase:
partition: "cache"
- actions:
- fastboot:format:
partition: "userdata"
condition:
var: "wipe"
value: true
- actions:
- fastboot:boot:
group: "firmware"
file: "halium-unlocked-recovery_oneplus2.img"
fallback:
- core:user_action:
action: "recovery"
- actions:
- systemimage:install:
- actions:
- adb:reboot:
to_state: "recovery"
fallback:
- core:user_action:
action: "recovery"
slideshow: []
- name: "LineageOS"
compatible_installer: ">=0.9.2-beta"
options:
- var: "gapps"
name: "Install OpenGApps"
tooltip: "Install Google Play and Google Services"
type: "checkbox"
- var: "installTWRP"
name: "Install TWRP"
tooltip: "Install TWRP 3.2.1-0 to recovery (recommended)"
type: "checkbox"
value: true
- var: "LineageVersion"
name: "Lineage Version"
tooltip: "The version of LineageOS to install"
type: "select"
values:
- value: "16"
label: "LineageOS 16 (Android 9)"
prerequisites: []
steps:
- actions:
- core:download:
group: "LineageOS"
files:
- url: "https://archive.org/download/lineage-16.0-20200418-nightly-oneplus2-signed/lineage-16.0-20200418-nightly-oneplus2-signed.zip"
checksum:
sum: "5aaf16d27abbd14a535086cbd4503cbac0aa78ef057caace4a72729aa4e21c94"
algorithm: "sha256"
condition:
var: "LineageVersion"
value: "16"
- actions:
- core:download:
group: "firmware"
files:
- url: "https://ia800105.us.archive.org/28/items/twrp-oneplus2/twrp-3.2.1-0-oneplus2.img"
checksum:
sum: "343691d4e85d24896afe2bd7ab6125a5047a70aa1fb4bfbb2b1cd54f744a20c9"
algorithm: "sha256"
condition:
var: "installTWRP"
value: true
- actions:
- core:download:
group: "OpenGApps"
files:
- url: "https://archive.org/download/opengapps-nano-20200615/open_gapps-arm64-9.0-nano-20200615.zip"
checksum:
sum: "74ca6374d0c6c476d5ea1106c841ce65b7d108a253fdb2434be4b93166c2cd43"
algorithm: "sha256"
condition:
var: "gapps"
value: true
- actions:
- core:unpack:
group: "LineageOS"
files:
- archive: "lineage-16.0-20200418-nightly-oneplus2-signed.zip"
dir: "unpacked"
- actions:
- adb:reboot:
to_state: "bootloader"
fallback:
- core:user_action:
action: "bootloader"
- actions:
- fastboot:flash:
partitions:
- partition: "recovery"
file: "twrp-3.2.1-0-oneplus2.img"
group: "firmware"
condition:
var: "installTWRP"
value: true
- actions:
- fastboot:flash:
partitions:
- partition: "boot"
file: "unpacked/boot.img"
group: "LineageOS"
raw: true
- actions:
- core:user_action:
action: "recovery"
- actions:
- core:user_action:
action: "twrp_unlock"
- actions:
- core:user_action:
action: "twrp_sideload"
- actions:
- adb:sideload:
group: "LineageOS"
file: "lineage-16.0-20200418-nightly-oneplus2-signed.zip"
condition:
var: "LineageVersion"
value: "16"
- actions:
- core:user_action:
action: "twrp_sideload"
condition:
var: "gapps"
value: true
- actions:
- adb:sideload:
group: "OpenGApps"
file: "open_gapps-arm64-9.0-nano-20200615.zip"
condition:
var: "gapps"
value: true
- actions:
- core:user_action:
action: "twrp_sideload_reboot"
- actions:
- adb:reboot:
to_state: "system"
fallback:
- core:user_action:
action: "reboot"
slideshow: []