yashsingh1/xdaforums huggingface dataset:
[XPERIA X8 Q&A, Help & Troubleshooting] persianprime:
I found answer.

we can do it by a cable like GPG/Fbus and some wiring.:D
[XPERIA X8 Q&A, Help & Troubleshooting] leroy_coco:
No man, hard brick, it happend to me too, try enter flash mode, but first in case your phone doesn't show signals of green led, check the battery, charge it with an universal charge, then flash the stock rom or repair with seus
[XPERIA X8 Q&A, Help & Troubleshooting] B.Jay:
He's talking about the way one would resurrect a hard brick through the Qualcomm Resurrection cable + SETool (the tool from the_laser on setool.net - has nothing to do with the boot loader unlock tool) method.

In short ... some wire connections to Test-Pins on the motherboard to flash via "UART mode". While persiananime clearly knows someone who has a idea about electronics I wonder if they got the programs to accomplish the task.
[HTC Rezound] mrbracht:
I am in no way, shape, or form held responsible if you brick your phone from this fix.

Well, i finally have something useful for the community!!! :D

this will take your main version to whatever you want, i took mine down to 1.00.000.0 and it worked!! :D

I was at 3.whatever ics is, but not anymore!! its fixed!!! :D :D

here are the steps

Before you start, disable HTC Sync

1.Connect phone to computer, enable charge mode

2.Open adb cmd and type : adb shell

3.Type su

4. if you get # symbol continue

5.Type : dd if=/dev/block/mmcblk0p24 of=/sdcard/misc.img (YOU CAN COPY THE IMG TO EITHER sdcard, which is internal memory, or sdcard2, which is removal card)

6. Switch to USB mode

7.copy misc.img from the root of the sdcard to your computer

8.Open misc.img with HeX Editor XVI32

9.Find the version and change it. it will be the first area in the the upper right in the screen of the app

10.change the number in whatever you want. (has to be in the form of.. x.xx.xxx.x

11.Save it and upload it to the root of the sdcard with miscnew.img name

12. Switch to charge mode

13.Type adb shell, su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24

14.Reboot and you are READY TO ROLL!

Once your done. And you wanna flash the new radio and hboot and all that fun stuff. Do a backup of your Rom http://db.tt/0UfbfrIs click that. Then relock your hboot, then flash that file in hboot and you let it update. then unlock once done installing. Then reflash your recovery.. and restore your Rom and your golden

Feel free to donate if you'd like, :)
[HTC Rezound] lllboredlll:
Now that's some good info for everyone. Thanks for posting this. I will ne adding a link to your thread in my Rom threads
[HTC Rezound] mrbracht:
spread the word man, it worked liked a charm, got the new radio and everything to load just fine. im happy
[HTC Rezound] heleos:
You sir are a god! Now I want to be home to do it :(
[HTC Rezound] dejahboi:
I can't find the image within the sdcard for some reason. I see the process when it writes it but its nowhere to be found??

Edit:Nvm found it, turned out I had to be in USB mode.

Before step one like always ( disable htc sync/ in usb/develop mode)

-After step 4 switch to USB mode

-After the 1st 8# (lol) switch back to USB mode lol

some little steps you may add:)

Edit#2: Very nice, worked out well, though instructions can include a little more detail, but all-in-all good find :) Mainver 1.00.000.0 lol. Now I'm back in business again and start flashing again.
[HTC Rezound] Marine6680:
Posting this in a few threads... Great job!
[HTC Rezound] heleos:
Remember that sdcard is actually the internal sd, sdcard2 is for external
[HTC Rezound] maniac2k:
This is awesome. I cant wait to do this. Thanks man!!!
[HTC Rezound] mrbracht:
there ya go, updated OP :)
[HTC Rezound] dejahboi:
Nice :) If i were admin, I'd sticky your thread LoL. It's seriously useful method in the long run.
[HTC Rezound] mrbracht:
Yes it is. I'm no dev but I was trying to figure it out for the past 5 hours. Finally got it and now I'm going to bed. Ha

Sent from a cellular telephone
[HTC Rezound] lllboredlll:
Wooooooo hold up .....New radio to install?

Sent from RezROM ICS
[HTC Rezound] mrbracht:
Yeah. From the new ota... I took the firmware.zip and renamed it PH98IMG.zip and flashed it. New hboot and radio and what not..

It also gives ya hboot 2.11

Sent from a cellular telephone
[HTC Rezound] mrbracht:
Updated op with a ghetto instructioned radio flash.

Sent from a cellular telephone
[HTC Rezound] stoffelck:
the numbers after clear auto image

i dont see any version

says clear autoimage 2.10.xxx.11

is that what i change? to 1.00.000.0?
[HTC Rezound] mrbracht:
I'm not around a computer right now, but there would be no x's in the number groups. It should be one of the first numbers listed in the upper right hand.

Sent from a cellular telephone
[HTC Rezound] stoffelck:
sorry i put the xxx in because i had already changed the number. ok i wrote it back .

thanks for the reply
[HTC Rezound] mrbracht:
Not a problem. Let me know how it turns out for ya.

Sent from a cellular telephone
[HTC Rezound] mrbracht:
Also. Just to make sure. The xxx are just examples. Obviously you enter numbers instead of x's

Sent from a cellular telephone
[HTC Rezound] andybones:
I did step by step but my mainver wont change!!
[HTC Rezound] mjh68:
As far as I know, no . But if you unlocked you have everything set up to check it . Just have phone in fastbootusb , open up command prompt and type fastboot getvar all and that should bring up all the identifiers for the phone just look for mainver line and see what it shows.
[HTC Rezound] zer0cloud:
:mad: I feel that I am following these steps to the T. But I am still stuck with a mainver 3.x.

I have even tried adding extra 0 and adding two 0, but nothing still. I restart my phone then once up I boot to fastboot to check mainver and everytime it still shows 3.x.

Starting to get frustrated lol. But I suppose I will keep at it, and hopefully not to brick anything ;)

Edit:

I honestly don't know how but I got it!! I know this shouldn't have done anything but I removed my old rom zip and rebooted into recovery and wiped ALL then followed the steps. And luck is on my side cause it worked!!
[HTC Rezound] Doddzilla:
I checked with fastboot and I have the pesky 3.xx.xxx.x mainver.
[HTC Rezound] Pskila:
thank you for this...
[HTC Rezound] broffy:
i think i am in trouble i did what you said when i open my misc this is what i got

https://www.dropbox.com/s/var9kglbwmez4qh/Capture.JPG

just 00000

the file the first command pull of is the hboot ?
[HTC Rezound] stoffelck:
i did but it didnt seem to work for me.

i get main ver is older when ics rom tries to flash boot!

i adb to recovery and i am trying to do this again but when i go to shell while in recovery i get ~ # ←[6n instead of # and su is not found???

Mercy

I run the command it says it writes the 16mb misc.img but if i mount sd/internal i cant find file to edit... boo

now what?
[HTC Rezound] mrbracht:
Odd. It worked for me and a few others. I don't know what to say. :(

Sent from a cellular telephone
[HTC Rezound] mrbracht:
I have no idea. Wish I could be more help. Maybe someone else can answer

Sent from a cellular telephone
[HTC Rezound] andybones:
it's weird it says it wrote, but I still get mainver error, so I did the pull of misc again, and its still 3.... even though I cnahged it and it said it wrote. :(
[HTC Rezound] mrbracht:
Maybe do a save new once you edit the file?

Sent from a cellular telephone
[HTC Rezound] maniac2k:
Could updating hboot with the ota cause any problems with ever getting soff?
[HTC Rezound] mrbracht:
I dont think so cause even if they have a way to downgrade to get soff like the thunderbolt was, just change the mainver to downgrade and then install the soff hboot.

Sent from a cellular telephone
[HTC Rezound] andybones:
could you maybe upload your miscnew.img for me to try please :)
[HTC Rezound] mrbracht:
Sure thing. Hope this works for ya

http://db.tt/twAtY6M7

Sent from a cellular telephone
[HTC Rezound] theascended:
For those of you looking to get only the radio updates that are having trouble with this method, see http://xdaforums.com/showpost.php?p=21867954&postcount=61

I can't confirm it works yet, but it seems quite a bit safer than hex editing your mainver.
[HTC Rezound] mrbracht:
See. Now that's weird too cause that way didn't work for me

Sent from a cellular telephone
[HTC Rezound] mrbracht:
I'm curious.. how many of you had this edit work for you?

Sent from a cellular telephone
[HTC Rezound] andybones:
I was having trouble, but I finally just got it!

Thank you!

I am not sure if I edited differently but it worked, you are the man!
[HTC Rezound] mrbracht:
:D awesome. Glad you got it!

Sent from a cellular telephone
[HTC Rezound] andybones:
Thank you very much, Sir!!!
[HTC Rezound] mrbracht:
No problem. It was bothering me so much I was considering doing an insurance claim. Ha. Not really but it was really annoying me

Sent from a cellular telephone
[HTC Rezound] andybones:
me too man, the little things that make the diff right!!
[HTC Rezound] theascended:
I'm never a fan of editing images directly so I looked for a safer way of updating my radios. I'm glad some of you got it to work. If there is anyone who would prefer to not risk bricking their phones so blatantly, I can confirm the method I linked to earlier works for me.

I would recommend you reflash your kernel/ROM images after hboot update since it does update your boot, kernel and RAM disk.

Note, anyone wishing to avoid hboot 2.11 should avoid this as flashing the firmware.zip WILL update hboot.

Edit: I want to mention I did have an issue after my first boot after the update and reflash of the kernel. Somehow, the phone came up in WCDMA preferred mode. Just use something like LTE swtich (side load it if you have to) and switch back to what ever mode you normally have it in.
[HTC Rezound] tbot:
Instead of switching to USB mode, u can use adb pull /device/directory/file c:\computer\directory\ and then to put it back use adb push c:\computer\directory\file /device/directory/new file name
[HTC Rezound] stoffelck:
finally

i too had trouble with this method. tried several times but wuld not read the miscnew.img. it would write it but wasnt having any effect. UNTIL

my mainver was format was different x.xx.xxx.xX i added a trailing 0 and viola.

I had taken the 1/26 update and used 1.00.000.00 and it worked.

Thanks for this.

i am considering ging back to ota stock though. arent we overwriting HTC fancy new kernel with our current roms?
[HTC Rezound] andybones:
good find bro!
[HTC Rezound] Marcismo55:
Dude...I hope you realize how awesome you are for figuring this out! :D

Many many many thanks!
[HTC Rezound] con247:
Good find bud. I am surprised this works because I tried to alter my misc image to change my cid so HTC Dev would work awhile ago. The image would write and stick, but the change was never reflected in hboot. I am glad they still pull the main version from the misc image.

It is possible HTC will patch this for a later hboot update so this might not always work in the figure, but for now it is good.
[HTC Rezound] andybones:
can someone post the new wifi module so i can try and get the new kernel without having to update to the 2.01.605.11 ph.zip file.

flashing the boot.img gives the new kernel but theres an error for wifi.

someone with more experience may be able to help.
[HTC Rezound] ftmaniac948:
when i do that last command in cmd, i get this

sh-3.2# su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24

su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24

Usage: su [options] [LOGIN]

Options:

-c, --command COMMAND pass COMMAND to the invoked shell

-h, --help display this help message and exit

-, -l, --login make the shell a login shell

-s, --shell SHELL use SHELL instead of the default in passwd

-v, --version display version number and exit

-V display version code and exit. this is

used almost exclusively by Superuser.apk

is that su part supposed to be in that message or should i delete that from the command line?
[HTC Rezound] Easton999GS:
can we downgrade hboots with this then? like can we run the 1.00 RUU that came out on pre release rezounds
[HTC Rezound] andybones:
adb shell ENTER

su ENTER

THEN

dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24 ENTER

NOT

su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24

---------- Post added at 12:48 PM ---------- Previous post was at 12:47 PM ----------

I never thought about this but very good question bro!
[HTC Rezound] Marcismo55:
I think you're suppose to type:

adb shell

su

then if you get the # type the command
[HTC Rezound] andybones:
yes very good point, thank you.
[HTC Rezound] a.mcdear:
This is excellent. Fixed my mainver, and now I'm a lot less pissed at that stupid kernel that screwed it up in the first place without a proper warning. Thanks so much for this awesome fix.
[HTC Rezound] ftmaniac948:
when i type adb shell i get something like sh-32 #. is that normal or should i just be getting the # sign?
[HTC Rezound] andybones:
lol me too man, me too.

it's our fault, but lesson learned!

---------- Post added at 01:11 PM ---------- Previous post was at 01:10 PM ----------

I feel that is normal.. BUT don't hold me to this..

# sign means you have root.

it would be ~ I *think* if it wasn't right.
[HTC Rezound] Easton999GS:
can someone here try to downgrade with the pre release 1.00 RUU that was released? what hboot was that? i wonder if we can exploit it to have s off
[HTC Rezound] Marcismo55:
I knew something looked odd but I'm still an ADB noob

LOL...I feel you. Replacing those txt files everytime I wanted to flash was becoming a serious hassle.

---------- Post added at 10:17 AM ---------- Previous post was at 10:16 AM ----------

Yes that's normal...Mine did the same thing.
[HTC Rezound] andybones:
before OTA

hboot =2.10

after

hboot=2.11

---------- Post added at 01:25 PM ---------- Previous post was at 01:23 PM ----------

I knew something looked odd but I'm still an ADB noob

--me too man, but we are learning well! :)

LOL...I feel you. Replacing those txt files everytime I wanted to flash was becoming a serious hassle.[

--hell yea bro, ive adapted to fastboot or the cleanflash for everything now lol
[HTC Rezound] Easton999GS:
oh so even if we change our main ver to 1.00 we still cant go back in RUU's cause our hboot is still higher?
[HTC Rezound] ftmaniac948:
Works! thank you mrbracht for the find and andybones for the quick replies!
[HTC Rezound] a.mcdear:
I believe this is true.. however somebody who hasn't run the OTA update yet and updated to HBOOT 2.11 might still be able to do it... I'm not sure if the pre-release RUU was on HBOOT 2.10 or not. Still, it seems that even the HBOOT version number may be editable in a similar fashion as this was... it just takes someone to figure it out.
[HTC Rezound] con247:
Editing that will probably break the signature
[HTC Rezound] andybones:
changing the mainver should allow users to now flash the RUU if they haven't done OTA yet as OTA gives 2.11 hboot, and pre was 2.10
[HTC Rezound] stoffelck:
dunno for sure

I was desperate :) I had read all the mainver posts and problems and kept saying "better you than me" because until I installed the OTA lastnight I had never gotten it.

Dont know if the extra digit in mainver fixed it or I just eventually did it right
[HTC Rezound] heleos:
Will my mainver update just from a reboot? I've probably done this 5 times, adding an extra 0 and leaving it out, and whenever I check my about phone screen, it still says 3.x.x.x :( Am I doing anything wrong?
[HTC Rezound] dmeadows013:
That isn't your mainvar. TO get the mainvar, boot to fast boot and run "fastboot getvar all"
[HTC Rezound] heleos:
Oh, it worked then :D I love you
[HTC Rezound] tombepa:
So I was trying to go back to stock and got the mainver error. My phone will only boot into hboot now. I have the ruu on the sd card renamed to ph81img. can I do any of this in the state my phone is in right now? Hook it up to the computer in fastboot and do these commands? Sorry, noob here.
[HTC Rezound] Marcismo55:
Were you running an ICS Rom? If so you should be able to fastboot flash the kernel to get you up and running again.
[HTC Rezound] tombepa:
I ran ics for a little while today but went back to gb. Now i am returning to stock to send it back. I just unlocked my bootloader again so it would reboot. I am unsure about the part in the op where it says misc.img. Is that the ruu file I downloaded? so I should change it to read the name of that file?
[HTC Rezound] andybones:
n the op where it says misc.img. Is that the ruu file I downloaded? so I should change it to read the name of that

--no dude..

way off.

re-read the OP and make sure you understand 100% before trying this.

please understand you could brick your phone doing this.
[HTC Rezound] tombepa:
Thanks for the advice, but I am totally new at this, let me look at it again.

Edit: Is there any one online right now that can hit me up on gtalk for a sec? patrick.tomberlin@gmail.com I really need this done tonight so I can return tomorrow, it is the last day of my return period. I take direction very well, just need couple of questions answered, thanks.

Edit #2: to whoever that was on Gtalk, thank you so much. it is flashing back to stock successfully now
[HTC Rezound] tifford:
right now I'm on Tachi's ISC de-senseish ROM.

couldn't I:

1. do a nandroid backup of this rom

2. restore to my unrooted Stock backup

3. fastboot oem lock

4. put PH98IMG.zip from the OP on my sdcard

5. install it through bootloader

6. fastboot oem unlock

7. fastboot flash recovery amonra.img

8. restore the backup from step 1

9. win.

basically what I want to know is: does the mainver problem only happen if you're currently on an ICS rom at the time of "bootloader-ing" the new ph98img? or will you run into the mainver problem if you've ever flashed an ICS rom?
[HTC Rezound] willsully1221:
Stuck On Last Step

I'm on the last part where you have edited the mainver in the application (the one provided in thread) and then placed it on my sd card/phone again (with the name miscnew.img) but when i enter the characters (provided in the last step) it just brings me to an su menu
[HTC Rezound] pickaxe300:
A very huge thanks to the OP!!!! I too had the dreaded bamf curse with the mainver and am back to flashing normally again! Just follow the instructions to the letter and it will work! Trust me...if a tire jockey could figure this out, ANYONE can!!lol

Also, I didn't have to add any extra digits to the version number either. Thanks again, and keep up the great work...

Off to flashing I go!!!!!!
[HTC Rezound] trickster2369:
Hypothetical question: Can I change my BAMF mainver curse(I like that) and then stay on that same BAMF rom?
[HTC Rezound] tifford:
Bump
[HTC Rezound] RustyNailz:
Yes, that's what i did. Actually i updated the firmware, restored my nandroid, and flashed the kernel modules to fix wifi.
[HTC Rezound] RustyNailz:
You dont have to restore to stock if you are just going to flash the new firmware in hboot.
[HTC Rezound] trickster2369:
What might I be doing wrong?

typed adb shell

typed su and got #

typed : dd if=/dev/block/mmcblk0p24 of=/sdcard/misc.img

Now where do I find this file to copy to the pc? I do not see it on the sdcard or sdcard2. I fell like I'm missing something.

Edit: Actually, after I typed adb shell, I got the #. Any thoughts?

Edit2: Never mind. A miss placed ":" will eff it up every time.
[HTC Rezound] lynneddington:
Thank you thank you thank you
[HTC Rezound] trickster2369:
EXCELLENT! Mainver is now 1.00.000.00. Yes, I also needed to add an extra 0 on the end. One of the great tools available to us all.

Thanks for figuring this out.
[HTC Rezound] Jetdr:
I was able to change the MainVer to 1.00.000.0 relock the phone and run the .6 ruu. After that I accepted the OTA.

Phone is working great as a stock phone with latest software.

Thank you for figuring this out!!!
[HTC Rezound] willsully1221:
As i said in my earlier post, (this is better detail though) once i enter the last set of characters in the last step, it just comes up with a list of su options. Any ideas?
[HTC Rezound] andybones:
copy and paste what it's showing, please.
[HTC Rezound] phillybizzle:
How do.you know if.this works properly here's a.screening
[HTC Rezound] con247:
It worked. Version main is the # to look at.
[HTC Rezound] phillybizzle:
Referring to my.post?
[HTC Rezound] con247:
yessir.

10char
[HTC Rezound] phillybizzle:
I tried flashing gingersense and it automatically went.to the bootloader.. it.never.prompted me.to.push vol up..it.just showed.the progress.bar and.rebooted.AMD.got.suck on the white..htc screen
[HTC Rezound] con247:
Strange... my mainver wasn't updated so I really don't have experience with that. Maybe the PH image is bad?
[HTC Rezound] willsully1221:
C:\Users\Will>cd \android

C:\Android>adb shell

# su

su

# dd if=/dev/block/mmcblk0p24 of=/sdcard/misc.img

dd if=/dev/block/mmcblk0p24 of=/sdcard/misc.img

32763+0 records in

32763+0 records out

16774656 bytes transferred in 5.814 secs (2885217 bytes/sec)

# su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24

su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24

Usage: su [options] [LOGIN]

Options:

-c, --command COMMAND pass COMMAND to the invoked shell

-h, --help display this help message and exit

-, -l, --login make the shell a login shell

-s, --shell SHELL use SHELL instead of the default in passwd

-v, --version display version number and exit

-V display version code and exit. this is

used almost exclusively by Superuser.apk

#
[HTC Rezound] phillybizzle:
I dunno but it's pissing me off hardcore. I still have my other rezound that's not updated and rooted I havnt shipped it back... I wish I could just use all those files
[HTC Rezound] trickster2369:
Do not use su at the beginning of this line.

su dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p24
[HTC Rezound] Chillerman:
Just curious, did dsb9938 and Bamf fix their Mainver problem or is it still not safe to flash the kernel or the Bamf cubed rom? I don't see anywhere where they even recognized a problem.
[HTC Rezound] trickster2369:
From the OP on BAMF site:

Version 1.0.2 upgrades the base of the ROM to release 2.01.605.11.
[HTC Rezound] Chillerman:
I am assuming every other developer out there decided to bake in the old mainver so we wouldn't have this problem. I have had no problem switching back and forth between roms ICS or GB, but then again I haven't flashed a Bamf rom.
[HTC Rezound] mikemullin6:
To PHILLYBIZZLE

How did you get the data in your screenshot that shows all that info?

thanks
[HTC Rezound] trickster2369:
I hear ya man. I'm guilty, I flashed BAMF and didn't fully realize the ramifications of changing bases at the time. It's a PITA, but now I have to deal with it like many others. Not the end of the world. And, I hope I've learned my lesson. I pride myself on researching as much as possible before taking the leap, but I missed that little detail.
[HTC Rezound] bblanski:
Worked like a charm. Thanks
[HTC Rezound] phillybizzle:
Run this in adb

I noticed the INFOsecurity i was trying to think of a command to maybe turn s-off

fastboot getvar all
[HTC Rezound] ellis90009:
worked for me

This guide Worked for me

But i did run into a problem. I could not do it from recovery. So i could not boot my phone. So for those with that same problem you can either reflash the ics rom you are downgrading from or what i did was i opened up the PH98img.zip from the rom i was flashing to and extracted the android-info.txt file and changed the mainver from a 2... to a 4... and flashed it with no problem then used this guide to change it back to a 2 i hope this helps some people save a bit of time
[HTC Rezound] mrbracht:
I would like to say thank you to all of you who have donated.

Sent from a cellular telephone
[HTC Rezound] billhilt:
worked great !!

Just want to say thanks for this. BTW i tried to do this by changing the directories to sdcard2 and it didnt work. If you copy all the commands just as written it works like a charm . THANKS AGAIN
[HTC Rezound] trickster2369:
I used sdcard2 twice and it worked fine for me.
[HTC Rezound] xxdababyonexx:
You the best