Safety & Partition Backups
Method 1: Full Backup via Qualcomm EDL Mode (Recommended)
Section titled “Method 1: Full Backup via Qualcomm EDL Mode (Recommended)”Qualcomm Emergency Download (EDL / 9008) mode operates at the primary bootloader level in ROM. It allows you to read the entire eMMC raw storage byte-for-byte, even if the operating system is locked or corrupted.
1. Requirements
Section titled “1. Requirements”- Python 3.8+ installed on your computer.
- The open-source
edltool:Terminal window git clone https://github.com/bkerler/edl.gitcd edlpip install -r requirements.txt
2. Enter EDL Mode
Section titled “2. Enter EDL Mode”Connect the dongle while shorting the EDL test points (or use adb reboot edl if ADB is active). Your computer should detect:
- Linux:
Qualcomm, Inc. Gobi Wireless Modem (QDL mode)inlsusb - Windows:
Qualcomm HS-USB QDLoader 9008in Device Manager
3. Dump the Critical Calibration Partitions
Section titled “3. Dump the Critical Calibration Partitions”Run edl to dump the radio partitions:
# Dump the primary partition tablepython3 edl.py r gpt gpt_backup.bin
# Dump the modem calibration partitionspython3 edl.py r modemst1 modemst1.binpython3 edl.py r modemst2 modemst2.binpython3 edl.py r fsg fsg.binpython3 edl.py r fsc fsc.bin
# (Optional but recommended) Dump the boot and recovery partitionspython3 edl.py r boot boot_stock.binpython3 edl.py r aboot aboot_stock.bin4. Create a Full eMMC Image (Ultimate Safety)
Section titled “4. Create a Full eMMC Image (Ultimate Safety)”If you have 4–8 GB of disk space on your computer, dump the entire flash drive:
# Dump entire eMMC drivepython3 edl.py rl my_dongle_full_dump/Store my_dongle_full_dump/ in a safe folder or cloud backup. If anything ever goes wrong, you can completely restore the device to factory state with python3 edl.py wl my_dongle_full_dump/.
Method 2: Backup via ADB Root (If Available)
Section titled “Method 2: Backup via ADB Root (If Available)”If your device’s stock Android OS allows adb root:
# Obtain root shelladb rootadb wait-for-device
# Create a backup folder on the deviceadb shell "mkdir /sdcard/backup"
# Dump calibration partitions directly from block devicesadb shell "dd if=/dev/block/bootdevice/by-name/modemst1 of=/sdcard/backup/modemst1.img"adb shell "dd if=/dev/block/bootdevice/by-name/modemst2 of=/sdcard/backup/modemst2.img"adb shell "dd if=/dev/block/bootdevice/by-name/fsg of=/sdcard/backup/fsg.img"adb shell "dd if=/dev/block/bootdevice/by-name/fsc of=/sdcard/backup/fsc.img"
# Pull the backup to your PCadb pull /sdcard/backup ./modem_backup/How to Restore Your Backup If Cellular Fails
Section titled “How to Restore Your Backup If Cellular Fails”If after flashing Linux or OpenWrt your modem shows No SIM or refuses to register on 4G LTE:
- Put the dongle into EDL mode.
- Restore the original calibration files:
Terminal window python3 edl.py w modemst1 modemst1.binpython3 edl.py w modemst2 modemst2.binpython3 edl.py w fsg fsg.binpython3 edl.py w fsc fsc.binpython3 edl.py reset - Reboot the device. Cellular functionality and original IMEI will be fully restored!