Skip to content

Commit 163bac3

Browse files
committed
Create a left/right pane view; add first images to the left side
1 parent b22ff7c commit 163bac3

File tree

7 files changed

+141
-64
lines changed

7 files changed

+141
-64
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Every step in the config file corresponds to one view in the application. These
7373
- `<image>`: The path of the image file.
7474
- `<recovery>`: The path of the recovery file.
7575
- `<inputtext>`: Text from the user input from `call_button_with_input` views.
76+
- `img`: Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
7677
- `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.
7778

7879
After you created a config file, you can open a pull request to make the file available to other users. The file should be named after device name output by `adb shell dumpsys bluetooth_manager | grep 'name:' | cut -c9-` when the devices is connected to the computer. Please also add the device to the supported devices table above.

openandroidinstaller/assets/configs/Pixel 3a.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ steps:
44
content: "Turn on your device and wait until its fully booted."
55
- title: "Unlock the bootloader"
66
type: call_button
7-
content: "Reboot into bootloader"
7+
content: "Press 'Confirm' to reboot into the bootloader."
88
command: "adb reboot bootloader"
99
- title: "Unlock the bootloader"
1010
type: confirm_button
11-
content: "Select 'Restart bootloader' on your smartphone screen. Then confirm"
11+
content: "Select 'Restart bootloader' on your smartphone screen by pressing the volume button and the confirm by pushing the power button. Then press 'Confirm' here."
1212
- title: "Unlock the bootloader"
1313
type: call_button
1414
content: "Unlock the bootloader now:"
6.37 KB
Loading
9.14 KB
Loading

openandroidinstaller/installer_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ def __init__(
1111
type: str,
1212
content: str,
1313
command: str = None,
14+
img: str = "placeholder.png",
1415
allow_skip: bool = False,
1516
):
1617
self.title = title
1718
self.type = type
1819
self.content = content
1920
self.command = command
21+
self.img = img
2022
self.allow_skip = allow_skip
2123

2224

0 commit comments

Comments
 (0)