This tool is designed to unbrick devices with Qualcomm chips MSM8960/8930 and APQ8064.
It only works with devices that are stuck in QDLOAD (05c6:9008) / SDBOOT (05c6:9025) mode.
- Connect device to USB port on a Linux PC.
- Run
sudo ./unbrick.shin a terminal. Make sure it is executable. - Follow on screen instructions.
This tool will detect devices in QDLOAD mode, switch to DMSS protocol and upload a hex (converted to bin for this purpose).
The hex is then executed and the device switches to Streaming Protocol, at this point we write a .mbn file to the internal eMMC chip, at the end of the emmc write process the device then reboots.
After the reboot re-running unbrick.sh with detect the device in the second stage for repair,
the device's eMMC is accessible as an SD card, we then write back the damaged parts of the bootchain.
You must write a new partition table or the device will always boot in SD card mode.
WARNING: Failure to write the rest of the boot chain could leave your device in a dead state with only a black screen, no USB mode. The only way around that is through JTAG, or finding the boot resistor which switches the device back to QDLOAD mode, or emergency boot.
Go to this XDA thread for further details.
scripts/getpartbin.py- Python script for backing up the primary partition & extended partition tables and combines them into a writable parition0.bin filescripts/qdload.pl- Perl script for talking in the HDLC framed DMSS & Streaming Protocols used by Qualcommscripts/get-part.sh- UNFINISHED script by darkspr1te for creating partition tables in sfdisk format and .csv format (to be used in the future to create partition0.bin plus more automated collection)scripts/backup.sh- Script for pulling needed partitions from a working devicebinaries/- Folder containing armv5 (armv7 compatible) tools for partition manipulation and data collectionbinaries/hex2bin- convert your xxxxMPRG.hex file to bin for use with qdloadqpst-drivers/- Windows drivers (only included for convenience)
- darkspr1te for the original MSM8660 tool (
brixfix) - E:V:A
- SLS
- JCSullins (RootzWiki)
- Adam Outler