Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a requirement checkbox to encourage booting stock rom at least once. #316

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 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,30 @@ 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 LineageOS either! Additionally, some devices require that VoLTE/VoWiFi be utilized once on stock to provision IMS.
tsterbak marked this conversation as resolved.
Show resolved Hide resolved
"""
),
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