Skip to content

Commit

Permalink
Add a requirement checkbox to encourage booting stock rom at least on…
Browse files Browse the repository at this point in the history
…ce. (#316)

Resolves #307
  • Loading branch information
tsterbak committed Oct 12, 2023
2 parents 4c2afb0 + 985681e commit 70e6fba
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions openandroidinstaller/views/requirements_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ def build(self):
self.checkboxes.append(battery_checkbox)
self.checkbox_cards.append(battery_check_card)

boot_stock_checkbox, boot_stock_check_card = self.get_boot_stock_check()
self.checkboxes.append(boot_stock_checkbox)
self.checkbox_cards.append(boot_stock_check_card)

lock_checkbox, lock_check_card = self.get_lock_check()
self.checkboxes.append(lock_checkbox)
self.checkbox_cards.append(lock_check_card)
Expand Down Expand Up @@ -251,6 +255,31 @@ def get_battery_check(self):
)
return battery_checkbox, battery_check_card

def get_boot_stock_check(self):
"""Get checkbox and card for default requirements: boot stock once."""
boot_stock_checkbox = Checkbox(
label="Booted the stock OS at least once.",
on_change=self.enable_continue_button,
)
boot_stock_check_card = Card(
Container(
content=Column(
[
Markdown(
"""
#### Boot your device with the stock OS at least once and check every functionality.
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 your custom ROM either! Additionally, some devices require that VoLTE/VoWiFi be utilized once on stock to provision IMS.
"""
),
boot_stock_checkbox,
]
),
padding=10,
),
)
return boot_stock_checkbox, boot_stock_check_card

def get_lock_check(self):
"""Get the checkbox and card for the default requirement: disable lock code and fingerprint."""
lock_checkbox = Checkbox(
Expand Down

0 comments on commit 70e6fba

Please sign in to comment.