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
This release adds:
- Switched from flashing to booting TWRP (only flashed for samsung
devices now)
- Supported device codes for a config are now a list; config is loaded
based on this
- Add is_ab_partitioned device to config
- config for OnePlus One (`bacon`)
- Support for OnePlus6TSingle under fajita
- selectable text and markdown elements in the app
- if there are no instructions to unlock the bootloader, assume there is
nothing to do and toggle automatically
Fixes:
- Updated contribute_link
- Moved feedback to app header
- Fixes a bug where there is waited for fastboot to early
- Fix device code issue for zerolte
- Removing extra reboot step
- Check a different url if lineageos exists
@@ -185,19 +186,21 @@ All kinds of contributions are welcome. These include:
185
186
186
187
### How to contribute your own installation configurations
187
188
188
-
If you want to use the tool for a non-supported smartphone, the fastest way is to adapt an [existing config file](https://github.com/openandroidinstaller-dev/openandroidinstaller/tree/main/openandroidinstaller/assets/configs). The file should be named after the `device code` of your device. This is in general the output by `adb shell getprop | grep ro.product.device` when the devices is connected to the computer. You can also get the device code by connecting the device to the computer and run OpenAndroidInstaller to detect the device.
189
+
If you want to use the tool for a non-supported smartphone, the fastest way is to adapt an [existing config file](https://github.com/openandroidinstaller-dev/openandroidinstaller/tree/main/openandroidinstaller/assets/configs). The file should be named after the official `device code` of the device. Add the code output by `adb shell getprop | grep ro.product.device`(when the devices is connected to the computer) as well as the official device code to the `supported_device_codes` list in the config. You can also get the device code by connecting the device to the computer and run OpenAndroidInstaller to detect the device.
189
190
190
191
**To test your config file with the executable** without using the developer setup, place it in the same directory as the executable. There it will be detected by name. After you created a config file and it works fine, you can open a pull request to make the file available to other users. Please also add the device to the supported devices table above.
191
192
192
193
#### Content of a config file
193
194
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.
195
196
196
197
##### How to write Metadata
197
198
Every config file should have metadata with the following fields:
198
199
-`maintainer`: str; Maintainer and author of the config file.
199
-
-`devicename`: str; Name of the device.
200
-
-`devicecode`: str; The official device code.
200
+
-`device_name`: str; Name of the device.
201
+
-`is_ab_device`: bool; A boolean to determine if the device is a/b-partitioned or not.
202
+
-`device_code`: str; The official device code.
203
+
-`supported_device_codes`: List[str]; A list of supported device codes for the config. The config will be loaded based on this field.
201
204
-`twrp-link`: [OPTIONAL] str; name of the corresponding twrp page.
202
205
203
206
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.
@@ -213,7 +216,7 @@ Every step in the config file corresponds to one view in the application. These
213
216
-`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.
214
217
-`link_button_with_confirm`: Display a button that opens a browser with a given link, confirm afterwards. Link is given in `link`.
215
218
-`content`: str; The content text displayed alongside the action of the step. Used to inform the user about whats going on.
216
-
-`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`.
219
+
-`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`.
217
220
-`img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
218
221
-`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.
219
222
-`link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/FP3.yaml
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
metadata:
2
2
maintainer: Tobias Sterbak (tsterbak)
3
-
devicename: Fairphone 3
4
-
devicecode: FP3
3
+
device_name: Fairphone 3
4
+
is_ab_device: true
5
+
device_code: FP3
6
+
supported_device_codes:
7
+
- FP3
5
8
steps:
6
9
unlock_bootloader:
7
10
- type: link_button_with_confirm
@@ -29,17 +32,17 @@ steps:
29
32
command: fastboot_reboot
30
33
- type: confirm_button
31
34
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
32
-
flash_recovery:
35
+
boot_recovery:
33
36
- type: confirm_button
34
37
content: >
35
-
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
38
+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
36
39
adapting and repairing of the operating system.
37
40
- type: call_button
38
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.
39
42
command: adb_reboot_bootloader
40
43
- type: call_button
41
44
content: Once the device is in fastboot mode, flash the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
42
-
command: fastboot_flash_recovery
45
+
command: fastboot_boot_recovery
43
46
- type: confirm_button
44
47
content: >
45
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!
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/FP4.yaml
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
metadata:
2
2
maintainer: Tobias Sterbak (tsterbak)
3
-
devicename: Fairphone 4
4
-
devicecode: FP4
3
+
device_name: Fairphone 4
4
+
is_ab_device: true
5
+
device_code: FP4
6
+
supported_device_codes:
7
+
- FP4
5
8
steps:
6
9
unlock_bootloader:
7
10
- type: link_button_with_confirm
@@ -29,17 +32,17 @@ steps:
29
32
command: fastboot_reboot
30
33
- type: confirm_button
31
34
content: The bootloader is now unlocked. Since the device resets completely, you will need to re-enable USB debugging to continue.
32
-
flash_recovery:
35
+
boot_recovery:
33
36
- type: confirm_button
34
37
content: >
35
-
Now you need to flash a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
38
+
Now you need to boot a custom recovery system on the phone. A recovery is a small subsystem on your phone, that manages updating,
36
39
adapting and repairing of the operating system.
37
40
- type: call_button
38
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.
39
42
command: adb_reboot_bootloader
40
43
- type: call_button
41
-
content: Once the device is in fastboot mode, flash the custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
42
-
command: fastboot_flash_recovery
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
43
46
- type: confirm_button
44
47
content: >
45
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!
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/a5xelte.yaml
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,21 @@
1
1
metadata:
2
2
maintainer: Tobias Sterbak (tsterbak)
3
-
devicename: Samsung Galaxy A5 (2016)
4
-
devicecode: a5xelte
3
+
device_name: Samsung Galaxy A5 (2016)
4
+
is_ab_device: false
5
+
device_code: a5xelte
6
+
supported_device_codes:
7
+
- a5xelte
5
8
steps:
6
9
unlock_bootloader:
7
-
flash_recovery:
10
+
boot_recovery:
8
11
- type: call_button
9
12
content: >
10
13
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
11
14
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
12
15
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
13
16
command: adb_reboot_download
14
17
- type: call_button
15
-
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.
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.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/a72q.yaml
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,21 @@
1
1
metadata:
2
2
maintainer: Tobias Sterbak (tsterbak)
3
-
devicename: Samsung Galaxy A72
4
-
devicecode: a72q
3
+
device_name: Samsung Galaxy A72
4
+
is_ab_device: false
5
+
device_code: a72q
6
+
supported_device_codes:
7
+
- a72q
5
8
steps:
6
9
unlock_bootloader:
7
-
flash_recovery:
10
+
boot_recovery:
8
11
- type: call_button
9
12
content: >
10
13
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
11
14
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
12
15
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
13
16
command: adb_reboot_download
14
17
- type: call_button
15
-
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.
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.
Copy file name to clipboardExpand all lines: openandroidinstaller/assets/configs/a7xelte.yaml
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,21 @@
1
1
metadata:
2
2
maintainer: Tobias Sterbak (tsterbak)
3
-
devicename: Samsung Galaxy A7 (2016)
4
-
devicecode: a7xelte
3
+
device_name: Samsung Galaxy A7 (2016)
4
+
is_ab_device: false
5
+
device_code: a7xelte
6
+
supported_device_codes:
7
+
- a7xelte
5
8
steps:
6
9
unlock_bootloader:
7
-
flash_recovery:
10
+
boot_recovery:
8
11
- type: call_button
9
12
content: >
10
13
As a first step, you need to boot into the bootloader. A bootloader is the piece of software,
11
14
that tells your phone who to start and run an operating system (like Android). Your device should be turned on.
12
15
Then press 'Confirm and run' to reboot into the bootloader. Continue once it's done.
13
16
command: adb_reboot_download
14
17
- type: call_button
15
-
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.
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.
0 commit comments