forked from ubports/installer-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
laurel_sprout.yml
180 lines (180 loc) · 6.09 KB
/
laurel_sprout.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
name: "Xiaomi Mi A3"
codename: "laurel_sprout"
formfactor: "phone"
aliases: []
doppelgangers: []
user_actions:
confirm_model:
title: "Confirm your model"
description: "Please double-check that your device is a Xiaomi Mi A3 (laurel_sprout). Xiaomi Mi CC9e is NOT supported."
confirm_os:
title: "Confirm OS version"
description: "Your device must be running the stock Android 9 firmware before flashing. If your device is running Android 11 officially, DO NOT ATTEMPT TO ROLLBACK TO ANDROID 9. Doing so will render your device unusable. If your device is running Android 10, download the Android 9 firmware linked below and flash it to your device, then resume the installation."
link: "http://bigota.d.miui.com/V10.3.16.0.PFQMIXM/laurel_sprout_global_images_V10.3.16.0.PFQMIXM_20200324.0000.00_9.0_4a60d662bd.tgz"
troubleshooting:
title: "Post-Install troubleshooting"
description: 'If after installing Ubuntu Touch you can''t connect to Wi-Fi, pair Bluetooth devices or use cellular data, run the installer again and pick "Reflash dtbo" when you''re prompted to select an OS.'
bootloader:
title: "Reboot to Bootloader"
description: "With the device powered off, press and hold the VOLUME DOWN and POWER buttons until the screen turns on"
image: "phone_power_down"
button: true
recovery:
title: "Reboot to Recovery"
description: "With the device still at the 'Fastboot' screen, press and hold VOLUME UP and POWER buttons until the screen turns on"
image: "phone_power_up"
button: true
boot:
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
unlock:
- "confirm_model"
- "confirm_os"
- "troubleshooting"
handlers:
bootloader_locked:
actions:
- fastboot:flashing_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"
type: "checkbox"
- var: "bootstrap"
name: "Bootstrap"
tooltip: "Flash system partitions using fastboot"
type: "checkbox"
value: true
prerequisites: []
steps:
- actions:
- core:download:
group: "firmware"
files:
- url: "https://fs.nightcore.monster/ubports/laurel_sprout/boot.img"
checksum:
sum: "89876301997f4299d27be397a9544d1b2dc5afd145cbba866b83ebb8b1c14816"
algorithm: "sha256"
- url: "https://fs.nightcore.monster/ubports/laurel_sprout/dtbo.img"
checksum:
sum: "a0266fba49eb2d3ed035a1e0fc87759eba1ad9ffd247e35e50229f45d3698629"
algorithm: "sha256"
- url: "https://fs.nightcore.monster/ubports/laurel_sprout/vbmeta.img"
checksum:
sum: "65f5493e01ede7e538a14df063013a921ecd122680c7d3b3598d46fc7a916517"
algorithm: "sha256"
condition:
var: "bootstrap"
value: true
- actions:
- adb:reboot:
to_state: "bootloader"
fallback:
- core:user_action:
action: "bootloader"
condition:
var: "bootstrap"
value: true
- actions:
- fastboot:set_active:
slot: "a"
condition:
var: "bootstrap"
value: true
- actions:
- fastboot:format:
partition: "system"
type: "ext4"
condition:
var: "bootstrap"
value: true
- actions:
- fastboot:format:
partition: "userdata"
type: "ext4"
condition:
var: "wipe"
value: true
- actions:
- fastboot:flash:
partitions:
- partition: "vbmeta_a"
file: "vbmeta.img"
group: "firmware"
- partition: "boot_a"
file: "boot.img"
group: "firmware"
condition:
var: "bootstrap"
value: true
- actions:
- adb:reboot:
to_state: "recovery"
fallback:
- core:user_action:
action: "recovery"
- actions:
- systemimage:install:
- actions:
- core:user_action:
action: "bootloader"
condition:
var: "bootstrap"
value: true
- actions:
- fastboot:flash:
partitions:
- partition: "dtbo_a"
file: "dtbo.img"
group: "firmware"
condition:
var: "bootstrap"
value: true
- actions:
- adb:reboot:
to_state: "recovery"
fallback:
- core:user_action:
action: "recovery"
slideshow: []
- name: "Reflash dtbo"
compatible_installer: ">=0.9.2-beta"
prerequisites: []
steps:
- actions:
- core:download:
group: "firmware"
files:
- url: "https://fs.nightcore.monster/ubports/laurel_sprout/dtbo.img"
checksum:
sum: "a0266fba49eb2d3ed035a1e0fc87759eba1ad9ffd247e35e50229f45d3698629"
algorithm: "sha256"
- actions:
- adb:reboot:
to_state: "bootloader"
fallback:
- core:user_action:
action: "bootloader"
- actions:
- fastboot:flash:
partitions:
- partition: "dtbo"
file: "dtbo.img"
group: "firmware"
- actions:
- fastboot:reboot:
fallback:
- core:user_action:
action: "boot"
slideshow: []