• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [HOW TO](gaining root)unlock,downgrade,and achieve s-off with htcDev

you will want to flash the rom,or restore your stock backup. factory reset is not used in hboot,everything is done in recovery when flashing a rom.

process:
-if flashing the rom place it on root of sd
-boot to recovery
-make a backup(i cant remember exact menu options)
-wipe data/factory reset,wipe cache,wipe dalvik cache(this is known as a "full wipe")
-flash rom or restore stock back up
-reboot

Scotty,

again, thanks for your patience.

hopefully these are the last clarifications i will need for a while

when i was looking at the online photos of the recovery menu, i didn't see a data/factory reset option at first, only on the hboot screen. my bad.

i think i will just restore the backup of the stock, unrooted rom, the one i made in Step 3 of your OP

Q1) when i do hboot>recovery and make a backup of my CURRENT rooted rom, is it going to make a new backup, or overwrite the one i made in Step 3. if it makes a second backup, i assume i will be able to tell them apart so i can restore the one from Step 3

Q2) my phone continues to give me the alert that the OTA update is ready and will be installed upon restart. i keep pushing the "install later" button. is this process of restoring the Step 3 backup going to trigger the OTA install to try to move forward as the phone resets/restarts? if it will trigger the update, how do i prevent it?

Q3) will the upgrade i made to the hboot and radio in Step 8 of you OP (using this file PB31IMG-4.08.605.15-hboot-1.07.zip) be intact, or is the restore of the backup going to overwrite them? i think i know the drill if they need to be re-flashed from hboot>recovery...

Q4) after i (hopefully) successfully restore to my unrooted backup from Step 3 and reboot, all i have to do is one more hboot>recovery and re-flash the superuser.zip that is still on my sd card from the original root process and i will have my root access back, correct?

a thousand blessings upon your household ;-)
-m
 
Upvote 0
Scotty,

again, thanks for your patience.

hopefully these are the last clarifications i will need for a while

when i was looking at the online photos of the recovery menu, i didn't see a data/factory reset option at first, only on the hboot screen. my bad.

i think i will just restore the backup of the stock, unrooted rom, the one i made in Step 3 of your OP

Q1) when i do hboot>recovery and make a backup of my CURRENT rooted rom, is it going to make a new backup, or overwrite the one i made in Step 3. if it makes a second backup, i assume i will be able to tell them apart so i can restore the one from Step 3
it will make a new one

Q2) my phone continues to give me the alert that the OTA update is ready and will be installed upon restart. i keep pushing the "install later" button. is this process of restoring the Step 3 backup going to trigger the OTA install to try to move forward as the phone resets/restarts? if it will trigger the update, how do i prevent it?
no,it will not trigger it. youll be wiping data and cache,all that will be gone. froyo will be gone. :D

Q3) will the upgrade i made to the hboot and radio in Step 8 of you OP (using this file PB31IMG-4.08.605.15-hboot-1.07.zip) be intact, or is the restore of the backup going to overwrite them? i think i know the drill if they need to be re-flashed from hboot>recovery...
recovery cannot install radios or hboots. these will remain the same until you purposely change them.

Q4) after i (hopefully) successfully restore to my unrooted backup from Step 3 and reboot, all i have to do is one more hboot>recovery and re-flash the superuser.zip that is still on my sd card from the original root process and i will have my root access back, correct?
correct :)

a thousand blessings upon your household ;-)
-m

hope that helps :)
 
Upvote 0
-open a command window. on windows 7,click the start bubble in the lower left and type "command" in the search box. xp i believe is similar or the same. doing this should open a small black command window.
-change to your miniadb_inc directory. type the following at the prompt in your cmd window:

cd c:\miniadb_inc

your command promt should change to "c:\miniadb_inc>" provided you: 1)unzipped the miniadb_inc zip 2)put the folder on your c drive 3)didnt change the name
I'm having trouble with this first step! argh! I downloaded it, saved the name. I am running Windows 7 HP and if I understood you correctly, it unzips stuff automatically? either away I opened the mini file elsewhere and copied the individual files onto local disk C: but when I type cd c:\miniadb_inc in command prompt an error message comes up The system cannot find path specified.
Can you tell what I am doing wrong from the message? Thanks!
 
Upvote 0
I'm having trouble with this first step! argh! I downloaded it, saved the name. I am running Windows 7 HP and if I understood you correctly, it unzips stuff automatically? either away I opened the mini file elsewhere and copied the individual files onto local disk C: but when I type cd c:\miniadb_inc in command prompt an error message comes up The system cannot find path specified.
Can you tell what I am doing wrong from the message? Thanks!
If you copied the individual files you won't have a c:\miniadb_inc ; right click on an empty space in your c:\ folder, select "new" select "folder" and name it miniadb_inc and move the files there....
 
  • Like
Reactions: dreamtomorrow
Upvote 0
This is my command window:
c:\miniadb_inc>adb devices
List of devices attached
HT06THJ01405 device

c:\miniadb_inc>md5sums mtd0.img

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - PC-Tools.Net: Tools and utilities for Windows, Unix/Linux, DOS
Type md5sums -h for help

[Path] / filename MD5 sum
-------------------------------------------------------------------------------
[c:\miniadb_inc\]
mtd0.img 34307be744275f1db1dd16af04c37839

c:\miniadb_inc>md5sums flash_image

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - PC-Tools.Net: Tools and utilities for Windows, Unix/Linux, DOS
Type md5sums -h for help

[Path] / filename MD5 sum
-------------------------------------------------------------------------------
[c:\miniadb_inc\]
flash_image 0098a7dd6600b55fac34fc6645be5d7a

c:\miniadb_inc>md5sums PB31IMG.zip

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - PC-Tools.Net: Tools and utilities for Windows, Unix/Linux, DOS
Type md5sums -h for help

[Path] / filename MD5 sum
-------------------------------------------------------------------------------
[c:\miniadb_inc\]
PB31IMG.zip 100% 31bb1611a0fa8197d447c0438426717e

c:\miniadb_inc>adb push flash_image /data/local/
728 KB/s (76044 bytes in 0.102s)

c:\miniadb_inc>adb push mtd0.img /sdcard/
1155 KB/s (655360 bytes in 0.554s)

c:\miniadb_inc>adb shell
$ su
su
# cd /data/local
cd /data/local
# chmod 0755 /data/local/flash_image
chmod 0755 /data/local/flash_image
# cd /data/local
cd /data/local
# ./flash_image misc /sdcard/mtd0.img
./flash_image misc /sdcard/mtd0.img
# exit
exit
$

I haven't put CM7 or any other ROM, just straight from the directions on this thread. But the patch was aborted...let me know if you need more details on what I did. Thanks for your help!!:eek:
 
Upvote 0
heres what id do:
1)boot to recovery, make a backup

2)open a cmd window,plug in your phone

3)change to miniadb_inc directory:
cd c:\miniadb_inc

4)enter:
adb devices
if you get back: xxxxxxxxx recovery,then skip to this command in step 4 of the guide:
adb reboot bootloader
this should take you to fast boot. if you get some sort of error,then simply pull the battery,or power off option in recovery(if there is one) then boot the phone to hboot,then select fastboot. enter:
fastboot devices
if you get your serial number back,then carry on :)

5)pay particular attention to the nex command in step 4:
fastboot getvar mainver
you must get 1.22.605.2. if you do then enter the commands to flash the downgrade ruu. if you dont see the exact responses that are shown in the codebox to indicate the ruu flahshed completely and successfully,let us know. if you get an error to flush again immediately,simply rerun the command fastboot flash zip PB31IMG.zip. (you should not get this error,however. the downgrade ruu is not set for a hboot pre-update. when i flashed it,it just flashed the whole thing)
**if your main version is 4.06.605.xx then you will have to start over at step 4.. again,cm7 should be fine for this,no need to resinstall stock GB.

6)when the phone reboots after the downgrade,check the build number and make sure youre on software 3.26.605.1,wich will be froyo with a "forever"-compatible baseband :)

7)continue on to step 5 of the guide.

I tried this to fix the unsupported radio, but when I tried installing the forever zip from sd card in recover it aborted
 
Upvote 0
hope that helps :)

I successfully restored my backup from Step 3 of OP, and am now with GB 2.3.4

i also re-installed the superuser.zip. odd, though, i then re-downloaded and installed wifi tether from Google Play and it is not working as well as before i did the restore to GB... not sure if it is just bad 3G (wifi signal detected by ipad from phone is only -5 to -10) or something else...that would be very upsetting, as wifi tether is the main reason i rooted...:(

i guess i only flashed the PB31IMG-4.08.605.15-hboot-1.07.zip file in Step 8, and did not update radio. the info in Settings>Phone Info>Software is

Android
2.3.4
Baseband
2.15.00.07.28
Kernal
2.6.35.13-g22d3486 etc...
Build
4.08.605.15 CL389630
Software
4.08.605.15 71ORD

[assume that is enough info to tell if the radio update is needed]

so should i also move the PB31IMG-4.08.605.15-radio.zip to the miniadb_inc folder and push it to phone using the procedure in Step 8

OR

do i place zip on SD card and used hboot>recovery to flash it? if using recovery, do i need to rename it?

you have been a great help. look for a little cha-ching in your device fund!

-m
 
Upvote 0
This is my command window:
c:\miniadb_inc>adb devices
List of devices attached
HT06THJ01405 device

c:\miniadb_inc>md5sums mtd0.img

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - PC-Tools.Net: Tools and utilities for Windows, Unix/Linux, DOS
Type md5sums -h for help

[Path] / filename MD5 sum
-------------------------------------------------------------------------------
[c:\miniadb_inc\]
mtd0.img 34307be744275f1db1dd16af04c37839

c:\miniadb_inc>md5sums flash_image

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - PC-Tools.Net: Tools and utilities for Windows, Unix/Linux, DOS
Type md5sums -h for help

[Path] / filename MD5 sum
-------------------------------------------------------------------------------
[c:\miniadb_inc\]
flash_image 0098a7dd6600b55fac34fc6645be5d7a

c:\miniadb_inc>md5sums PB31IMG.zip

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - PC-Tools.Net: Tools and utilities for Windows, Unix/Linux, DOS
Type md5sums -h for help

[Path] / filename MD5 sum
-------------------------------------------------------------------------------
[c:\miniadb_inc\]
PB31IMG.zip 100% 31bb1611a0fa8197d447c0438426717e

c:\miniadb_inc>adb push flash_image /data/local/
728 KB/s (76044 bytes in 0.102s)

c:\miniadb_inc>adb push mtd0.img /sdcard/
1155 KB/s (655360 bytes in 0.554s)

c:\miniadb_inc>adb shell
$ su
su
# cd /data/local
cd /data/local
# chmod 0755 /data/local/flash_image
chmod 0755 /data/local/flash_image
# cd /data/local
cd /data/local
# ./flash_image misc /sdcard/mtd0.img
./flash_image misc /sdcard/mtd0.img
# exit
exit
$

I haven't put CM7 or any other ROM, just straight from the directions on this thread. But the patch was aborted...let me know if you need more details on what I did. Thanks for your help!!:eek:
looks like you only completed thru step 4. you need to downgrade to run the forever patch.

I tried this to fix the unsupported radio, but when I tried installing the forever zip from sd card in recover it aborted
was your downgrade successful? are you in 2.2?

i guess i only flashed the PB31IMG-4.08.605.15-hboot-1.07.zip file in Step 8, and did not update radio. the info in Settings>Phone Info>Software is

Android
2.3.4
Baseband
2.15.00.07.28
Kernal
2.6.35.13-g22d3486 etc...
Build
4.08.605.15 CL389630
Software
4.08.605.15 71ORD

[assume that is enough info to tell if the radio update is needed]
correct,you are still on the old radio.

so should i also move the PB31IMG-4.08.605.15-radio.zip to the miniadb_inc folder and push it to phone using the procedure in Step 8

OR

do i place zip on SD card and used hboot>recovery to flash it? if using recovery, do i need to rename it?
you flash the radio in hboot,not recovery. again,radios and hboots are never flashed in recovery.

you can flash it in hboot as a PB31IMG,or using the directions in step 8(fastboot flash zip). its up to you,it is 2 ways to skin the cat. pick wichever makes you the most comfortable.


you have been a great help. look for a little cha-ching in your device fund!

-m

you are quite welcome,glad to help :)
 
Upvote 0
was your downgrade successful? are you in 2.2?

Yes, except when it rebooted it had factory reset my phone. No biggie, I check to make sure it was software 2.2, it was then I turn off the phone and tried to go to to recovery to flash the forever patch and instead of the recover menu I have a phone with a red triangle with exclamation mark. :-O what happened to my recover menu?? Why mee?

Also it lost root X_X
 
Upvote 0
NOTE: the link to radio zip in my previous post gave me a file that did not have the correct md5 sum... go back to the OP to get the radio, do not use what the link above downloads...


[You and others have made it very clear that a bad flash of a radio can brick a phone, so i wanted to be very clear about what to do. i pulled this together from multiple Steps in OP... hopefully some other noobs will find this helpful, if it is correct]


my miniadb_inc process to install new radio will be:


download PB31IMG-4.08.605.15-radio.zip from OP >> CHECK md5 >> place in C:\miniadb_inc folder

check that USB debugging is on, hook up phone by usb, charge only

open command window from windows Start menu

at C:\Users\your name> prompt type

cd c:\miniadb_inc-get to minadb_inc directory, should now be at c:\miniadb_inc> prompt

adb devices-should return serial number of your phone

adb reboot bootloader boot to fastboot

fastboot devices check connectivity should return serial number

fastboot erase cache

fastboot oem rebootRUU

fsatboot flash zip zipname.zip
where zipname.zip will be PB31IMG-4.08.605.15-radio.zip

fastboot reboot-bootloader

fastboot reboot
 
  • Like
Reactions: dreamtomorrow
Upvote 0
was your downgrade successful? are you in 2.2?

Ok fixed most everything, last steps:
Was this a typo? In the last step fsatboot flash zip zipname.zip and in the zip name do we paste the code you provided? such as
fsatboot (or fastboot if that's a typo) flash zip PB31IMG-4.08.605.15-hboot-1.07.zip
if we used the -4.08.605.15 radio and 1.07 hboot: link you provided.
We use on or the other right, not both. And it's all done with the command window, not flashing the radio/hboot through recovery on the phone?
 
Upvote 0
Yes, except when it rebooted it had factory reset my phone. No biggie, I check to make sure it was software 2.2, it was then I turn off the phone and tried to go to to recovery to flash the forever patch and instead of the recover menu I have a phone with a red triangle with exclamation mark. :-O what happened to my recover menu?? Why mee?

Also it lost root X_X
you simply need to follow the steps closely. they will explain how to re-unlock,re-install recovery,and reflash superuser so you can flash the forever patch. at this point,you have only done theu step 4. you must complete steps 5-8 to complete the process.

what you have experienced is exactly what should have heppened. the downgrade ruu will wipe your data,and replace your recovery with the stock one(the red triangle and ! are what represent the stock recovery).
 
Upvote 0
Ok fixed most everything, last steps:
Was this a typo? In the last step fsatboot flash zip zipname.zip and in the zip name do we paste the code you provided? such as
fsatboot (or fastboot if that's a typo) flash zip PB31IMG-4.08.605.15-hboot-1.07.zip
if we used the -4.08.605.15 radio and 1.07 hboot: link you provided.
We use on or the other right, not both. And it's all done with the command window, not flashing the radio/hboot through recovery on the phone?

yes fsatboot was a typo.

the zipname is whatever name you chose to use for the zipfile that you put into the miniadb_inc folder.

you can install thru the command window,or flash in hboot. either is fine,its completely up to you.

the radio and hboot are different things,so you can(should) choose to update them both :)
 
Upvote 0
NOTE: the link to radio zip in my previous post gave me a file that did not have the correct md5 sum... go back to the OP to get the radio, do not use what the link above downloads...


[You and others have made it very clear that a bad flash of a radio can brick a phone, so i wanted to be very clear about what to do. i pulled this together from multiple Steps in OP... hopefully some other noobs will find this helpful, if it is correct]


my miniadb_inc process to install new radio will be:


download PB31IMG-4.08.605.15-radio.zip from OP >> CHECK md5 >> place in C:\miniadb_inc folder

check that USB debugging is on, hook up phone by usb, charge only

open command window from windows Start menu

at C:\Users\your name> prompt type

cd c:\miniadb_inc-get to minadb_inc directory, should now be at c:\miniadb_inc> prompt

adb devices-should return serial number of your phone

adb reboot bootloader boot to fastboot

fastboot devices check connectivity should return serial number

fastboot erase cache

fastboot oem rebootRUU

fsatboot flash zip zipname.zip
where zipname.zip will be PB31IMG-4.08.605.15-radio.zip

fastboot reboot-bootloader

fastboot reboot

yup,you got it :cool:

if you want you can use the cmd window to verify the md5 with:
md5sums filename.extension
in the case of the radio useing the above filename,
md5 sums PB31IMG-4.08.605.15-radio.zip

it should return that same value that your md5sum checker reports.

last and not least,you do not have to install the radio in this manner. you can rename to PB31IMG and install in hboot if that is easier for you. i personally prefer to install with fastboot as described above,but either way is safe :)
 
Upvote 0
glad you got it! playing with a rooted phone is great fun! :smokingsomb:

im pretty out of touch with inc roms,but cm7 is a great choice,very stable and fast after this much development. there are cm9 roms out now also,just depends what sort of functionality you need or can live without,as they are in the early stage of development :)
 
Upvote 0
Hi scotty,

I got this phone here in Germany and didn't know it won't work

so my collegue tried basically everything here in this thread with different recovery bootloader, different roms, various versions of Radio and HBoot

but if won't boot. It plays the cyanogen 7 animation but doesn't do anything.

Do you have any idea what to do?


If it is bootlooping (playing the boot animation over again) it's a sign of a bad ROM flash. Usually doing a complete factory reset and flashing the ROM over again should fix it. Doesn't matter what hboot or radio is being used ( as long as they are relatively recent). There is a small chance of it being hardware related though.
 
Upvote 0
If it is bootlooping (playing the boot animation over again) it's a sign of a bad ROM flash. Usually doing a complete factory reset and flashing the ROM over again should fix it. Doesn't matter what hboot or radio is being used ( as long as they are relatively recent). There is a small chance of it being hardware related though.

thanks,

apparently the factory reset (wipe cache etc.) doesn't really work well.
We also tried various recovery mods.
Do you think it's a hardware problem?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones