diff --git a/openandroidinstaller/assets/configs/FP3.yaml b/openandroidinstaller/assets/configs/FP3.yaml index 32b0e23c..1b25061c 100644 --- a/openandroidinstaller/assets/configs/FP3.yaml +++ b/openandroidinstaller/assets/configs/FP3.yaml @@ -18,10 +18,6 @@ steps: content: > Press 'Confirm and run' to reboot into the bootloader. command: adb_reboot_bootloader - - type: confirm_button - content: > - Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button. - Then press 'Confirm and continue' here. - type: call_button content: > In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here. @@ -29,6 +25,18 @@ steps: - type: confirm_button content: > Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone. + - type: call_button + content: > + After the phone reboots, boot into the fastboot mode once again by pressing 'Confirm and run' here. Then continue. + command: adb_reboot_bootloader + - type: call_button + content: > + When you are in fastboot mode again, you need to run another unlock step here. + Just press 'Confirm and run' here. Once it's done, press continue here. + command: fastboot_unlock_critical + - type: confirm_button + content: > + Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone. - type: call_button content: > To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue. diff --git a/openandroidinstaller/assets/configs/FP4.yaml b/openandroidinstaller/assets/configs/FP4.yaml index af164fe8..d23501a3 100644 --- a/openandroidinstaller/assets/configs/FP4.yaml +++ b/openandroidinstaller/assets/configs/FP4.yaml @@ -13,15 +13,11 @@ steps: how to start and run an operating system (like Android). Your device should be turned on. Click on the button to open the instructions on the Fairphone Support official unlocking website to generate an unlock code for your device. Once you've done that, continue. - link: https://support.fairphone.com/hc/en-us/articles/4405858258961-FP4-Manage-the-bootloader + link: https://www.fairphone.com/en/bootloader-unlocking-code-for-fairphone-3/ - type: call_button content: > Press 'Confirm and run' to reboot into the bootloader. command: adb_reboot_bootloader - - type: confirm_button - content: > - Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button. - Then press 'Confirm and continue' here. - type: call_button content: > In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here. @@ -29,6 +25,18 @@ steps: - type: confirm_button content: > Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone. + - type: call_button + content: > + After the phone reboots, boot into the fastboot mode once again by pressing 'Confirm and run' here. Then continue. + command: adb_reboot_bootloader + - type: call_button + content: > + When you are in fastboot mode again, you need to run another unlock step here. + Just press 'Confirm and run' here. Once it's done, press continue here. + command: fastboot_unlock_critical + - type: confirm_button + content: > + Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone. - type: call_button content: > To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue. diff --git a/openandroidinstaller/tooling.py b/openandroidinstaller/tooling.py index f7943ebe..c0640f83 100644 --- a/openandroidinstaller/tooling.py +++ b/openandroidinstaller/tooling.py @@ -368,6 +368,11 @@ def fastboot_unlock(bin_path: Path) -> TerminalResponse: for line in run_command("fastboot flashing unlock", bin_path): yield line +@add_logging("Critically unlocking the device with fastboot without code.") +def fastboot_unlock_critical(bin_path: Path) -> TerminalResponse: + """Unlock critical the device with fastboot and without code.""" + for line in run_command("fastboot flashing unlock_critical", bin_path): + yield line @add_logging("OEM unlocking the device with fastboot.") def fastboot_oem_unlock(bin_path: Path) -> TerminalResponse: