Skip to content

Commit cd1436e

Browse files
committed
Merge branch 'release-0.4.2-beta' into device-code-as-list
2 parents 13a9751 + a49cae3 commit cd1436e

Some content is hidden

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

67 files changed

+311
-225
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Motorola | moto z | [griffin](https://wiki.lineageos.org/devices/griffin/) | | t
149149

150150
Vendor | Device Name | CodeName | Models | Status
151151
---|---|---|---|---
152+
OnePlus | One | [bacon](https://wiki.lineageos.org/devices/bacon/) | A0001 | tested
152153
OnePlus | 5 | [cheeseburger](https://wiki.lineageos.org/devices/cheeseburger/) | | tested
153154
OnePlus | 5T | [dumpling](https://wiki.lineageos.org/devices/dumpling/) | | tested
154155
OnePlus | 6 | [enchilada](https://wiki.lineageos.org/devices/enchilada/) | | tested
@@ -191,7 +192,7 @@ If you want to use the tool for a non-supported smartphone, the fastest way is t
191192

192193
#### Content of a config file
193194

194-
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, flash a recovery and install the ROMs.
195+
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.
195196

196197
##### How to write Metadata
197198
Every config file should have metadata with the following fields:
@@ -214,7 +215,7 @@ Every step in the config file corresponds to one view in the application. These
214215
- `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.
215216
- `link_button_with_confirm`: Display a button that opens a browser with a given link, confirm afterwards. Link is given in `link`.
216217
- `content`: str; The content text displayed alongside the action of the step. Used to inform the user about whats going on.
217-
- `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_flash_recovery`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
218+
- `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`.
218219
- `img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
219220
- `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.
220221
- `link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.

openandroidinstaller/app_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ def load_config(self, device_code: str):
6767
self.config = _load_config(device_code, self.config_path)
6868
if self.config:
6969
self.steps = copy.deepcopy(self.config.unlock_bootloader) + copy.deepcopy(
70-
self.config.flash_recovery
70+
self.config.boot_recovery
7171
)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
metadata:
2+
maintainer: MagicLike
3+
devicename: OnePlus One
4+
devicecode: bacon
5+
twrp-link: bacon
6+
requirements:
7+
android: 6.0.1
8+
steps:
9+
unlock_bootloader:
10+
- type: call_button
11+
content: >
12+
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
13+
how to start and run an operating system (like Android). Your device should be turned on.
14+
Press 'Confirm and run' to reboot into the bootloader.
15+
command: adb_reboot_bootloader
16+
- type: call_button
17+
content: >
18+
In this step you actually unlock the bootloader. Just press 'Confirm and run' here. The phone will automatically reboot and reformat.
19+
Once it's done, press continue here.
20+
21+
Notice: If you don't have the stock OnePlus One recovery, your device might boot into your custom recovery, but don't do anything / throw an error.
22+
If this appears, reboot you device through your bootloader and just continue normally. (Your bootloader will be unlocked.)
23+
command: fastboot_oem_unlock
24+
- type: confirm_button
25+
content: >
26+
The bootloader is now unlocked. Since the device resets completely, you will need to re-enable Developer Options and USB debugging to continue.
27+
You don't need to re-enable those options, if you have a custom recovery. (See last step.)
28+
When you are done, press continue.
29+
boot_recovery:
30+
- type: call_button
31+
content: >
32+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
33+
adapting and repairing of the operating system.
34+
Make sure your device is turned on. You need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
35+
command: adb_reboot_bootloader
36+
- type: call_button
37+
content: >
38+
Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
39+
command: fastboot_boot_recovery

openandroidinstaller/assets/configs/FP2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ metadata:
66
- FP2
77
steps:
88
unlock_bootloader:
9-
flash_recovery:
9+
boot_recovery:
1010
- type: confirm_button
1111
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,
12+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
1313
adapting and repairing of the operating system.
1414
- type: call_button
1515
content: Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
1616
command: adb_reboot_bootloader
1717
- type: call_button
18-
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
19-
command: fastboot_flash_recovery
18+
content: Boot a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
19+
command: fastboot_boot_recovery
2020
- type: confirm_button
2121
content: >
2222
Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!

openandroidinstaller/assets/configs/FP3.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ steps:
3131
command: fastboot_reboot
3232
- type: confirm_button
3333
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
34-
flash_recovery:
34+
boot_recovery:
3535
- type: confirm_button
3636
content: >
37-
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
37+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
3838
adapting and repairing of the operating system.
3939
- type: call_button
4040
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.
4141
command: adb_reboot_bootloader
4242
- type: call_button
4343
content: Once the device is in fastboot mode, flash the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
44-
command: fastboot_flash_recovery
44+
command: fastboot_boot_recovery
4545
- type: confirm_button
4646
content: >
4747
Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!

openandroidinstaller/assets/configs/FP4.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ steps:
3131
command: fastboot_reboot
3232
- type: confirm_button
3333
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
34-
flash_recovery:
34+
boot_recovery:
3535
- type: confirm_button
3636
content: >
37-
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
37+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
3838
adapting and repairing of the operating system.
3939
- type: call_button
4040
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.
4141
command: adb_reboot_bootloader
4242
- type: call_button
4343
content: Once the device is in fastboot mode, flash the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
44-
command: fastboot_flash_recovery
44+
command: fastboot_boot_recovery
4545
- type: confirm_button
4646
content: >
4747
Now reboot into recovery to verify the installation. Do not reboot into the existing OS, since it will overwrite the recovery you just installed!

openandroidinstaller/assets/configs/a3y17lte.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
- a3y17lte
77
steps:
88
unlock_bootloader:
9-
flash_recovery:
9+
boot_recovery:
1010
- type: call_button
1111
content: >
1212
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
@@ -15,7 +15,7 @@ steps:
1515
command: adb_reboot_download
1616
- type: call_button
1717
content: >
18-
In this step, you need to flash a custom recovery on your device.
18+
In this step, you need to boot a custom recovery on your device.
1919
Press 'Confirm and run' to start the process. Confirm afterwards to continue.
2020
command: heimdall_flash_recovery
2121
- type: confirm_button

openandroidinstaller/assets/configs/a5xelte.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ metadata:
66
- a5xelte
77
steps:
88
unlock_bootloader:
9-
flash_recovery:
9+
boot_recovery:
1010
- type: call_button
1111
content: >
1212
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
1313
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
1414
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1515
command: adb_reboot_download
1616
- type: call_button
17-
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.
17+
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.
1818
command: heimdall_flash_recovery
1919
- type: confirm_button
2020
img: samsung-buttons.png

openandroidinstaller/assets/configs/a72q.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ metadata:
66
- a72q
77
steps:
88
unlock_bootloader:
9-
flash_recovery:
9+
boot_recovery:
1010
- type: call_button
1111
content: >
1212
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
1313
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
1414
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1515
command: adb_reboot_download
1616
- type: call_button
17-
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.
17+
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.
1818
command: heimdall_flash_recovery
1919
- type: confirm_button
2020
img: samsung-buttons.png

openandroidinstaller/assets/configs/a7xelte.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ metadata:
66
- a7xelte
77
steps:
88
unlock_bootloader:
9-
flash_recovery:
9+
boot_recovery:
1010
- type: call_button
1111
content: >
1212
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
1313
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
1414
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
1515
command: adb_reboot_download
1616
- type: call_button
17-
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.
17+
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.
1818
command: heimdall_flash_recovery
1919
- type: confirm_button
2020
img: samsung-buttons.png

0 commit comments

Comments
 (0)