Skip to content

Commit 7d5ce43

Browse files
committed
Don't run fastboot after bootloader reboot. Might cause issue
1 parent bbab2b1 commit 7d5ce43

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

openandroidinstaller/tool_utils.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,15 @@ def adb_reboot_bootloader(bin_path: Path) -> bool:
7373
yield False
7474
return
7575
sleep(1)
76-
# check if in fastboot mode
77-
for line in run_command("fastboot", ["devices"], bin_path):
78-
yield line
79-
if (type(line) == bool) and not line:
80-
logger.error("No fastboot mode detected. Reboot into bootloader failed.")
81-
yield False
82-
else:
83-
yield True
76+
yield True
77+
# TODO: check if in fastboot mode
78+
# for line in run_command("fastboot", ["devices"], bin_path):
79+
# yield line
80+
# if (type(line) == bool) and not line:
81+
# logger.error("No fastboot mode detected. Reboot into bootloader failed.")
82+
# yield False
83+
# else:
84+
# yield True
8485

8586

8687
def adb_reboot_download(bin_path: Path) -> bool:

0 commit comments

Comments
 (0)