Skip to content

Commit c56d42b

Browse files
committed
It finally works with sargo
1 parent 0f6f6f0 commit c56d42b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

openandroidinstaller/tooling.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ def adb_twrp_install_addons(bin_path: Path, config_path: Path, addons: List[str]
285285
yield False
286286
return
287287
sleep(1)
288+
for line in run_command("fastboot", ["set_active", "other"], bin_path):
289+
yield line
290+
if (type(line) == bool) and not line:
291+
logger.error("Switching boot partition failed.")
292+
yield False
293+
return
294+
sleep(1)
288295
# reboot with fastboot
289296
logger.info("Reboot into OS.")
290297
for line in run_command("fastboot", ["reboot"], bin_path):

0 commit comments

Comments
 (0)