forked from ubports/installer-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoneplus2.json
309 lines (308 loc) · 9.77 KB
/
oneplus2.json
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
{
"name": "Oneplus 2",
"codename": "oneplus2",
"unlock": ["update", "twrp"],
"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
},
"untested": {
"title": "Untested",
"description": "Sorry, this configuration has not yet been fully tested. You might run into issues. If you want to help us improve, click the link below to see the config file.",
"button": true
}
},
"operating_systems": [
{
"name": "Ubuntu Touch",
"sanity_check": "Are you sure?",
"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": { "type": "systemimagechannels" }
},
{
"var": "wipe",
"name": "Wipe Userdata",
"tooltip": "Wipe personal data",
"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": [
{
"type": "download",
"group": "firmware",
"files": [
{
"url": "https://ci.ubports.com/job/Device%20Compatibility%20Images/job/halium-oneplus2/2/artifact/halium-unlocked-recovery_oneplus2.img",
"checksum": {
"sum": "528ec709b0735a699484d0c748350a6c260ab8b8ae587395fe4a9dc16818c3be",
"algorithm": "sha256"
}
},
{
"url": "https://raw.githubusercontent.com/rubencarneiro/rubencarneiro.io/main/assets/downloads/oneplus2/logo.bin",
"checksum": {
"sum": "55acbccc658df016868452e915f49f428cc2df7244f4ddec9aad337fe8bd0c91",
"algorithm": "sha256"
}
}
]
},
{
"type": "adb:reboot",
"to_state": "bootloader",
"fallback_user_action": "bootloader"
},
{
"type": "fastboot:flash",
"flash": [
{
"partition": "recovery",
"file": "halium-unlocked-recovery_oneplus2.img",
"group": "firmware"
}
]
},
{
"type": "fastboot:flash",
"condition": {"var": "logo", "value": true},
"flash": [
{
"partition": "LOGO",
"file": "logo.bin",
"group": "firmware"
}
]
},
{
"type": "fastboot:erase",
"partition": "cache"
},
{
"type": "fastboot:format",
"condition": {"var": "wipe", "value": true},
"partition": "userdata"
},
{
"type": "fastboot:boot",
"file": "halium-unlocked-recovery_oneplus2.img",
"fallback_user_action": "recovery",
"group": "firmware"
},
{
"type": "systemimage"
},
{
"type": "adb:reboot",
"to_state": "recovery",
"fallback_user_action": "recovery"
}
],
"slideshow": []
},
{
"name": "LineageOS",
"sanity_check": "Are you sure?",
"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": [
{
"type": "download",
"group": "LineageOS",
"condition": {"var": "LineageVersion", "value": "16"},
"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"
}
}
]
},
{
"type": "download",
"group": "firmware",
"condition": {"var": "installTWRP", "value": true},
"files": [
{
"url": "https://ia800105.us.archive.org/28/items/twrp-oneplus2/twrp-3.2.1-0-oneplus2.img",
"checksum": {
"sum": "343691d4e85d24896afe2bd7ab6125a5047a70aa1fb4bfbb2b1cd54f744a20c9",
"algorithm": "sha256"
}
}
]
},
{
"type": "download",
"condition": {"var": "gapps", "value": true},
"group": "OpenGApps",
"files": [
{
"url": "https://archive.org/download/opengapps-nano-20200615/open_gapps-arm64-9.0-nano-20200615.zip",
"checksum": {
"sum": "74ca6374d0c6c476d5ea1106c841ce65b7d108a253fdb2434be4b93166c2cd43",
"algorithm": "sha256"
}
}
]
},
{
"type": "unpack",
"group": "LineageOS",
"files": [
{
"archive": "lineage-16.0-20200418-nightly-oneplus2-signed.zip",
"dir": "unpacked"
}
]
},
{
"type": "adb:reboot",
"to_state": "bootloader",
"fallback_user_action": "bootloader"
},
{
"type": "fastboot:flash",
"condition": {"var": "installTWRP", "value": true},
"flash": [
{
"partition": "recovery",
"file": "twrp-3.2.1-0-oneplus2.img",
"group": "firmware"
}
]
},
{
"type": "fastboot:flash",
"flash": [
{
"partition": "boot",
"file": "unpacked/boot.img",
"group": "LineageOS",
"raw": true
}
]
},
{
"type": "user_action",
"action": "recovery"
},
{
"type": "user_action",
"action": "twrp_unlock"
},
{
"type": "user_action",
"action": "twrp_sideload"
},
{
"type": "adb:sideload",
"condition": {"var": "LineageVersion", "value": "16"},
"file": "lineage-16.0-20200418-nightly-oneplus2-signed.zip",
"group": "LineageOS"
},
{
"type": "user_action",
"condition": {"var": "gapps", "value": true},
"action": "twrp_sideload"
},
{
"type": "adb:sideload",
"condition": {"var": "gapps", "value": true},
"file": "open_gapps-arm64-9.0-nano-20200615.zip",
"group": "OpenGApps"
},
{
"type": "user_action",
"action": "twrp_sideload_reboot"
},
{
"type": "adb:reboot",
"to_state": "system",
"fallback_user_action": "reboot"
}
],
"slideshow": []
}
]
}