flash-edl: send oem reboot-edl directly on Fastboot detection

This commit is contained in:
Luxferre
2026-10-25 10:38:53 +02:00
parent ebf0466b64
commit 252197e857
+3 -7
View File
@@ -138,13 +138,9 @@ def try_kick_into_edl():
try: try:
fb_dev = usb.core.find(idVendor=0x18D1, idProduct=0xD00D) fb_dev = usb.core.find(idVendor=0x18D1, idProduct=0xD00D)
if fb_dev is not None: if fb_dev is not None:
if not _fb_edl_kicked: print("[*] Detected device in Fastboot mode (18d1:d00d). Sending 'oem reboot-edl'...")
_fb_edl_kicked = True _fb_send_edl(fb_dev)
_fb_upgrade_lk2nd_and_edl(fb_dev) usb.util.dispose_resources(fb_dev)
else:
print("[*] Detected device in Fastboot mode (18d1:d00d). Sending 'oem reboot-edl'...")
_fb_send_edl(fb_dev)
usb.util.dispose_resources(fb_dev)
return return
except Exception: except Exception:
pass pass