Skip to content

Commit 1113cb8

Browse files
committed
Update the unlocking instructions for FP3/4 and add fastboot_unlock_critical command
1 parent 35d0d2d commit 1113cb8

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed

openandroidinstaller/assets/configs/FP3.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,25 @@ steps:
1818
content: >
1919
Press 'Confirm and run' to reboot into the bootloader.
2020
command: adb_reboot_bootloader
21-
- type: confirm_button
22-
content: >
23-
Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button.
24-
Then press 'Confirm and continue' here.
2521
- type: call_button
2622
content: >
2723
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
2824
command: fastboot_unlock
2925
- type: confirm_button
3026
content: >
3127
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
28+
- type: call_button
29+
content: >
30+
After the phone reboots, boot into the fastboot mode once again by pressing 'Confirm and run' here. Then continue.
31+
command: adb_reboot_bootloader
32+
- type: call_button
33+
content: >
34+
When you are in fastboot mode again, you need to run another unlock step here.
35+
Just press 'Confirm and run' here. Once it's done, press continue here.
36+
command: fastboot_unlock_critical
37+
- type: confirm_button
38+
content: >
39+
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
3240
- type: call_button
3341
content: >
3442
To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.

openandroidinstaller/assets/configs/FP4.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,30 @@ steps:
1313
how to start and run an operating system (like Android). Your device should be turned on.
1414
Click on the button to open the instructions on the Fairphone Support official unlocking website to generate an unlock code for your device.
1515
Once you've done that, continue.
16-
link: https://support.fairphone.com/hc/en-us/articles/4405858258961-FP4-Manage-the-bootloader
16+
link: https://www.fairphone.com/en/bootloader-unlocking-code-for-fairphone-3/
1717
- type: call_button
1818
content: >
1919
Press 'Confirm and run' to reboot into the bootloader.
2020
command: adb_reboot_bootloader
21-
- type: confirm_button
22-
content: >
23-
Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button.
24-
Then press 'Confirm and continue' here.
2521
- type: call_button
2622
content: >
2723
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
2824
command: fastboot_unlock
2925
- type: confirm_button
3026
content: >
3127
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
28+
- type: call_button
29+
content: >
30+
After the phone reboots, boot into the fastboot mode once again by pressing 'Confirm and run' here. Then continue.
31+
command: adb_reboot_bootloader
32+
- type: call_button
33+
content: >
34+
When you are in fastboot mode again, you need to run another unlock step here.
35+
Just press 'Confirm and run' here. Once it's done, press continue here.
36+
command: fastboot_unlock_critical
37+
- type: confirm_button
38+
content: >
39+
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
3240
- type: call_button
3341
content: >
3442
To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.

openandroidinstaller/tooling.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,11 @@ def fastboot_unlock(bin_path: Path) -> TerminalResponse:
368368
for line in run_command("fastboot flashing unlock", bin_path):
369369
yield line
370370

371+
@add_logging("Critically unlocking the device with fastboot without code.")
372+
def fastboot_unlock_critical(bin_path: Path) -> TerminalResponse:
373+
"""Unlock critical the device with fastboot and without code."""
374+
for line in run_command("fastboot flashing unlock_critical", bin_path):
375+
yield line
371376

372377
@add_logging("OEM unlocking the device with fastboot.")
373378
def fastboot_oem_unlock(bin_path: Path) -> TerminalResponse:

0 commit comments

Comments
 (0)