Skip to content

Commit

Permalink
It finally works with sargo
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Feb 1, 2023
1 parent 0f6f6f0 commit c56d42b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openandroidinstaller/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,13 @@ def adb_twrp_install_addons(bin_path: Path, config_path: Path, addons: List[str]
yield False
return
sleep(1)
for line in run_command("fastboot", ["set_active", "other"], bin_path):
yield line
if (type(line) == bool) and not line:
logger.error("Switching boot partition failed.")
yield False
return
sleep(1)
# reboot with fastboot
logger.info("Reboot into OS.")
for line in run_command("fastboot", ["reboot"], bin_path):
Expand Down

0 comments on commit c56d42b

Please sign in to comment.