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
Copy file name to clipboardExpand all lines: doc/how_to_contribute_your_own_installation_configurations.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,14 @@ A config file consists of two parts. The first part are some metadata about the
12
12
Every config file should have `metadata` with the following fields:
13
13
-`maintainer`: str; Maintainer and author of the config file.
14
14
-`device_name`: str; Name of the device.
15
+
-`brand`: [OPTIONAL] str; Name of the brand. Can be used to make brand specific actions.
15
16
-`is_ab_device`: bool; A boolean to determine if the device is a/b-partitioned or not.
16
17
-`device_code`: str; The official device code.
17
18
-`supported_device_codes`: List[str]; A list of supported device codes for the config. The config will be loaded based on this field.
18
19
-`twrp-link`: [OPTIONAL] str; name of the corresponding twrp page.
19
20
-`additional_steps` : [OPTIONAL] List[str]; A list of additional steps. Can be `dtbo`, `vbmeta`, `vendor_boot` or `super_empty`.
21
+
-`notes`: [OPTIONAL] List[str]; specific phone information, showed before choosing ROM / recovery
22
+
-`untested`: [OPTIONAL] bool; If `true`, a warning message is showed during installation process.
20
23
21
24
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.
22
25
-`android`: [OPTIONAL] int|str; Android version to install prior to installing a custom ROM.
@@ -33,7 +36,7 @@ Every step in the config file corresponds to one view in the application. These
33
36
-`img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
34
37
-`content`: str; The content text displayed alongside the action of the step. Used to inform the user about what's going on. For consistency and better readability the text should be moved into the next line using `>`.
35
38
-`link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.
36
-
-`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_flash_additional_partitions`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_unlock_critical`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
39
+
-`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_flash_recovery`, `fastboot_reboot_recovery`, `fastboot_flash_additional_partitions`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_unlock_critical`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
37
40
-`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.
38
41
39
42
**Please try to retain this order of these fields in your config to ensure consistency.**
notes+="- **This device has never been tested with OpenAndroidInstaller.** The installation can go wrong. You may have to finish the installation process with command line. If you test, please report the result on GitHub.\n\n"
188
+
if"notes"inself.state.config.metadata:
189
+
fornoteinself.state.config.metadata['notes']:
190
+
notes+="- "+note+"\n\n"
191
+
ifnotes!="":
192
+
self.right_view.controls.extend(
193
+
[
194
+
Text(
195
+
"Important notes for your device",
196
+
style="titleSmall",
197
+
color=colors.RED,
198
+
weight="bold",
199
+
),
200
+
Markdown(f"""{notes}"""),
201
+
]
202
+
)
180
203
# if there is an available download, show the button to the page
0 commit comments