Skip to content

Commit 136baa4

Browse files
committed
Add a requirement checkbox to encourage booting stock rom atleast once and check if everything works
1 parent 8a0f35c commit 136baa4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

openandroidinstaller/views/requirements_view.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ def build(self):
214214
self.checkboxes.append(battery_checkbox)
215215
self.checkbox_cards.append(battery_check_card)
216216

217+
boot_stock_checkbox, boot_stock_check_card = self.get_boot_stock_check()
218+
self.checkboxes.append(boot_stock_checkbox)
219+
self.checkbox_cards.append(boot_stock_check_card)
220+
217221
lock_checkbox, lock_check_card = self.get_lock_check()
218222
self.checkboxes.append(lock_checkbox)
219223
self.checkbox_cards.append(lock_check_card)
@@ -251,6 +255,30 @@ def get_battery_check(self):
251255
)
252256
return battery_checkbox, battery_check_card
253257

258+
def get_boot_stock_check(self):
259+
"""Get checkbox and card for default requirements: boot stock once."""
260+
boot_stock_checkbox = Checkbox(
261+
label="Booted the stock OS at least once.",
262+
on_change=self.enable_continue_button,
263+
)
264+
boot_stock_check_card = Card(
265+
Container(
266+
content=Column(
267+
[
268+
Markdown(
269+
"""
270+
#### Boot your device with the stock OS at least once and check every functionality.
271+
Make sure that you can send and receive SMS and place and receive calls (also via WiFi and LTE, if available), otherwise it won\'t work on LineageOS either! Additionally, some devices require that VoLTE/VoWiFi be utilized once on stock to provision IMS.
272+
"""
273+
),
274+
boot_stock_checkbox,
275+
]
276+
),
277+
padding=10,
278+
),
279+
)
280+
return boot_stock_checkbox, boot_stock_check_card
281+
254282
def get_lock_check(self):
255283
"""Get the checkbox and card for the default requirement: disable lock code and fingerprint."""
256284
lock_checkbox = Checkbox(

0 commit comments

Comments
 (0)