yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] Dragula3012:
now with rmmod

Mar 13 10:01:14 ubuntu kernel: [ 754.768039] usb 1-5: new high speed USB device number 7 using ehci_hcd
Mar 13 10:01:24 ubuntu kernel: [ 764.885194] usb 1-5: can't set config #1, error -71
Mar 13 10:01:24 ubuntu kernel: [ 764.885277] usb 1-5: USB disconnect, device number 7
Mar 13 10:01:24 ubuntu kernel: [ 765.256027] usb 1-5: new high speed USB device number 8 using ehci_hcd
Mar 13 10:01:25 ubuntu kernel: [ 765.443712] USB Serial support registered for Qualcomm USB modem
Mar 13 10:01:25 ubuntu kernel: [ 765.445294] qcserial 1-5:1.0: Qualcomm USB modem converter detected
Mar 13 10:01:25 ubuntu kernel: [ 765.445597] usb 1-5: Qualcomm USB modem converter now attached to ttyUSB0
Mar 13 10:01:25 ubuntu kernel: [ 765.449532] usbcore: registered new interface driver qcserial
Mar 13 10:01:43 ubuntu kernel: [ 783.481139] usbcore: deregistering interface driver qcserial
Mar 13 10:01:43 ubuntu kernel: [ 783.528396] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
Mar 13 10:01:43 ubuntu kernel: [ 783.528426] qcserial 1-5:1.0: device disconnected
Mar 13 10:01:43 ubuntu kernel: [ 783.528449] USB Serial deregistering driver Qualcomm USB modem

Pressed the Volume Down button all the Time, when i replug the phone it will only reregister the qcserial.
[HTC Sensation] Fuses:
It is unbelievable how many writesecureflag bricked devices there are in this world!!

I write this little tool to help people to unbrick those phones. It also helps unbrick those phones that can be in emmc_mode only few seconds. It uses dd to flash images into device.

In this guide I will assume that hboot is causing that brick and hboot is at /dev/sdb12 when emmc_mode enabled phone is connected.

What you need:

1) Bricked sensation :D

2) Linux, If you want to use windows you have to wait that somebody makes emmc_mode stable. If you don't have Linux installed, some Live-cd should be fine.

3) signed hboot from original rom you are using

4) This little tool called emmc_recover

5) Figure out what will be correct device node when phone is in emmc_mode

It is usually /dev/sda /dev/sdb /dev/sdc etc.

With this tool you can reflash any partition you want. SO BE CAREFUL.

There are few options in this tool:

emmc_recovery 0.1 usage:
emmc_recovery [OPTIONS]
-h | --help: display this help
-b | --backup
-f | --flash
-d | --device

How to use it (You have to root):

1) First BACKUP partition

./emmc_recover --backup backupfile.img --device /dev/sdb12

This will backup current sensation hboot into file backupfile.img.

2) Check that this really is correct partition

hexdump -C backupfile.img |less

It should be something like this for hboot

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 31 38 |...@........1.18|
00000030 2e 30 30 30 30 00 00 00 38 32 36 30 20 53 50 4c |.0000...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 39 64 32 34 31 32 33 66 |60.... .9d24123f|

3) If backup was successfull, flash new hboot

./emmc_recover --flash hboot_xxxx.xxx.xx.xx.xx.nb0 --device /dev/sdb12

4) Done.

Below are usual output from tool:

emmc_recovery 0.1
Messing up with device /dev/sdb12, ARE YOU SURE? (CTRL+C if not)

Flashing image file is hboot_xxxx.xxx.xx.xx.xx.nb0
Device is /dev/sdb12

Press ENTER if everything is correct, CTRL+C if not

Connect device into emmc partition mode NOW
Waiting device /dev/sdb12.......
Foundit!
512+0 records in
512+0 records out
1048576 bytes (1.0 MB) copied, 0.740003 s, 1.4 MB/s
Return code is 0

Connect device into computer when you see line.

Waiting device /dev/sdb12.......

Not before!!

NOTE: There may be bugs present....
[HTC Sensation] RussianBear:
can somebody hook your phone (non-brick, of course) up to qpst in diagnostic mode, then go to emmc software download and do "prorgram mmc" and then switch phone to dload mode. bricked people can try it as well, but instead of diagnostic mode, go straight to "program mmc", since you're already in dl mode.

disable the autorun/autoplay function in windows before then though.

Click the Start and Input "gpedit.msc" in search box, then click the result to open the gpedit.

Expand Administrative Templates >Windows Components > Autoplay Policies in order.Then double click "Turn off Autoplay"

Click Enabled, and then select All drives so that you can disable Autorun on all drives.Click Ok at last.

After restarting your computer, you have done all the needed work to disable Auto Play in Windows 7.

after all that do the qpst stuff.

the wire trick is meant for non-bricks only ;) your phone is already in download mode.

another interesting read here: http://xdaforums.com/showthread.php?t=1374511

i wonder if sensation has such a mode.
[HTC Sensation] Um3r:
Lol..I was searching google for the issue in the morning and came across the "gpedit.msc" but turns out that microsoft hasnt built that into home premium versions of windows..

btw I have almost installed ubuntu 11.10..will try it using that
[HTC Sensation] RussianBear:
that's strange. have you actually tried it?

btw, the irc channel is down, i believe. do we have any other ones?
[HTC Sensation] zeav:
So now I successfully dumped the unsigned HBOOT file from my bricked Sensation with the program Fuses wrote :-) (Dexter93, MOVZX, Fuses and everyone else, you guys rock! Kept on going even though the "pros" said it was impossible, +9000 internets for you guys)

Now, where do I get a signed HBOOT file, and which one should I write to my Sensation?
[HTC Sensation] Fuses:
It's good to know that program works :):)

You will get signed HBOOT from original rom. There are thread where all shipped roms are for sensation. If your sensation is EU model you can use hboot what I posted earlier.
[HTC Sensation] RussianBear:
what ruu were you on before? asking, because you will need to get the correct stock hboot from that ruu. movzx got a wrong one (1.17 vs the correct 1.18 one) and was stuck in fastboot yesterday. fuses posted a 1.18 hboot on page 16-17, i think. or you can just extract one from any ruu. run it before plugging the phone, and the just find rom.zip in your temp folder on your pc.
[HTC Sensation] Um3r:
Yes I did try it...Okay so now Ive connected it using linux..I get all the partitions for a few seconds and then I get:

"You do not have the permissions necessary to view the contents of "57f8f4bc-abf4-0000-675f-946fc09f25b__".

IRC is up and running at:

irc.freenode.net

#unbrick
[HTC Sensation] dexter93:
You should find the ruu for the rom version you had flashed from there. then you can extract it from there
[HTC Sensation] Hawke84:
id hang on a bit this is still an alpha idea that has only worked for a couple of people and almsot went very wrong for one.

if you do wanna give it a try, signed hboots come from an RUU

---------- Post added at 02:26 PM ---------- Previous post was at 02:25 PM ----------

I guess the next step is to try and find a way to make a full phone eMMC backup of a good phone which can then be restored at a later date.
[HTC Sensation] dexter93:
We could work on that later. for now we have work to do:

a. this is still alpha, we need testers. do NOT post instructions here,only on irc please

b. we need to get some ruus and extract the hboots, so that they are readily accessible

c.please do not post instructions anywhere else

d. pm me to be added on the op
[HTC Sensation] zeav:
Thanks, I was running the latest update on the EU Sensation (2.3.4 I believe, right before the big ICS update) so I guess your 1.8 HBOOT is the right one :)

I never flashed with a RUU, so it was stock (only updated from built in update), only the HBOOT from Revolutionary that was changed.

I'm gonna restart my Linux here (the volumes hang), then I'll check in here, and if you guys suggest otherwise I will go for it, and tell you guys how it went :)
[HTC Sensation] Fuses:
Yes, I think that is hboot what was used in that version. Or close enough...
[HTC Sensation] zeav:
It's the "hboot_8x60_1.18.0000_20110802_signedbyaa.nb0" right? (Just making sure :p)
[HTC Sensation] Fuses:
Yes it is.
[HTC Sensation] dexter93:
if you arent perfectly sure about it, download the latest ruu for your cid and extract it
[HTC Sensation] zeav:
There is LIFE!

Now to install a new RUU as suggested from Dexter93 :-) (Will update this post here)

Terminal output:

Edit:

My phone just suddenly decided to startup on its own and spam me with SMS. Gonna test to see if I can update to ICS which is supplied through System Update on my phone! :-)
[HTC Sensation] dexter93:
Everybody disconnect from irc. I have to fix something
[HTC Sensation] RussianBear:
i can't even access it from any browser on this work pc or my phone :(
[HTC Sensation] tartouka_912:
when i try to flash the new hboot it says:

"dd: writing '/dev/sdb12': no space left on device"

could be that my hboot is not on sdb12?

or am i trying to flash another thing :P i extracted the file boot_signed.img and renamed to hboot.img

am i on the right way?
[HTC Sensation] Hawke84:
thats not right, your trying to push the wrong file..
[HTC Sensation] tartouka_912:
am supposed to push the hboot_8x60_1.18.0000_20110802_signedbyaa.nb0 file?
[HTC Sensation] dexter93:
Yes. That's it. You almost pushed a kernel
[HTC Sensation] tartouka_912:
but why in terminal you guys are writing hboot.img? i should rename it?

---------- Post added at 06:19 PM ---------- Previous post was at 06:11 PM ----------

GREAAT it workkeed !!!

now am supposed to reflash the RUU?
[HTC Sensation] dexter93:
you are not supposed to, but it would be better if you did
[HTC Sensation] dexter93:
IRC is now up! everyone get there. on freenode.net , channel #unbrick

online browser client: http://webchat.freenode.net/

from mobile use AndChat
[HTC Sensation] MOVZX:
I would recommend everyone with dead Sensation to use GNU/Linux for the unbrick process (Ubuntu preferre). Because it needs just about 5 seconds to finish the hboot injection process.

@Dexter, maybe You should decide the Fuses' method as the prime tutorial; unless everyone has a stable eMMC mode like Me so they could use WinHex instead.

I have tried to brick and unbricked my phone for 21 times with luck, so I'm sure we could release the tutorial as soon as possible. Even if some people might just get stucked at the bootloader, they could fix it as we did on my device by running the proper RUU which depends on the mainver (mine was 1.50.707.1).

PS: 21 times of successful brick and unbrick is enough for Me :)

We should collect every hboot from RUU built into tutorials, so noon won't do anythings' dangerous.
[HTC Sensation] dyval:
People here are just so intelligent..kudos to all of you.:D
[HTC Sensation] dexter93:
We will get the hboots... eventually :)

yeah.. fuses' method is awesome. just the .nb0 typo mistake

get on irc man ;)
[HTC Sensation] dmcb123:
Really awesome work guys its always good to know there's a way to fix things when stuff goes wrong :)

Sorry I couldn't be more helpful during the process. :P
[HTC Sensation] dexter93:
This was removed because people cant read. Lots of them killed their phones by flashing random stuff on the hbbot partition and bricking it . This is an alpha stage development thread, not a how to guide. Learn to read noobs -.-

Will be back later when we get it simplier
[HTC Sensation] dexter93:
Thread updated with poll, so we can get some statistics
[HTC Sensation] RussianBear:
Could people who revived their bricks get their phones into the download mode via the wire trick and then see if linux is detecting it in a similar fashion to the download mode of the bricked ones, please?
[HTC Sensation] f4k3z:
offering help

Hi,

I just finished reading all the info in here and other posts(took me like 6 hours to finish) i made everything as you guys did it. but i am not able to set my bricked phone in emmc mode. i can only get it to get reconized by windows in download mode by using wire trick

my phone got bricked in a different way as yours(i think) i got my phone from ebay, and suddenly it showed that a new update was available( OTA Update) so i performed that update. i used the phone normally around 3 days (after applying OTA Update) and suddenly i was using the phone and it got freezed and i had to take battery out) since then phone was not even detected or anything my pc.. no boot, no led not charging.. nothing... it was completly dead.

before applying update i was pretty sure phone was stock as original.. no root no nothing.

Never heard of a OTA could brick phone, but i think this one got bricked..(applying some Gingerbread upgrade)

if you guys need me to test something, just let me know, i just downloaded everything and even got linux installed in my pc.

i am willing to help and provide any info i could get from a bricked phone.

as i mentioned i am only able to get into download mode using the wire trick.. nithing else.. phone is completly dead.. and not able to get into emmc or so..

i know this thread is not for noobs, but maybe my phone got something different from all the other that got fixed here...
[HTC Sensation] RussianBear:
does it detect it as a qhsusb_dload right away or you have to perform the wire trick to get it there?

can't really blame the ota if it was working for 3 days.

have you tried plugging the phone in and running linux to see what it is detected as?
[HTC Sensation] ren777:
14.03.2012 RIFF JTAG – HTC Sensation (HTC Pyramid) Unbrick, ModelID, CID, IMEI repair Supported

Repairing bricked HTC Sensation is easy with the RIFF Box. Phone is auto powered on with USB Data Cable connected to the PC while battery is connected.

Resurrector will reflash radio’s boot zone (except FSBL area) and will re-write PDA’s SPL version 1.18.0000. Additionally to SPL and Radio zones, the zone which contains Model ID is re-flashed too. Thus after resurrection phone will have Model ID = ‘PG5813000’.

There is option to reflash BOOT and RECOVERY zones.

To resurrect HTC Sensation:

Solder JTAG cable to HTC Sensation JTAG pads;

Insert batter and connect USB Data cable;

Make sure HTC Sensation is selected in the list of models;

If you use only battery, press Power On key;

Click Resurrect button;

Wait till software signals a successful operation completion;

Disconnect power supply, de-solder JTAG wires;

Now phone is in bootable condition, that is, even if it does not start up normally you can flash it using known flashing methods.

To enter download mode:

Disconnect PC cable;

Insert battery;

Hold ‘Volume Down’ key and press ‘Power ON’ button.

LINK: http://forum.gsmhosting.com/vbb/f63...-world-first-1047797/index16.html#post8231040
[HTC Sensation] f4k3z:
Hi,

yes, i need to perform the wire trick in order to get into Download mode(or show the Qhusb..... device)

The phone without that trick is not detected, windows does not detect it at all, and linux shows nothing... is it completely dead,

The closest I've seen the phone detected is only by using the wire trick, besides that, phone is not showing up in PC by any buttom combination(meaning volume - or any other)
[HTC Sensation] RussianBear:
very strange. so far we don't have a way of opening up the emmc on devices that were put in the download mode via the wire trick.

we all would appreciate any help at this point.
[HTC Sensation] f4k3z:
yeap, I am not able to get into emmc mode, maybe there is a way to get into that mode, but i havent found it, i will keep trying different combinations to see if some works, so far, am not able to recover phone.

Thanks.
[HTC Sensation] RussianBear:
please do. keep us posted!
[HTC Sensation] V1k70r:
Guys, I've posted in this thread a few times, but I seem to be ignored all the time. Anyways, someone said (I think it was dexter) that this is usefull for bricks caused by making your device S-ON when it was running a custom ROM, so it wouldn't boot. But this should work for every sort of brick right? For example; when you are updating your bootloader but the device runs out of power. With this method you could fix that too right? Since you are able to acces all of the partitions.
[HTC Sensation] RussianBear:
if that's the case, then it's a good possibility. as long as you know what is messed up, and you replace it with a good image, then yes.
[HTC Sensation] bioan:
I have a bricked HTC Vivid over OTA.

On Win7 connection I get QHSUSB_DLOAD. On Linux I cannot see any partition, it does not recognize it at all.

I tried using Fuses method but I always get stuck on Waiting for device...

Any ideas ? Thank you !
[HTC Sensation] V1k70r:
Oh okay, thanks. But what about that partition MOVZX had with that stange size?
[HTC Sensation] Akeo:
I am in the same situation, i have Desire S. I tired all methods whitout succes. Has anyone any solution for this problem?
[HTC Sensation] Dragula3012:
Would be nice if you could post the output of "tailf /var/log/kern.log" when you are plugging the phone in (with Vol-Down button)
[HTC Sensation] bioan:
This is what appears first:

Mar 14 20:54:42 ubuntu kernel: [ 3097.491553] usb 2-1.1: new high speed USB device number 29 using ehci_hcd

Then this: Mar 14 20:54:51 ubuntu kernel: [ 3106.764641] usb 2-1.1: can't set config #1, error -71

Mar 14 20:54:51 ubuntu kernel: [ 3106.764978] usb 2-1.1: USB disconnect, device number 29

Mar 14 20:54:51 ubuntu kernel: [ 3107.029408] usb 2-1.1: new high speed USB device number 30 using ehci_hcd

Mar 14 20:54:51 ubuntu kernel: [ 3107.123144] qcserial 2-1.1:1.0: Qualcomm USB modem converter detected

Mar 14 20:54:51 ubuntu kernel: [ 3107.123312] usb 2-1.1: Qualcomm USB modem converter now attached to ttyUSB0
[HTC Sensation] Voklav:
Uppsss ... wrong topic - delete that
[HTC Sensation] Akeo:
This is the log when i plugged the phone into usb port with Vol-Down button.

Mar 14 22:23:32 ubuntu kernel: [ 73.488044] usb 2-1: new high speed USB device number 3 using ehci_hcd

Mar 14 22:23:32 ubuntu kernel: [ 73.744783] usbcore: registered new interface driver usbserial

Mar 14 22:23:32 ubuntu kernel: [ 73.744802] USB Serial support registered for generic

Mar 14 22:23:32 ubuntu kernel: [ 73.744847] usbcore: registered new interface driver usbserial_generic

Mar 14 22:23:32 ubuntu kernel: [ 73.744849] usbserial: USB Serial Driver core

Mar 14 22:23:32 ubuntu kernel: [ 73.749745] USB Serial support registered for Qualcomm USB modem

Mar 14 22:23:32 ubuntu kernel: [ 73.749798] qcserial 2-1:1.0: Qualcomm USB modem converter detected

Mar 14 22:23:32 ubuntu kernel: [ 73.750408] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB0

Mar 14 22:23:32 ubuntu kernel: [ 73.750763] usbcore: registered new interface driver qcserial
[HTC Sensation] Dragula3012:
Here I think there is something missing, the phone tries to connect 2 times, first should be emmc and the second one is the qualcomm driver.

That's exactly the same error I am getting :D

What version did you flashed before and what was you hboot before you tried to set your phone s-on again.

Ahh and which CID has your phone.
[HTC Sensation] dexter93:
Lol guys. We haven't even found a proper way to fix the sensation and you are getting other devices here with different chipsets? Please stay on topic. Sensation only for now

I may allow it to irc, but I can't here. Sorry
[HTC Sensation] RussianBear:
could someone with linux knowledge do a full emmc dump via dd commands of their working sensation and see if the can find any of these files (and mark the partitions they came from), please? I suspect it would be one of the boot partitions. I can't do it on windows (search through android img files), and am a linux noob :)

Since MOVZX erased his emmc, we might be able to resurrect his through qpst's emmc download tool, pending we find the correct files for sensation.

these ones came from zte v11's firmware that runs on the same chip as our sensation.

MOVZX, since you have a cloned copy of your mmc, I encourage you to search through it as well :)
[HTC Sensation] dzoma:
hello

Hello ppl,I have read all the post here,and my english is very bad,so I am woundering If we only can unbrick with linux? Or can we use windows aswell? I have bricked my phone with a strange thing,I was going to flash a customn rom,and I downloaded some super wipe file,and I run it from recovery,but that super wipe wasn´t for sensation,it was for same tab,so,when I tried to power the phone on,nothing happend,so,here I am ,sitting with bricked sensation,and when I connect to PC it want´s driver for that quad....bla bla bla...SO,is there any chance of getting it back,or? I think,all I have done is that I earesed all the SD,maybe did a strange format because of that super wipe file.....How to know if I was son or s-off? I don´t remember,I know that it was root,I got the touch recovery.....Help plzz...:D

CHeers from sweden!
[HTC Sensation] MOVZX:
I have the full-dump from my 1st phone (the world 1st device we unbricked some days ago :D), but I'm still trying to inject the dumped image to the 2nd one which one I gently deleted the eMMC partitions. But the 2nd device could only last for about 15 secs on eMMC disk mode.

Any ideas :D
[HTC Sensation] Unknownforce:
Just want to say thanks for this tool and all your work guys, because of you, I was successful in downgrading hboot from the lame S-ON stuck 1.5 HBOOT on the EVO 3D, and able to gain S-OFF again via the standard Revolutionary method.

Couldn't have done it without this... Much appreciated.
[HTC Sensation] RussianBear:
you've got all the partitions in there. see if you can open any of the .img files with winimage or even using winhex to search for the files i've posted previously.
[HTC Sensation] MOVZX:
Don't forget to vote on the first post so we could count how many users succeeded with the current unbricking method.

If we're still trying to use QPST, it will need some correct MBN(s) & XML files (configs) too which are currently unavailable even on Google :D

I'm still trying to get a stable eMMC disk mode on my 2nd device, once we found the method then everyone should be able to do so :)

@RussianBeer: Come on... Brick Your own and make some crazy experiments with it LOL :D
[HTC Sensation] RussianBear:
Lol send me one of yours and i will brick mine haha

As far as those xml and mbn files, they are in that image that you have. You have to look for them. That's what i was taking about earlier! :)
[HTC Sensation] MOVZX:
I understand but the partitions which store the XML/MBN are having different filesystem, unreadable both on GNU/Linux & Window$.

About WinImage, I will try it because I'm not downloading it yet :D I will let You know the results ;)

----- UPDATE -----

WinImage can't open the img file :)
[HTC Sensation] dexter93:
Hey! Glad it finally worked! Congrats

@MOVZX: What do you mean unmountable? What's the filesystem? If you could share the dump, we could work together and things might be easier/faster :p
[HTC Sensation] MOVZX:
The file is about 2,4GB, so I will need 4-6 days to upload it :)

If You've ever tried to open the eMMC partition through GParted or MiniTool, You will see there are not only EXT4 and FAT filesystems inside the eMMC but it has also some other type of filesystems on it.
[HTC Sensation] dexter93:
Lol you are tempting me to brick it... If only we could find a way to access emmc on working phones... Even read only :/ well, its time to get started reading those Chinese guys' posts. Qpst is the answer to true unbricking
[HTC Sensation] MOVZX:
Come on... Brick & Unbrick it 21 times or even more like I've ever did :D I'm sure You'll enjoy Your HTC Sensation like no other :p

BTW...

I'm unsure about MBN file(s) & XML file(s) since we're not really got it yet. Any ideas how to generate MBN/XMl from my eMMC full-dump? :confused:
[HTC Sensation] dzoma:
help

Can anybody help me? please.....
[HTC Sensation] MOVZX:
Just write it down... :p
[HTC Sensation] dexter93:
Get on irc. Also link us to the superwipe file