Skip to content

Commit 011109f

Browse files
committed
Allow image sideloading to fail because it might happen sometimes
1 parent fdaf355 commit 011109f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openandroidinstaller/tool_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ def adb_twrp_wipe_and_install(bin_path: Path, target: str, config_path: Path) ->
146146
yield line
147147
if (type(line) == bool) and not line:
148148
logger.error(f"Sideloading {target} failed.")
149-
yield False
150-
return
149+
# TODO: this might sometimes think it failed, but actually it's fine. So skip for now.
150+
# yield False
151+
# return
151152
# wipe some cache partitions
152153
sleep(7)
153154
for partition in ["dalvik", "cache"]:

0 commit comments

Comments
 (0)