Skip to content

Commit 875201e

Browse files
authored
Merge branch 'dev' into main
2 parents 92d50b7 + b0dfd45 commit 875201e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+670
-375
lines changed

README.md

Lines changed: 77 additions & 73 deletions
Large diffs are not rendered by default.

openandroidinstaller/app_state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def __init__(
4040
# placeholders
4141
self.advanced = False
4242
self.install_addons = False
43+
self.addon_paths = []
4344
self.config = None
4445
self.image_path = None
4546
self.recovery_path = None

openandroidinstaller/assets/configs/FP2.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ metadata:
88
steps:
99
unlock_bootloader:
1010
boot_recovery:
11-
- type: confirm_button
11+
- type: call_button
1212
content: >
1313
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
1414
adapting and repairing of the operating system.
15-
- type: call_button
16-
content: Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
15+
16+
Make sure your device is turned on and connected to the computer. Boot into the bootloader by pressing 'Confirm and run' here. Then continue.
1717
command: adb_reboot_bootloader
1818
- type: call_button
19-
content: Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
20-
command: fastboot_boot_recovery
21-
- type: confirm_button
19+
img: twrp-start.jpeg
2220
content: >
23-
Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!
24-
With the device powered off, hold 'Volume Up + Power'. Release when boot logo appears.
21+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
22+
command: fastboot_boot_recovery

openandroidinstaller/assets/configs/FP3.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,38 @@ steps:
1515
Once you've done that, continue.
1616
link: https://www.fairphone.com/en/bootloader-unlocking-code-for-fairphone-3/
1717
- type: call_button
18-
content: Press 'Confirm and run' to reboot into the bootloader.
18+
content: >
19+
Press 'Confirm and run' to reboot into the bootloader.
1920
command: adb_reboot_bootloader
2021
- type: confirm_button
2122
content: >
2223
Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button.
2324
Then press 'Confirm and continue' here.
2425
- type: call_button
25-
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
26+
content: >
27+
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
2628
command: fastboot_unlock
2729
- type: confirm_button
2830
content: >
2931
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
3032
- type: call_button
31-
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
33+
content: >
34+
To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
3235
command: fastboot_reboot
3336
- type: confirm_button
34-
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
37+
content: >
38+
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
3539
boot_recovery:
3640
- type: confirm_button
3741
content: >
3842
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
3943
adapting and repairing of the operating system.
4044
- type: call_button
41-
content: Turn on your device. Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
45+
content: >
46+
Turn on your device. Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
4247
command: adb_reboot_bootloader
4348
- type: call_button
44-
content: Once the device is in fastboot mode, flash the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
45-
command: fastboot_boot_recovery
46-
- type: confirm_button
49+
img: twrp-start.jpeg
4750
content: >
48-
Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!
49-
With the device powered off, hold 'Volume Up + Power'. Release when boot logo appears.
51+
Once the device is in fastboot mode, flash the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
52+
command: fastboot_boot_recovery

openandroidinstaller/assets/configs/FP4.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,38 @@ steps:
1515
Once you've done that, continue.
1616
link: https://support.fairphone.com/hc/en-us/articles/4405858258961-FP4-Manage-the-bootloader
1717
- type: call_button
18-
content: Press 'Confirm and run' to reboot into the bootloader.
18+
content: >
19+
Press 'Confirm and run' to reboot into the bootloader.
1920
command: adb_reboot_bootloader
2021
- type: confirm_button
2122
content: >
2223
Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button.
2324
Then press 'Confirm and continue' here.
2425
- type: call_button
25-
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
26+
content: >
27+
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
2628
command: fastboot_unlock
2729
- type: confirm_button
2830
content: >
2931
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
3032
- type: call_button
31-
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
33+
content: >
34+
To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
3235
command: fastboot_reboot
3336
- type: confirm_button
34-
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
37+
content: >
38+
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
3539
boot_recovery:
3640
- type: confirm_button
3741
content: >
3842
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
3943
adapting and repairing of the operating system.
4044
- type: call_button
41-
content: Turn on your device. Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
45+
content: >
46+
Turn on your device. Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
4247
command: adb_reboot_bootloader
4348
- type: call_button
44-
content: Once the device is in fastboot mode, boot the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
45-
command: fastboot_boot_recovery
46-
- type: confirm_button
49+
img: twrp-start.jpeg
4750
content: >
48-
Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!
49-
With the device powered off, hold 'Volume Up + Power'. Release when boot logo appears.
51+
Once the device is in fastboot mode, boot the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
52+
command: fastboot_boot_recovery

openandroidinstaller/assets/configs/a3y17lte.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ steps:
1111
- type: call_button
1212
content: >
1313
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
14-
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
14+
that tells your phone how to start and run an operating system (like Android). Your device should be turned on.
1515
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1616
command: adb_reboot_download
1717
- type: call_button
1818
content: >
19-
In this step, you need to boot a custom recovery on your device.
19+
In this step, you need to flash a custom recovery on your device.
2020
Press 'Confirm and run' to start the process. Confirm afterwards to continue.
2121
command: heimdall_flash_recovery
2222
- type: confirm_button

openandroidinstaller/assets/configs/a5xelte.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ steps:
1111
- type: call_button
1212
content: >
1313
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
14-
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
14+
that tells your phone how to start and run an operating system (like Android). Your device should be turned on.
1515
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1616
command: adb_reboot_download
1717
- type: call_button
18-
content: In this step, you need to boot a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue.
18+
content: >
19+
In this step, you need to flash a custom recovery on your device.
20+
Press 'Confirm and run' to start the process. Confirm afterwards to continue.
1921
command: heimdall_flash_recovery
2022
- type: confirm_button
2123
img: samsung-buttons.png

openandroidinstaller/assets/configs/a72q.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ steps:
1111
- type: call_button
1212
content: >
1313
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
14-
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
14+
that tells your phone how to start and run an operating system (like Android). Your device should be turned on.
1515
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1616
command: adb_reboot_download
1717
- type: call_button
18-
content: In this step, you need to boot a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue.
18+
content: >
19+
In this step, you need to flash a custom recovery on your device.
20+
Press 'Confirm and run' to start the process. Confirm afterwards to continue.
1921
command: heimdall_flash_recovery
2022
- type: confirm_button
2123
img: samsung-buttons.png

openandroidinstaller/assets/configs/a7xelte.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ steps:
1111
- type: call_button
1212
content: >
1313
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
14-
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
14+
that tells your phone how to start and run an operating system (like Android). Your device should be turned on.
1515
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1616
command: adb_reboot_download
1717
- type: call_button
18-
content: In this step, you need to boot a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue.
18+
content: >
19+
In this step, you need to flash a custom recovery on your device.
20+
Press 'Confirm and run' to start the process. Confirm afterwards to continue.
1921
command: heimdall_flash_recovery
2022
- type: confirm_button
2123
img: samsung-buttons.png

openandroidinstaller/assets/configs/akari.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ requirements:
1010
steps:
1111
unlock_bootloader:
1212
- type: confirm_button
13-
content: As a first step, you need to unlock the bootloader of your device. On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
13+
content: >
14+
As a first step, you need to unlock the bootloader of your device. On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
1415
- type: confirm_button
15-
content: Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
16+
content: >
17+
Go to service info > configuration and check rooting status - you can only continue if it says 'Bootloader unlock allowed":" Yes.'
1618
- type: confirm_button
1719
content: >
1820
Now go to Settings 'About the phone' and then Status. Write down the IMEI of your device. You will need it in the next step.
@@ -22,9 +24,11 @@ steps:
2224
Once you got the code write it down somewhere and continue to input the code.
2325
link: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
2426
- type: confirm_button
25-
content: Connect the device to your PC via USB. And confirm to continue.
27+
content: >
28+
Connect the device to your PC via USB. And confirm to continue.
2629
- type: call_button
27-
content: Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
30+
content: >
31+
Press the button to reboot into the bootloader now. When the notification light turns blue, confirm to continue.
2832
command: adb_reboot_bootloader
2933
- type: call_button_with_input
3034
content: >
@@ -44,14 +48,15 @@ steps:
4448
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
4549
command: adb_reboot_bootloader
4650
- type: call_button
47-
content: Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
51+
content: >
52+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
4853
command: fastboot_flash_boot
4954
- type: call_button
50-
command: adb_twrp_copy_partitions
5155
content: >
5256
In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick.
5357
We can ensure none of that will happen by copying the contents of the active slot to the inactive slot. Press 'confirm and run' to to this. Once you are in the bootloader again, continue.
58+
command: adb_twrp_copy_partitions
5459
- type: call_button
55-
command: fastboot_flash_boot
5660
content: >
57-
Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue.
61+
Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue.
62+
command: fastboot_flash_boot

0 commit comments

Comments
 (0)