Skip to content

Commit b1cee5b

Browse files
committed
Fix unlock_critical
1 parent 475d0e5 commit b1cee5b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

openandroidinstaller/installer_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def validate_config(config: str) -> bool:
150150
),
151151
"content": str,
152152
schema.Optional("command"): Regex(
153-
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"
153+
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"
154154
),
155155
schema.Optional("allow_skip"): bool,
156156
schema.Optional("img"): str,

openandroidinstaller/views/step_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
fastboot_oem_unlock,
4949
fastboot_reboot,
5050
fastboot_unlock,
51+
fastboot_unlock_critical,
5152
fastboot_unlock_with_code,
5253
fastboot_get_unlock_data,
5354
heimdall_flash_recovery,
@@ -217,6 +218,7 @@ def call_to_phone(self, e, command: str):
217218
adb_twrp_copy_partitions, config_path=self.state.config_path
218219
),
219220
"fastboot_unlock": fastboot_unlock,
221+
"fastboot_unlock_critical": fastboot_unlock_critical,
220222
"fastboot_unlock_with_code": partial(
221223
fastboot_unlock_with_code, unlock_code=self.inputtext.value
222224
),

0 commit comments

Comments
 (0)