Skip to content

Instantly share code, notes, and snippets.

@mouseos
mouseos / dfu_to_edl.py
Created June 28, 2026 09:47
zte dfu to edl 9008
#!/usr/bin/env python3
"""
Send the SalesMultiDL "SwicthToEDL" DIAG command through the ZTE DFU bulk pipe.
Reverse-engineered source:
BI_W_G_Qualcomm.dll
CBIWcdmaQualcommService::SwicthToEDL -> FUN_10033210
Non-flashing: drains the unsolicited Sahara HELLO from 19d2:0112, writes one raw
DIAG payload to bulk OUT, and watches for re-enumeration as 05c6:9008.