Skip to content

Commit c14e04a

Browse files
committed
Fix some bugs with loading the configs, Adapt the configs of supported devices to new schema
1 parent adf221e commit c14e04a

7 files changed

Lines changed: 232 additions & 167 deletions

File tree

openandroidinstaller/assets/configs/FP2.yaml

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,49 @@ metadata:
44
devicecode: FP2
55
requirements:
66
steps:
7-
- title: "Flash a custom recovery"
8-
type: confirm_button
9-
content: "Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating, adapting and repairing of the operating system."
10-
- title: "Flash a custom recovery"
11-
type: call_button
12-
content: "Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue."
13-
command: "adb reboot bootloader"
14-
- title: "Flash a custom recovery"
15-
type: call_button
16-
content: "Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue."
17-
command: "fastboot flash recovery <recovery>"
18-
- title: "Flash temporary recovery"
19-
type: call_button
20-
content: "Press the button to reboot. Then confirm here to continue."
21-
command: "fastboot reboot"
22-
- title: "Flash LineageOS"
23-
type: confirm_button
24-
content: "In this step, you finally flash LineageOS. Confirm to continue."
25-
- title: "Flash LineageOS"
26-
type: confirm_button
27-
content: "Select 'Recovery Mode' on your smartphone screen and press the Start-Button to confirm. Then confirm here."
28-
- title: "Flash LineageOS"
29-
type: confirm_button
30-
content: "Now tap Factory Reset, then Format data / Factory reset on your phone screen and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one)."
31-
- title: "Flash LineageOS"
32-
type: confirm_button
33-
content: "Return to the main menu on the phone."
34-
- title: "Flash LineageOS"
35-
type: confirm_button
36-
content: "On the device, select “Apply Update”, then “Apply from ADB” to begin sideload. Then confirm here."
37-
- title: "Flash LineageOS"
38-
type: call_button
39-
content: "Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start! This might take a while. Confirm after it's done."
40-
command: "adb sideload <image>"
41-
- title: "Flash LineageOS"
42-
type: confirm_button
43-
content: "Flashing finished. Now press 'back' (arrow) and then 'Reboot system now' on the phone screen to finish the installation."
7+
unlock_bootloader:
8+
flash_recovery:
9+
- title: "Flash a custom recovery"
10+
type: confirm_button
11+
content: >
12+
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
13+
adapting and repairing of the operating system.
14+
- title: "Flash a custom recovery"
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.
17+
command: "adb reboot bootloader"
18+
- title: "Flash a custom recovery"
19+
type: call_button
20+
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
21+
command: "fastboot flash recovery <recovery>"
22+
- title: "Flash temporary recovery"
23+
type: call_button
24+
content: Press the button to reboot. Then confirm here to continue.
25+
command: "fastboot reboot"
26+
install_os:
27+
- title: "Flash LineageOS"
28+
type: confirm_button
29+
content: In this step, you finally flash LineageOS. Confirm to continue.
30+
- title: "Flash LineageOS"
31+
type: confirm_button
32+
content: Select 'Recovery Mode' on your smartphone screen and press the Start-Button to confirm. Then confirm here.
33+
- title: "Flash LineageOS"
34+
type: confirm_button
35+
content: >
36+
Now tap Factory Reset, then Format data / Factory reset on your phone screen and continue with the formatting process.
37+
This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
38+
- title: "Flash LineageOS"
39+
type: confirm_button
40+
content: Return to the main menu on the phone.
41+
- title: "Flash LineageOS"
42+
type: confirm_button
43+
content: On the device, select “Apply Update”, then “Apply from ADB” to begin sideload. Then confirm here.
44+
- title: "Flash LineageOS"
45+
type: call_button
46+
content: >
47+
Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start!
48+
This might take a while. Confirm after it's done.
49+
command: "adb sideload <image>"
50+
- title: "Flash LineageOS"
51+
type: confirm_button
52+
content: Flashing finished. Now press 'back' (arrow) and then 'Reboot system now' on the phone screen to finish the installation.

openandroidinstaller/assets/configs/a3y17lte.yaml

Lines changed: 49 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,52 @@ metadata:
55
requirements:
66
- heimdall
77
steps:
8-
- title: "Boot into bootloader"
9-
type: call_button
10-
content: "As a first step, you need to boot into the bootloader. A bootloader is the piece of software, that tells your phone who to start and run an operating system (like Android). Your device should be turned on. Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done."
11-
command: "adb reboot download"
12-
- title: "Flash custom recovery"
13-
type: call_button
14-
content: "In this step, you need to flash a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue."
15-
command: "heimdall flash --no-reboot --RECOVERY <recovery>"
16-
- title: "Boot into recovery"
17-
type: confirm_button
18-
content: "Unplug the USB cable from your device. Then manually reboot into recovery by pressing the Volume Down + Power buttons for 8~10 seconds until the screen turns black & release the buttons immediately when it does, then boot to recovery with the device powered off, hold Volume Up + Home + Power."
19-
- title: "Flash LineageOS"
20-
type: confirm_button
21-
content: "Now swipe right to allow modifications then tap 'Wipe' on your phone. Next tap 'Format Data' and follow the instructions on your phone to continue with the formatting process. This will remove encryption and delete all files stored in the internal storage. Confirm to continue once you are done."
22-
- title: "Flash LineageOS"
23-
type: confirm_button
24-
content: "Return to the previous menu on your phone by going back two times. Them tap 'Advanced Wipe', and select the 'Cache' and 'System' partitions and then 'Swipe to Wipe'. Confirm to continue once you are done."
25-
- title: "Flash LineageOS"
26-
type: confirm_button
27-
content: "Now connect the phone to the computer again with the USB-cable. On the device, go back three times and select “Advanced”, then “ADB Sideload”. Select 'Wipe cache' and 'Wipe dalvik cache', then swipe to begin sideload. Then confirm here."
28-
- title: "Flash LineageOS"
29-
type: call_button
30-
content: "Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start! This might take a while. Confirm after it's done."
31-
command: "adb sideload <image>"
32-
- title: "Reboot into LineageOS"
33-
type: call_button
34-
content: "As a final step, reboot into LineageOS to finish the installation by pressing the button."
35-
command: "adb reboot"
8+
unlock_bootloader:
9+
flash_recovery:
10+
- title: "Boot into bootloader"
11+
type: call_button
12+
content: >
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.
15+
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
16+
command: "adb reboot download"
17+
- title: "Flash custom recovery"
18+
type: call_button
19+
content: >
20+
In this step, you need to flash a custom recovery on your device.
21+
Press 'Confirm and run' to start the process. Confirm afterwards to continue.
22+
command: "heimdall flash --no-reboot --RECOVERY <recovery>"
23+
- title: "Boot into recovery"
24+
type: confirm_button
25+
content: >
26+
Unplug the USB cable from your device. Then manually reboot into recovery by pressing the Volume Down + Power buttons for
27+
8~10 seconds until the screen turns black & release the buttons immediately when it does, then boot to recovery with the device powered off,
28+
hold Volume Up + Home + Power.
29+
install_os:
30+
- title: "Flash LineageOS"
31+
type: confirm_button
32+
content: >
33+
Now swipe right to allow modifications then tap 'Wipe' on your phone. Next tap 'Format Data' and follow
34+
the instructions on your phone to continue with the formatting process. This will remove encryption and delete all files stored
35+
in the internal storage. Confirm to continue once you are done.
36+
- title: "Flash LineageOS"
37+
type: confirm_button
38+
content: >
39+
Return to the previous menu on your phone by going back two times.
40+
Them tap 'Advanced Wipe', and select the 'Cache' and 'System' partitions and then 'Swipe to Wipe'.
41+
Confirm to continue once you are done.
42+
- title: "Flash LineageOS"
43+
type: confirm_button
44+
content: >
45+
Now connect the phone to the computer again with the USB-cable. On the device, go back three times and select “Advanced”,
46+
then “ADB Sideload”. Select 'Wipe cache' and 'Wipe dalvik cache', then swipe to begin sideload. Then confirm here.
47+
- title: "Flash LineageOS"
48+
type: call_button
49+
content: >
50+
Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start!
51+
This might take a while. Confirm after it's done.
52+
command: "adb sideload <image>"
53+
- title: "Reboot into LineageOS"
54+
type: call_button
55+
content: As a final step, reboot into LineageOS to finish the installation by pressing the button.
56+
command: "adb reboot"

openandroidinstaller/assets/configs/a5xelte.yaml

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,50 @@ metadata:
55
requirements:
66
- heimdall
77
steps:
8-
- title: "Boot into bootloader"
9-
type: call_button
10-
content: "As a first step, you need to boot into the bootloader. A bootloader is the piece of software, that tells your phone who to start and run an operating system (like Android). Your device should be turned on. Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done."
11-
command: "adb reboot download"
12-
- title: "Flash custom recovery"
13-
type: call_button
14-
content: "In this step, you need to flash a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue."
15-
command: "heimdall flash --no-reboot --RECOVERY <recovery>"
16-
- title: "Boot into recovery"
17-
type: confirm_button
18-
content: "Unplug the USB cable from your device. Then manually reboot into recovery by pressing the Volume Down + Power buttons for 8~10 seconds until the screen turns black & release the buttons immediately when it does, then boot to recovery with the device powered off, hold Volume Up + Home + Power."
19-
- title: "Flash LineageOS"
20-
type: confirm_button
21-
content: "Now swipe right to allow modifications then tap 'Wipe' on your phone. Next tap 'Format Data' and follow the instructions on your phone to continue with the formatting process. This will remove encryption and delete all files stored in the internal storage. Confirm to continue once you are done."
22-
- title: "Flash LineageOS"
23-
type: confirm_button
24-
content: "Return to the previous menu on your phone by going back two times. Them tap 'Advanced Wipe', and select the 'Cache' and 'System' partitions and then 'Swipe to Wipe'. Confirm to continue once you are done."
25-
- title: "Flash LineageOS"
26-
type: confirm_button
27-
content: "Now connect the phone to the computer again with the USB-cable. On the device, go back three times and select “Advanced”, then “ADB Sideload”. Select 'Wipe cache' and 'Wipe dalvik cache', then swipe to begin sideload. Then confirm here."
28-
- title: "Flash LineageOS"
29-
type: call_button
30-
content: "Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start! This might take a while. Confirm after it's done."
31-
command: "adb sideload <image>"
32-
- title: "Reboot into LineageOS"
33-
type: call_button
34-
content: "As a final step, reboot into LineageOS to finish the installation by pressing the button."
35-
command: "adb reboot"
8+
unlock_bootloader:
9+
flash_recovery:
10+
- title: "Boot into bootloader"
11+
type: call_button
12+
content: >
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.
15+
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
16+
command: "adb reboot download"
17+
- title: "Flash custom recovery"
18+
type: call_button
19+
content: In this step, you need to flash a custom recovery on your device. Press 'Confirm and run' to start the process. Confirm afterwards to continue.
20+
command: "heimdall flash --no-reboot --RECOVERY <recovery>"
21+
- title: "Boot into recovery"
22+
type: confirm_button
23+
content: >
24+
Unplug the USB cable from your device. Then manually reboot into recovery by pressing the Volume Down + Power buttons for 8~10 seconds
25+
until the screen turns black & release the buttons immediately when it does, then boot to recovery with the device powered off,
26+
hold Volume Up + Home + Power.
27+
install_os:
28+
- title: "Flash LineageOS"
29+
type: confirm_button
30+
content: >
31+
Now swipe right to allow modifications then tap 'Wipe' on your phone.
32+
Next tap 'Format Data' and follow the instructions on your phone to continue with the formatting process.
33+
This will remove encryption and delete all files stored in the internal storage. Confirm to continue once you are done.
34+
- title: "Flash LineageOS"
35+
type: confirm_button
36+
content: >
37+
Return to the previous menu on your phone by going back two times.
38+
Them tap 'Advanced Wipe', and select the 'Cache' and 'System' partitions and then 'Swipe to Wipe'.
39+
Confirm to continue once you are done.
40+
- title: "Flash LineageOS"
41+
type: confirm_button
42+
content: >
43+
Now connect the phone to the computer again with the USB-cable. On the device, go back three times and select “Advanced”,
44+
then “ADB Sideload”. Select 'Wipe cache' and 'Wipe dalvik cache', then swipe to begin sideload. Then confirm here.
45+
- title: "Flash LineageOS"
46+
type: call_button
47+
content: >
48+
Now it's time to flash the LineageOS image. Don't remove the USB-Cable and press 'Confirm and run' to start!
49+
This might take a while. Confirm after it's done.
50+
command: "adb sideload <image>"
51+
- title: "Reboot into LineageOS"
52+
type: call_button
53+
content: As a final step, reboot into LineageOS to finish the installation by pressing the button.
54+
command: "adb reboot"

openandroidinstaller/assets/configs/sargo.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
how to start and run an operating system (like Android). Your device should be turned on.
1313
- title: "Unlock the bootloader"
1414
type: call_button
15-
content: "Press 'Confirm and run' to reboot into the bootloader."
15+
content: Press 'Confirm and run' to reboot into the bootloader.
1616
command: "adb reboot bootloader"
1717
- title: "Unlock the bootloader"
1818
type: confirm_button
@@ -21,7 +21,7 @@ steps:
2121
Then press 'Confirm and continue' here.
2222
- title: "Unlock the bootloader"
2323
type: call_button
24-
content: "In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here."
24+
content: In this step you actually unlock the bootloader. Just press 'Confirm and run' here. Once it's done, press continue here.
2525
command: "fastboot flashing unlock"
2626
allow_skip: True
2727
- title: "Unlock the bootloader"
@@ -31,11 +31,11 @@ steps:
3131
Please take whatever actions the device asks you to to proceed.
3232
- title: "Unlock the bootloader"
3333
type: call_button
34-
content: "To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue."
34+
content: To finish the unlocking, the phone needs to reboot. Just press 'Confirm and run' here to reboot. Then continue.
3535
command: "fastboot reboot"
3636
- title: "Unlock the bootloader"
3737
type: confirm_button
38-
content: "The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue."
38+
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
3939
flash_recovery:
4040
- title: "Flash a custom recovery"
4141
type: confirm_button
@@ -44,33 +44,33 @@ steps:
4444
adapting and repairing of the operating system.
4545
- title: "Flash a custom recovery"
4646
type: call_button
47-
content: "Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue."
47+
content: Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
4848
command: "adb reboot bootloader"
4949
- title: "Flash a custom recovery"
5050
type: confirm_button
51-
content: "Select 'Restart bootloader' on your smartphone screen. Then confirm to continue."
51+
content: Select 'Restart bootloader' on your smartphone screen. Then confirm to continue.
5252
- title: "Flash a custom recovery"
5353
type: call_button
54-
content: "Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue."
54+
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
5555
command: "fastboot flash boot <recovery>"
5656
install_os:
5757
- title: "Flash LineageOS"
5858
type: confirm_button
59-
content: "In this step, you finally flash LineageOS. Confirm to continue."
59+
content: In this step, you finally flash LineageOS. Confirm to continue.
6060
- title: "Flash LineageOS"
6161
type: confirm_button
62-
content: "Select 'Recovery Mode' on your smartphone screen and press the Start-Button to confirm. Then confirm here."
62+
content: Select 'Recovery Mode' on your smartphone screen and press the Start-Button to confirm. Then confirm here.
6363
- title: "Flash LineageOS"
6464
type: confirm_button
6565
content: >
6666
Now tap Factory Reset, then Format data / Factory reset on your phone screen and continue with the formatting process.
6767
This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
6868
- title: "Flash LineageOS"
6969
type: confirm_button
70-
content: "Return to the main menu on the phone."
70+
content: Return to the main menu on the phone.
7171
- title: "Flash LineageOS"
7272
type: confirm_button
73-
content: "On the device, select “Apply Update”, then “Apply from ADB” to begin sideload. Then confirm here."
73+
content: On the device, select “Apply Update”, then “Apply from ADB” to begin sideload. Then confirm here.
7474
- title: "Flash LineageOS"
7575
type: call_button
7676
content: >
@@ -79,4 +79,4 @@ steps:
7979
command: "adb sideload <image>"
8080
- title: "Flash LineageOS"
8181
type: confirm_button
82-
content: "Flashing finished. Now press 'back' (arrow) and then 'Reboot system now' on the phone screen to finish the installation."
82+
content: Flashing finished. Now press 'back' (arrow) and then 'Reboot system now' on the phone screen to finish the installation.

0 commit comments

Comments
 (0)