diff --git a/openandroidinstaller/views/requirements_view.py b/openandroidinstaller/views/requirements_view.py index 4f019951..05f7f2e8 100644 --- a/openandroidinstaller/views/requirements_view.py +++ b/openandroidinstaller/views/requirements_view.py @@ -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) @@ -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(