[UNBRICK] HTC Unbricking Project

Search This thread

dexter93

Inactive Recognized Developer
Jul 1, 2010
11,607
2,341
We are proud to announce that the MyTouch 4G Slide is now UNbrickable. Users with the QHSUSB_DLOAD issue can now fully recover their phones and get them fully functional.

Unbrick-proj-Dshot.jpg


Note: This will fix only devices which were bricked by turning S ON. And bricks caused by a damaged hboot via interrupted OTA update/RUU flash on a S-ON device. Any devices bricked with other ways are currently *not* supported. We are working on it

The "core" of the unbricking project dev team:
MOVZX
RussianBear
Fuses
Dexter93

Testing stuff and irc support:
globatron
Deceptivechaos
dburgd84
Snake_skw

Other stuff:
dmcb123
xIndirect
Hawke84

Thanks to trevE, xHausx and the rest of the evo3d team that gave us the basic info to work on and made us curious to see if we could get something out of it. Also thanks to ief and his team @revolutionary for helping us understand the bootloaders better. We should also not forget to thank cxb01 of malshenzu.com and xda members arthurire and untrueparadox who helped in translation.
 
Last edited:

dexter93

Inactive Recognized Developer
Jul 1, 2010
11,607
2,341
Prerequisites
  • a linux box/live cd with automount disabled and without unity
  • the appropriate package for the device
  • the latest RUU for your device
  • a device bricked by writing security flag 3 with an unsigned hboot, or caused by a damaged hboot via interrupted OTA update/RUU flash on a S-ON device
  • a usb cable
  • some basic linux experience
  • patience

DISCLAIMER: We do NOT guarantee that this method will work for you, or that it is flawless. We are also not responsible if your phone is completely dead after the procedure, or your house burns down because your phone exploded. You are doing this in YOUR OWN RISK.

Instructions

NEW: Detailed video on the process. Its displaying the process on a Sensation, but its pretty much the same thing. Thanks to kgs1992 :)
  1. Boot the linux box and download the appropriate package for the device.
  2. Extract the package in the home directory
  3. Open up a terminal
  4. Remove SIM, microSD card and battery and connect the device using the USB cable. This procedure must be done without battery
  5. Detect the device using the script provided. Type this in the terminal
    Code:
    ./brickdetect.sh
    You should get something like sdX. We are interested on that "X"
  6. Unplug the usb cable from the device
  7. Backup the hboot currently in the phone by using this command. Plug the device in ONLY when asked to
    Code:
    sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12
    Replace the "X" with the letter the script gave you
  8. Follow the on-screen instructions from emmc_recover
  9. Hexdump the b_hboot to check the hboot version
    Code:
    hexdump -C b_hboot.img |less
    The output should be like this:
    Code:
    00000000  05 00 00 00 03 00 00 00  00 00 00 00 00 00 10 40  |...............@|
    00000010  d8 fc 0f 00 d8 fb 0f 00  d8 fb 1f 40 00 01 00 00  |...........@....|
    00000020  d8 fc 1f 40 00 00 00 00  12 00 00 ea 31 2e 34 35  |...@........1.45|
    00000030  2e 31 33 31 33 00 00 00  38 32 36 30 20 53 50 4c  |.1313...8260 SPL|
    00000040  00 00 00 00 00 f0 20 e3  53 48 49 50 00 00 00 00  |...... .SHIP....|
    00000050  00 f0 20 e3 00 f0 20 e3  48 42 4f 4f 54 2d 38 32  |.. ... .HBOOT-82|
    00000060  36 30 00 00 00 f0 20 e3  38 63 61 38 33 62 37 31  |60.... .8ca83b71|
    This is the typical hex of a hboot. We are interested to check if that is the hboot partition and if it is, to get to know the version. In this case it is 1.45
  10. If in the above step you failed to identify the hboot, unplug all devices connected to that pc, reboot and try again
  11. Unplug the device
  12. Check again it is the right version, because if you do a mistake here, you won't be able to go back
    You can only flash the same version as the one in the device.


    !!!!!DO NOT ATTEMPT TO FLASH ANOTHER VERSION OR DOWNGRADE!!!IT HAS BEEN PROVEN FATAL!!!!
  13. Flash the hboot on the device. Replace "V.VV" with hboot version (eg. 1.44, 1.45) and "X" with the one you got from the detect script. Plug the device in ONLY when asked to
    Code:
    sudo ./emmc_recover --flash dshotV.VV.nb0 --device /dev/sdX12 --backupafter hboot_f.nb0
  14. Follow the on-screen instructions from emmc_recover. A successful flash should have this output:
    Code:
    511+1 records in
    511+1 records out
    1047808 bytes(1.0 MB) copied
  15. Unplug the device, put SIM, microSD card and battery in and power on
  16. Congratulations, the device is unbricked.
  17. FLASH THE RUU IMMEDIATELY AFTER RECOVERING!! The device will be unstable after the recovery if you don't flash it.

Notes on the procedure:

  • If the device doesn't power on, get a copy of the hboot_f.nb0 and b_hboot.img (should be located in the home directory) and contact us
  • The connection between the device and the pc will be unstable, and will time out. You have to be quick when doing the above, specially while flashing. If the connection times out don't panic, just unplug and replug the device
  • Unity and automount are known to cause issues. We recommend getting rid of both
  • USB3 ports do not work properly. Please plug the device in a USB2 port
  • How to disable automount on ubuntu
    Code:
    gsettings set org.gnome.desktop.media-handling automount false


Downloads

For T-Mobile MyTouch 4G slide( Doubleshot):
32bit version MD5: 50a5f503151d37ccd3160d38afa7382a
64bit version MD5: eabe6061fcded077bb4a01432e17dd0e

Don't have a linux distro installed on your pc? We highly recommend this livecd
 
Last edited:

nickmatine

Senior Member
Feb 23, 2012
89
5
hi
no experience on linux

ubuntu@ubuntu:~$ ./brickdetect.sh
Searching for bricked device...
The bricked device is on
Use the above node to perform operations using the emmc_recover tool

it\s not find something sdX

after i paste next command sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12


Searching for bricked device...
The bricked device is on
Use the above node to perform operations using the emmc_recover tool
ubuntu@ubuntu:~$ sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12
=== emmc_recover 0.2, written by Fuses =====
Messing up with device /dev/sdX12, ARE YOU SURE?
CTRL+C if not, ENTER to continue

Waiting device /dev/sdX12.......
 

dexter93

Inactive Recognized Developer
Jul 1, 2010
11,607
2,341
hi
no experience on linux

ubuntu@ubuntu:~$ ./brickdetect.sh
Searching for bricked device...
The bricked device is on
Use the above node to perform operations using the emmc_recover tool

it\s not find something sdX

after i paste next command sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12


Searching for bricked device...
The bricked device is on
Use the above node to perform operations using the emmc_recover tool
ubuntu@ubuntu:~$ sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12
=== emmc_recover 0.2, written by Fuses =====
Messing up with device /dev/sdX12, ARE YOU SURE?
CTRL+C if not, ENTER to continue

Waiting device /dev/sdX12.......

Hey... Don't rush. You shouldn't be skipping steps or you might damage your pc for good . Check the connections and that your brick is one of the supported ones . That X should be a letter corresponding to the device

Sent from my HTC Sensation Z710e
 
  • Like
Reactions: nickmatine

dexter93

Inactive Recognized Developer
Jul 1, 2010
11,607
2,341
downloads updated with fixed detection scripts. the output should be more clear now
 

sam.assad

Senior Member
Jun 11, 2011
199
17
thanks for the code ..it does work but unfortunatlly i got this " device cant be detected. check connections
 

mrbubs3

Senior Member
Jan 29, 2011
224
69
New York
Is there an IRC channel for this? My device is not being detected on the Ubuntu live CD but is on my windows 7 machine.
 

12manytimes

Senior Member
Aug 11, 2010
244
46
San Francisco
i have the mt4g glacier...

im running ubuntu (12.10)

i installed the files in the home directory in linux..

after i plug the phone up with no battery, etc...

and type ./brickdetect.sh

it says the device is not detected...

what am im doing wrong?
 

dexter93

Inactive Recognized Developer
Jul 1, 2010
11,607
2,341
Is there an IRC channel for this? My device is not being detected on the Ubuntu live CD but is on my windows 7 machine.


yes, there is. #unbrick on irc.freenode.net




i have the mt4g glacier...

im running ubuntu (12.10)

i installed the files in the home directory in linux..

after i plug the phone up with no battery, etc...

and type ./brickdetect.sh

it says the device is not detected...

what am im doing wrong?

The Glacier is not supported.

Sent from the brick
 
  • Like
Reactions: shikaziin

GoPadge

Senior Member
Dec 20, 2010
139
23
Topeka, KS
I have a MT4GS that's showing in Windows as qhsusb_dload.

I tried to follow the direction in post 1, but I can't get any of my HTC phones to show in my Ubuntu VM.
 

GoPadge

Senior Member
Dec 20, 2010
139
23
Topeka, KS
How did you end up there?
VMs don't work btw

Heh. It's a "new" phone off eBay. I already have a MT4GS on CM9 and I wanted to have a backup, so I've been stalking eBay for some good deals. This new phone is in relatively good shape, other than being bricked....

I can't install Ubuntu on my work PC (IT is sort of picky about that for some reason). But the VM has worked so far for flashing CM9 to both my HP TouchPad and my primary MT4GS. I do have an older Dell laptop that needs to have XP reinstalled anyway. I could skip that and move it to Ubuntu for good.

So I guess I'm sort of stuck on the qhsusb_dload MT4GS for now.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    We are proud to announce that the MyTouch 4G Slide is now UNbrickable. Users with the QHSUSB_DLOAD issue can now fully recover their phones and get them fully functional.

    Unbrick-proj-Dshot.jpg


    Note: This will fix only devices which were bricked by turning S ON. And bricks caused by a damaged hboot via interrupted OTA update/RUU flash on a S-ON device. Any devices bricked with other ways are currently *not* supported. We are working on it

    The "core" of the unbricking project dev team:
    MOVZX
    RussianBear
    Fuses
    Dexter93

    Testing stuff and irc support:
    globatron
    Deceptivechaos
    dburgd84
    Snake_skw

    Other stuff:
    dmcb123
    xIndirect
    Hawke84

    Thanks to trevE, xHausx and the rest of the evo3d team that gave us the basic info to work on and made us curious to see if we could get something out of it. Also thanks to ief and his team @revolutionary for helping us understand the bootloaders better. We should also not forget to thank cxb01 of malshenzu.com and xda members arthurire and untrueparadox who helped in translation.
    6
    Prerequisites
    • a linux box/live cd with automount disabled and without unity
    • the appropriate package for the device
    • the latest RUU for your device
    • a device bricked by writing security flag 3 with an unsigned hboot, or caused by a damaged hboot via interrupted OTA update/RUU flash on a S-ON device
    • a usb cable
    • some basic linux experience
    • patience

    DISCLAIMER: We do NOT guarantee that this method will work for you, or that it is flawless. We are also not responsible if your phone is completely dead after the procedure, or your house burns down because your phone exploded. You are doing this in YOUR OWN RISK.

    Instructions

    NEW: Detailed video on the process. Its displaying the process on a Sensation, but its pretty much the same thing. Thanks to kgs1992 :)
    1. Boot the linux box and download the appropriate package for the device.
    2. Extract the package in the home directory
    3. Open up a terminal
    4. Remove SIM, microSD card and battery and connect the device using the USB cable. This procedure must be done without battery
    5. Detect the device using the script provided. Type this in the terminal
      Code:
      ./brickdetect.sh
      You should get something like sdX. We are interested on that "X"
    6. Unplug the usb cable from the device
    7. Backup the hboot currently in the phone by using this command. Plug the device in ONLY when asked to
      Code:
      sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12
      Replace the "X" with the letter the script gave you
    8. Follow the on-screen instructions from emmc_recover
    9. Hexdump the b_hboot to check the hboot version
      Code:
      hexdump -C b_hboot.img |less
      The output should be like this:
      Code:
      00000000  05 00 00 00 03 00 00 00  00 00 00 00 00 00 10 40  |...............@|
      00000010  d8 fc 0f 00 d8 fb 0f 00  d8 fb 1f 40 00 01 00 00  |...........@....|
      00000020  d8 fc 1f 40 00 00 00 00  12 00 00 ea 31 2e 34 35  |...@........1.45|
      00000030  2e 31 33 31 33 00 00 00  38 32 36 30 20 53 50 4c  |.1313...8260 SPL|
      00000040  00 00 00 00 00 f0 20 e3  53 48 49 50 00 00 00 00  |...... .SHIP....|
      00000050  00 f0 20 e3 00 f0 20 e3  48 42 4f 4f 54 2d 38 32  |.. ... .HBOOT-82|
      00000060  36 30 00 00 00 f0 20 e3  38 63 61 38 33 62 37 31  |60.... .8ca83b71|
      This is the typical hex of a hboot. We are interested to check if that is the hboot partition and if it is, to get to know the version. In this case it is 1.45
    10. If in the above step you failed to identify the hboot, unplug all devices connected to that pc, reboot and try again
    11. Unplug the device
    12. Check again it is the right version, because if you do a mistake here, you won't be able to go back
      You can only flash the same version as the one in the device.


      !!!!!DO NOT ATTEMPT TO FLASH ANOTHER VERSION OR DOWNGRADE!!!IT HAS BEEN PROVEN FATAL!!!!
    13. Flash the hboot on the device. Replace "V.VV" with hboot version (eg. 1.44, 1.45) and "X" with the one you got from the detect script. Plug the device in ONLY when asked to
      Code:
      sudo ./emmc_recover --flash dshotV.VV.nb0 --device /dev/sdX12 --backupafter hboot_f.nb0
    14. Follow the on-screen instructions from emmc_recover. A successful flash should have this output:
      Code:
      511+1 records in
      511+1 records out
      1047808 bytes(1.0 MB) copied
    15. Unplug the device, put SIM, microSD card and battery in and power on
    16. Congratulations, the device is unbricked.
    17. FLASH THE RUU IMMEDIATELY AFTER RECOVERING!! The device will be unstable after the recovery if you don't flash it.

    Notes on the procedure:

    • If the device doesn't power on, get a copy of the hboot_f.nb0 and b_hboot.img (should be located in the home directory) and contact us
    • The connection between the device and the pc will be unstable, and will time out. You have to be quick when doing the above, specially while flashing. If the connection times out don't panic, just unplug and replug the device
    • Unity and automount are known to cause issues. We recommend getting rid of both
    • USB3 ports do not work properly. Please plug the device in a USB2 port
    • How to disable automount on ubuntu
      Code:
      gsettings set org.gnome.desktop.media-handling automount false


    Downloads

    For T-Mobile MyTouch 4G slide( Doubleshot):
    32bit version MD5: 50a5f503151d37ccd3160d38afa7382a
    64bit version MD5: eabe6061fcded077bb4a01432e17dd0e

    Don't have a linux distro installed on your pc? We highly recommend this livecd
    4
    nice....i see this over on the sensation a lot.....so is it done or a wip
    I believe the two posts above say it all ;)

    RELEASE BUMP!
    1
    nice....i see this over on the sensation a lot.....so is it done or a wip
    1
    hi
    no experience on linux

    ubuntu@ubuntu:~$ ./brickdetect.sh
    Searching for bricked device...
    The bricked device is on
    Use the above node to perform operations using the emmc_recover tool

    it\s not find something sdX

    after i paste next command sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12


    Searching for bricked device...
    The bricked device is on
    Use the above node to perform operations using the emmc_recover tool
    ubuntu@ubuntu:~$ sudo ./emmc_recover --backup b_hboot.img --device /dev/sdX12
    === emmc_recover 0.2, written by Fuses =====
    Messing up with device /dev/sdX12, ARE YOU SURE?
    CTRL+C if not, ENTER to continue

    Waiting device /dev/sdX12.......

    Hey... Don't rush. You shouldn't be skipping steps or you might damage your pc for good . Check the connections and that your brick is one of the supported ones . That X should be a letter corresponding to the device

    Sent from my HTC Sensation Z710e