Skip to content

Commit

Permalink
Allow the install process to fail and still continue and also recogni…
Browse files Browse the repository at this point in the history
…ze that as success in some cases
  • Loading branch information
tsterbak committed Feb 8, 2023
1 parent 3cdd7af commit 2020425
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion openandroidinstaller/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def adb_twrp_wipe_and_install(
sleep(1)
if (type(line) == bool) and not line:
yield False
return
break
# finally reboot into os or to fastboot for flashing addons
sleep(7)
Expand Down
2 changes: 1 addition & 1 deletion openandroidinstaller/views/step_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ 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:)", line.strip())
result = re.search(r"\(\~(\d{1,3})\%\)|(Total xfer:|adb: failed to read command: Success)", line.strip())
if result:
if result.group(1):
percentage_done = int(result.group(1))
Expand Down

0 comments on commit 2020425

Please sign in to comment.