You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reformatted the configs for more consistency, removed an unneeded
reboot instructions for the FPs and added the TWRP image to every
config. (It needs to be updated - outdated version)
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,15 +198,15 @@ If you want to use the tool for a non-supported smartphone, the fastest way is t
198
198
A config file consists of two parts. The first part are some metadata about the device and the second parts are the steps to unlock the bootloader, boot a recovery and install the ROMs.
199
199
200
200
##### How to write Metadata
201
-
Every config file should have metadata with the following fields:
201
+
Every config file should have `metadata` with the following fields:
202
202
-`maintainer`: str; Maintainer and author of the config file.
203
203
-`device_name`: str; Name of the device.
204
204
-`is_ab_device`: bool; A boolean to determine if the device is a/b-partitioned or not.
205
205
-`device_code`: str; The official device code.
206
206
-`supported_device_codes`: List[str]; A list of supported device codes for the config. The config will be loaded based on this field.
207
207
-`twrp-link`: [OPTIONAL] str; name of the corresponding twrp page.
208
208
209
-
In addition to these metadata, every config can have optional requirements. If these are set, the user is asked to check if they are meet.
209
+
In addition to these metadata, every config can have optional `requirements`. If these are set, the user is asked to check if they are meet.
210
210
-`android`: [OPTIONAL] int|str; Android version to install prior to installing a custom ROM.
211
211
-`firmware`: [OPTIONAL] str; specific firmware version to install before installing a custom ROM.
212
212
@@ -218,13 +218,13 @@ Every step in the config file corresponds to one view in the application. These
218
218
-`call_button`: Display the content text and a button that runs a given command. After the command is run, a confirm button is displayed to allow the user to move to the next step.
219
219
-`call_button_with_input`: Display the content text, an input field and a button that runs a given command. The inputtext, can be used in the command by using the `<inputtext>` placeholder in the command field. After the command is run, a confirm button is displayed to allow the user to move to the next step.
220
220
-`link_button_with_confirm`: Display a button that opens a browser with a given link, confirm afterwards. Link is given in `link`.
221
-
-`content`: str; The content text displayed alongside the action of the step. Used to inform the user about whats going on.
222
-
-`command`: [ONLY for call_button* steps] str; The command to run. One of `adb_reboot`, `adb_reboot_bootloader`, `adb_reboot_download`, `adb_sideload`, `adb_twrp_wipe_and_install`, `adb_twrp_copy_partitions`, `fastboot_boot_recovery`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
223
221
-`img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
224
-
-`allow_skip`: [OPTIONAL] boolean; If a skip button should be displayed to allow skipping this step. Can be useful when the bootloader is already unlocked.
222
+
-`content`: str; The content text displayed alongside the action of the step. Used to inform the user about whats going on. For consistency and better readability the text should be moved into the next line using `>`.
225
223
-`link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.
224
+
-`command`: [ONLY for call_button* steps] str; The command to run. One of `adb_reboot`, `adb_reboot_bootloader`, `adb_reboot_download`, `adb_sideload`, `adb_twrp_wipe_and_install`, `adb_twrp_copy_partitions`, `fastboot_boot_recovery`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
225
+
-`allow_skip`: [OPTIONAL] boolean; If a skip button should be displayed to allow skipping this step. Can be useful when the bootloader is already unlocked.
226
226
227
-
You can also use the `requirements` field in the yaml, to specify `firmware` or `android` version requirements. The user will then be prompted if these requirements are satisfied.
227
+
**Please try to retain this order of these fields in your config to ensure consistency.**
content: Press 'Confirm and run' to reboot into the bootloader.
18
+
content: >
19
+
Press 'Confirm and run' to reboot into the bootloader.
19
20
command: adb_reboot_bootloader
20
21
- type: confirm_button
21
22
content: >
22
23
Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button.
23
24
Then press 'Confirm and continue' here.
24
25
- 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.
26
28
command: fastboot_unlock
27
29
- type: confirm_button
28
30
content: >
29
31
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
30
32
- 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.
32
35
command: fastboot_reboot
33
36
- 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.
35
39
boot_recovery:
36
40
- type: confirm_button
37
41
content: >
38
42
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
39
43
adapting and repairing of the operating system.
40
44
- 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.
42
47
command: adb_reboot_bootloader
43
48
- 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
47
50
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.
content: Press 'Confirm and run' to reboot into the bootloader.
18
+
content: >
19
+
Press 'Confirm and run' to reboot into the bootloader.
19
20
command: adb_reboot_bootloader
20
21
- type: confirm_button
21
22
content: >
22
23
Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button.
23
24
Then press 'Confirm and continue' here.
24
25
- 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.
26
28
command: fastboot_unlock
27
29
- type: confirm_button
28
30
content: >
29
31
Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
30
32
- 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.
32
35
command: fastboot_reboot
33
36
- 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.
35
39
boot_recovery:
36
40
- type: confirm_button
37
41
content: >
38
42
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
39
43
adapting and repairing of the operating system.
40
44
- 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.
42
47
command: adb_reboot_bootloader
43
48
- 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
47
50
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.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/a5xelte.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,13 @@ steps:
11
11
- type: call_button
12
12
content: >
13
13
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.
15
15
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
16
16
command: adb_reboot_download
17
17
- 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.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/a72q.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,13 @@ steps:
11
11
- type: call_button
12
12
content: >
13
13
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.
15
15
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
16
16
command: adb_reboot_download
17
17
- 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.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/a7xelte.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,13 @@ steps:
11
11
- type: call_button
12
12
content: >
13
13
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.
15
15
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
16
16
command: adb_reboot_download
17
17
- 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.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/akari.yaml
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,11 @@ requirements:
10
10
steps:
11
11
unlock_bootloader:
12
12
- 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.
14
15
- 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.'
16
18
- type: confirm_button
17
19
content: >
18
20
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:
22
24
Once you got the code write it down somewhere and continue to input the code.
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.
26
29
- 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.
28
32
command: adb_reboot_bootloader
29
33
- type: call_button_with_input
30
34
content: >
@@ -44,14 +48,15 @@ steps:
44
48
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
45
49
command: adb_reboot_bootloader
46
50
- 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.
48
53
command: fastboot_flash_boot
49
54
- type: call_button
50
-
command: adb_twrp_copy_partitions
51
55
content: >
52
56
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.
53
57
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
54
59
- type: call_button
55
-
command: fastboot_flash_boot
56
60
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.
0 commit comments