Friday, June 10, 2016

[Revised] How To Unbrick Qualcomm Android Devices

Android devices running on Qualcomm processor have proven to be almost unbrickable. This is so because this guide has been tested and discovered not to be working on some Qualcomm devices, LG G series for instance. So, if you're currently reading this, have some faith, it might just work for you. But don't bother trying it on LG G series.

Unbricking Qualcomm Android Devices

Step One: Analyzing the possible cause of the brick

In newer Qualcomm devices firmware (not the HLOS part, but NON-Hlos, SBL1, TZ, HYP, RPM, and Aboot), especially ARMv8-A, Qualcomm diminished the famous “Qualcomm HS-USB Diagnostics 9006”, and introduced two types of “Qualcomm HS-USB QDLoader 9008”. 

So, before attempting to unbrick your Qualcomm device you need to figure out which 9008 mode your phone is in. This now brings us to:

Step Two: Preparing your Computer

  • Disconnect your PC's internet connections and unplug your mobile device from the computer.
  • Download and install the latest .net Framework on your Computer. Download here
  • Uninstall all mobile related drivers, as well as any Qualcomm driver (if any). Uninstall from Device Manager first, then Program Manager.
  • Alternatively, you can use REVOUninstaller to uninstall all driver related software, then use Device Remover to remove all device drivers.
  • Now, run Command Prompt as Administrator and issue the follow commands followed by Enter button
bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON

  •  Reboot you computer, and it should now boot into test mode as shown in the screenshot below. (bottom-right of your screen)

  • Download, extract to an empty folder, then open the folder according to your Windows type (x64 or x86) and double click dpinst64.exe or dpinst32.exe (depending on your Windows installation) to install the Qualcomm driver.
  • Now connect your phone to the computer. It should now be detected as “Qualcomm HS-USB QDLoader 9008” and the driver version (you can check in “Device Manager”).

Step Three: Possible cause of brick (brick type)

If you were just messing with system image, boot image, system’s framework or other things that does not relate to Qualcomm’s core files (modem-NON-HLOS.bin, aboot-emmc_appsboot.mbn, sbl1, hyp, tz, rpm partition, for example installing sound patch, etc, your device will enter the new 9008 mode, which is a combination of the old “Qualcomm HS-USB Diagnostics 9006” and “Qualcomm HS-USB QDLoader 9008”. Symptoms of this brick mode include:
  • The LED charging indicator near the phone speaker will display red.
  • Your phone will vibrate endlessly, and this vibration will end only if you disconnect the phone from your PC and remove the battery.
If Device Manager is launched, you’ll see “Qualcomm HS-USB QDLoader 9008” under PORTS (COM & LPT) or “QHUSB_BULK” under Other devices, and “Qualcomm MMC Storage USB Device” under Disk drives. See screenshot below


However, if your Mobile’s Qualcomm’s partition is messed up while playing around with NON-HLOS.bin, emmc_appsboot.mbn, sbl1.mbn, hyp.mbn, tz.mbn, rpm.mbn, or by other means, messing the whole Qualcomm’s eMMC partition, your device will most likely go into the OLD “Qualcomm HS-USB QDLoader 9008” mode. Symptons:
  • The phone charging indicator would not light if you connect your mobile to Computer.
In Device Manager only “Qualcomm HS-USB QDLoader 9008” will be listed in PORTS (COM & LPT) or “QHUSB_BULK” in Other devices, but no “Qualcomm MMC Storage USB Device” in Disk drives. See screenshot below

If you are reading this, you need to have followed the procedure above to discover the exact cause of your device brick and the brick mode it is in: whether it is in the OLD ‘9008″ or NEW “9008” mode. This will help you proceed to the unbricking process below.

Step Four: Unbricking your Qualcomm device

For devices in NEW “Qualcomm HS-USB QDLoader 9008” MODE

If your device is in this mode, the unbrick process and steps is a whole lot easier. You need someone who has the same phone as you to backup and upload their device’s complete eMMC image for you. The device needs to have root access. Learn how to root here.

To get such image, you or your friend needs to do the following:
  • Get an external MicroSD card with “exfat” system file, and the size of this SD card should be larger than 16 GB, which is the size of the whole partition.
  • Do a complete factory reset on the phone. If a custom recovery is installed, use it to wipe data, cache, and internal storage.
  • While the sdcard is in the phone, run the follow commands via adb
adb shell
dd if=/dev/block/mmcblk0 of=/storage/sdcard1/backup.img bs=512 count=30535646
The size of the backup.img is around 16 GB, However, if compressed would be about 2 GB.

Let's proceed...

  • Download MiniTool Partition Wizard and HDD Raw Copy Tool.
  • Copy the backup.img file to Computer
  • Connect the Qualcomm device to Computer via USB cable and do not disconnect from here.
  • Now launch MiniTool Partition Wizard and you should see a drive with about 29 partitions. See sample screenshot below

  • Delete all 29 partitions and click Apply ...wait for the process to complete.
  • Once the process is complete, launch HDD Raw Copy Tool 
  • Now, select the backup.img and click Continue

  • Select Qualcomm MMC Storage USB Device and click Continue
  • Once in the next page, select everything, then click Start

Unfortunately, if you're unable to get the backup.img file from anyone, you will need to force your device to enter the old Qualcomm HS-USB QDLoader 9008 mode. Read below to do this...

  • Launch MiniTool Partition
  • Delete all 29 partitions
  • Click on Create Partition. Select Primary Partition and choose ext4 file system. Do not give this drive a name or label.
  • Now click Apply and be patient for the process to complete
  • Once complete, disconnect the phone from Computer and remove battery. Insert after a few seconds. Welcome to old Qualcomm HS-USB QDLoader 9008 mode.

Unbricking Devices in old Qualcomm HS-USB QDLoader 9008 mode

  • Download QPST 2.7 build 422 (QFIL) and
  • Extract the QPST and double-click on setup.exe to install
  • Extract 8675_W00 to a different folder
  • Download your phone's stock firmware. Should not be a zip file, but a flashable single firmware extension.
  • It is assumed that you've already installed QFIL on your computer before reaching this step.
  • Launch QFIL from programs or start menu
  • Fill out QFIL options as follows:

The programmer will be prog_emmc_firehose_8936.mbn
Use the rawprogram0.xml
Use the patch0.xml 
Note: all these files are contained in extracted 8675_W00 folder

  • Now click on Download button.

The phone should automatically reboot itself once the flashing process is complete and enter into a bootloop.

  • Disconnect the device from computer now
  • Once it's about booting up again press Volume up button while reconnecting to computer so as to put the device in Bootloader mode
  • Open 8675_W00 folder now and double click FlashAll(AfterQFil).bat.
  • Your phone should now reboot to its stock firmware and boot completely to system.

Credits: DroidSavvy

Write replies
  1. Won't worked here, received the error:

    Start Sending Programmer
    Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol

    em QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)

    em QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)
    Download Fail:Sahara FailSahara Fail
    Finish Download

    Could you help me?


    1. I have the same problem. Successfully solved friend?

    2. Sorry for late reply, I've been busy lately.

      What's your device manufacturer and model?

  2. Moto G doesn't support exfat file system. Try this recommendation on XDA forum, click here.

  3. Help .. .

    i get notif Sahara Version:0
    Start Sending Programmer
    Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol

    at QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)

    at QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)
    Download Fail:Sahara FailSahara Fail
    Finish Download . . .

    Wht cn i do ? :(

    use Andromax i3

    1. Try formatting your sdcard to NTFS file system instead of exfat.

  4. i have a hard brick Yuphoria ( YU5010A )

    not detected by PC, when pressing power button it vibrates, same thing happen when trying fastbooy and recovery mode

    1. Try using this firmware to flash and unbrick.

      Instructions contained in zip file.

    2. i have the stock firmware and i know how to flash, my problem is the phone is dead ( only vibrates ) and cannot detect by PC

  5. same on me,, just vibrate and not detected on PC.. my phone is hisense I46D1G

  6. Hi I need Help With my Amazon Fire Phone, My Device Manager Shows Qualcom Hs-Usb QD Loader 9008 Please Guide me It will be Highly Appreciated Thanks

  7. I Hard Bricked My Fire Phone From SafeStrap Recovery Trying to flash Stock Rom from there...

    1. I take it you've not read the content of this post. Please read, so you learn how to get the backup image or firmware to unbrick your device.

  8. Collins Edim Do you even know which device i am talking about? Its Amazon Fire Phone it does not have memory card on it could you do some search and then try to help/guide me here?

    1. "...this guide has been tested and discovered not to be working on some Qualcomm devices..."

      You need the unbrick firmware described in the post to fix your device. If your device has no external sdcard, use this instead

      dd if=/dev/block/mmcblk0 of=/storage/sdcard0/backup.img bs=512 count=30535646

      To dump backup file in internal memory.

      If this doesn't work out well, then your device may not be supported.

  9. Hi Collin,

    1. My hard bricked device is qualcomm lenovo A706. No backup.img at all.
    2. "Qualcomm hs-usb qdloader 9008" is detected on device manager under COM1 & LPT1.
    3. It's not detected under Disk Drives.
    4. It's not even detected in Mini Tool Partition.
    5. No vibrate when the power button pressed.

    What to do?

  10. Hi,

    I have a Samsung Galaxy S5 (SM-G900J a.k.a SCL23) from japan that is hard bricked in old Qualcomm HS-USB QDLoader 9008 mode (so, no red light and no storage drive). I tried QFIL but I get the sahara protocol error. What should I do ?

    I was trying on a win10 computer, do I really need a win7 for this to work ?

  11. hello, can it work for Vodafone smart tab ii 10? i messed with the build.prop file and it is dead now.

  12. I have a huawei ascend G630-U1O runing a qualcomm msm8212 but failed to get the right files(service rom) can you pliz find me the right files with xml to unbrick the device coz its in qualcomm hs-usb diagnostics 9006

  13. I have bricked lg f60 will this work on it before I waste my time trying? Ta

  14. What should be the format for "Flashable Single Firmware Extension" in old mode?


If your comment is unrelated to this article, post the problem, request or suggestion here instead.