Skip to content

Commit

Permalink
Fix unlock_critical
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Aug 6, 2023
1 parent 475d0e5 commit b1cee5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openandroidinstaller/installer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def validate_config(config: str) -> bool:
),
"content": str,
schema.Optional("command"): Regex(
r"adb_reboot|adb_reboot_bootloader|adb_reboot_download|adb_sideload|adb_twrp_wipe_and_install|adb_twrp_copy_partitions|fastboot_boot_recovery|fastboot_flash_boot|fastboot_unlock_with_code|fastboot_get_unlock_data|fastboot_unlock|fastboot_oem_unlock|fastboot_reboot|heimdall_flash_recovery"
r"adb_reboot|adb_reboot_bootloader|adb_reboot_download|adb_sideload|adb_twrp_wipe_and_install|adb_twrp_copy_partitions|fastboot_boot_recovery|fastboot_flash_boot|fastboot_unlock|fastboot_unlock_critical|fastboot_unlock_with_code|fastboot_get_unlock_data|fastboot_unlock|fastboot_oem_unlock|fastboot_reboot|heimdall_flash_recovery"
),
schema.Optional("allow_skip"): bool,
schema.Optional("img"): str,
Expand Down
2 changes: 2 additions & 0 deletions openandroidinstaller/views/step_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
fastboot_oem_unlock,
fastboot_reboot,
fastboot_unlock,
fastboot_unlock_critical,
fastboot_unlock_with_code,
fastboot_get_unlock_data,
heimdall_flash_recovery,
Expand Down Expand Up @@ -217,6 +218,7 @@ def call_to_phone(self, e, command: str):
adb_twrp_copy_partitions, config_path=self.state.config_path
),
"fastboot_unlock": fastboot_unlock,
"fastboot_unlock_critical": fastboot_unlock_critical,
"fastboot_unlock_with_code": partial(
fastboot_unlock_with_code, unlock_code=self.inputtext.value
),
Expand Down

0 comments on commit b1cee5b

Please sign in to comment.