Skip to content

Commit

Permalink
Fix configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Feb 8, 2023
1 parent e24b724 commit d37c1c0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 33 deletions.
10 changes: 1 addition & 9 deletions openandroidinstaller/assets/configs/cheeseburger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,4 @@ steps:
command: adb_reboot_bootloader
- type: call_button
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_flash_recovery
install_os:
- type: call_button
content: >
In the next steps, you finally flash the selected OS image.
Wait until the TWRP screen appears. Then run the command.
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS.
command: adb_twrp_wipe_and_install
command: fastboot_flash_recovery
10 changes: 1 addition & 9 deletions openandroidinstaller/assets/configs/dumpling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,4 @@ steps:
command: adb_reboot_bootloader
- type: call_button
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_flash_recovery
install_os:
- type: call_button
content: >
In the next steps, you finally flash the selected OS image.
Wait until the TWRP screen appears. Then run the command.
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS.
command: adb_twrp_wipe_and_install
command: fastboot_flash_recovery
10 changes: 1 addition & 9 deletions openandroidinstaller/assets/configs/griffin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,4 @@ steps:
command: adb_reboot_bootloader
- type: call_button
content: Flash a custom recovery (temporarily) by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_flash_recovery
install_os:
- type: call_button
content: >
In this last step, you finally flash the selected OS image.
Wait until the TWRP screen appears. Then run the command.
This step will format your phone and wipe all the data. It will also remove encryption and delete all files stored
in the internal storage. Then the OS image will be installed. Confirm to run. This might take a while. At the end your phone will boot into the new OS.
command: adb_twrp_wipe_and_install
command: fastboot_flash_recovery
12 changes: 7 additions & 5 deletions openandroidinstaller/views/addon_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def build(self):
),
]
),
Text("Here you can find instructions on how to download the right Google apps for your device."),
Text(
"Here you can find instructions on how to download the right Google apps for your device."
),
Row(
[
ElevatedButton(
Expand Down Expand Up @@ -174,10 +176,10 @@ def build(self):
self.right_view.controls.extend(
[
Text("Select addons:", style="titleSmall"),
#Markdown(
#f"""
#The image file should look something like `lineage-19.1-20221101-nightly-{self.state.config.metadata.get('devicecode')}-signed.zip`."""
# ),
# Markdown(
# f"""
# The image file should look something like `lineage-19.1-20221101-nightly-{self.state.config.metadata.get('devicecode')}-signed.zip`."""
# ),
Row(
[
FilledButton(
Expand Down
5 changes: 4 additions & 1 deletion openandroidinstaller/views/step_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def display_progress_bar(self, line: str):
result = None
# get the progress numbers from the output lines
if (type(line) == str) and line.strip():
result = re.search(r"\(\~(\d{1,3})\%\)|(Total xfer:|adb: failed to read command: Success)", line.strip())
result = re.search(
r"\(\~(\d{1,3})\%\)|(Total xfer:|adb: failed to read command: Success)",
line.strip(),
)
if result:
if result.group(2):
percentage_done = 100
Expand Down

0 comments on commit d37c1c0

Please sign in to comment.