1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

Discussion in 'Android Devices' started by scotty85, Apr 13, 2012.

  1. scotty85

    scotty85 Extreme Android User
    Thread Starter

    apparently updates have made zergrush outdated,and the older unrevoked finicky,at best.
    after some thots on the matter,i have decided to declare the original thread(http://androidforums.com/incredible-all-things-root/427344-how-root-2-3-4-downgrade-get-s-off.html) outdated.

    since the visual affects of htcdev can be removed after s-off,and most incredibles dont have any factory warranty left anyway, i feel the following method is prolly the most reliable way to root your inc 1 running the latest version of gingerbread,at this time.

    first a couple words about htcdev:
    -it does technically void "all or parts of your warranty." please be well aware of this.
    -htcdev only unlocks boot,recovery and system. it is NOT a full unlock,or s-off,by any means.
    -it does NOT allow the boot partition to be written from recovery. kernels must be flashed as PB31IMG files,or using the "fastboot flash" command. i.e.,flashing roms and restoring nandroids is much more of a PITA
    -due to being s-on,you cannot change radios,hboots,or go backwards in firmware versions.

    in short- s-off is way better. nuff said. on to the info. :)

    WARNING! htcdev unlock WILL wipe your personal data. be prepaired for this.

    this is a guide to unlock,root,downgrade,and s-off using htcdev

    first,some credits:
    -first and foremost,the good folks at htc for listening to customers and implementing their unlock program,even for older devices
    *alpharev and unrevoked for all they for the root community :cool: (forever info at public:forever [RootWiki])
    -iowabowtech for point me in the direction of this thread that i collected the misc image,and parts of the guide. also for his support answering questions.
    -sele and the crew in the "rescue squad" on the thunderbolt forum for what i like to call the "mini-adb" concept.
    -whomever origianlly came up with the images and guide linked above. if i can figure out who this was,ill add you in later.
    -zamkat for testing the forever patch with the 1.02 htcdev hboot in this thread

    i do not have a mac,and can offer little to no mac specific support,but there is a copy of the session from a mac user in this post that may be of help.

    the basic steps will be:
    1)unlock with htcdev
    2)flash recovery
    3)flash superuser root files.
    4)rewrite the misc image with adb and downgrade to froyo
    5)re-unlock htcdev hboot
    6)re-flash recovery
    7)re-flash superuser root files and flash unrevoked's "forever" s-off patch

    before you start,go ahead and download these files:
    -miniadb_inc miniadb_inc.zip
    md5: 7c5211686a20b558ccd660c782f82e2b
    -PB31IMG for froyo: PB31IMG.zip
    md5: 31bb1611a0fa8197d447c0438426717e
    -superuser files: superuser 3.07 (alternately,you can prully use the newest superSU from this thread. the link will be labled CWM / TWRP / MobileODIN installable ZIP)
    -forever patch from media fire md5 dd680a16c48b74d6d04e81e947825c56 (modified twrp friendly file dinc.does-it md5 37b79a36406db1eaba69b98f933f0837 please report if working)
    -go to HTCdev - Unlock Bootloader and register an account

    1)unlock with htcdev
    first thing you need is drivers for adb to see your phone. if you have htc sync installed,you should allready have drivers. if not,you can install htc sync,or install these modified htc drivers from revolutionary (driver mirror)

    most guides simply say "follow the directions to unlock with htcdev" but im gonna go thru it with ya :) the mini-adb-inc.zip file is all the files that htcdev is telling you to download and put into a folder,so allready this should be a lil easier ;)

    1)prepair ADB
    -unzip your mini-adb-inc.zip file. this is native funtionality in windows 7. you otherwise may need a utility such as "7-zip" to extract,or unzip it. place the unzipped folder onto the root of your C\ drive on your PC(sorry, you mac guys will need to develop this for yourself,i dont have a mac). root means the top level,not inside any folders. so just copy and paste,or drag and drop the folder onto C with everything else that is there. you actually can call it whatver you want,but directions from here forward will assume this folder to be named "miniadb_inc"
    -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

    -now make sure usb debugging is checked in settings/apps/development,and plug your phone into your PC with a usb cable. select charge only mode on the phone.
    -make sure your phone is being recognized- type:

    adb devices

    if your drivers are installed correctly,this should return your phones serial number. you should hear the "found device" noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.

    2)unlock using htcdev
    -go to HTCdev - Unlock Bootloader and sign in to your account. chose "htc droid incredible" from the "select your device bar" and click the green "begin unlock bootloader" button underneath. note the "*" wich means you will need to update your hboot in order to unlock.
    -click yes to procede,then read the warnings before checking the boxes and clicking yes to continue,as they are basically explaining that your warranty is now void,and any repairs that your phone needs that may have been a result of unlocking your bootloader and messing with your phones operating system may no longer be covered under mfgr warranty
    *check your hboot screen. if you allready have hboots 1.02.0000,or 1.07.0000 then skip ahead to the next step,you dont need this. if you have hboot 0.92.0000,then download the RUU for the new hboot. right click it,and run as administrator. plug in your phone when prompted to. it will ugrade your 0.92.0000 hboot to the htcdev unlock 1.02.0000 hboot.
    -steps 1-4 are describing how to get your phone into bootloader mode and connect it to your PC,wich we have done above. ignore these steps and simply type in your cmd window:

    adb reboot bootloader

    it may take several seconds,but this command should boot your phone into the "fastboot" screen wich is white with a bunch of colored writing. once this happens,make sure your phone is still being seen in fastboot. type:

    fastboot devices

    again,this should return your phones serial number.

    -click the green procede to step 5 bubble.
    -steps 5-7 are telling you how to find the files and utilities inside your mini-adb folder. you have them,so ignore steps 5-7.
    -click the green procede to step 8 bubble.
    -heres where steps are important,steps 8-10 are telling you how to get your unlock token,and send it to htc. its phone specific(so they prolly know your serial number,meid,etc) so no,you cant use your buddys unlock token and not have htc know that youve unlocked your bootloader. ;) copy this line either from below,or from step 8,and paste it into the prompt in your cmd window. you have to right click to paste in cmd,you cannot control/v :

    fastboot oem get_identifier_token

    -after yuo hit enter,you will get a bunch of letters that are your identifier token. not much i can say,other than follow the directions in steps 9 and 10 to copy and submit your identifier token to HTC. make sure you get the characters as shown in the pic,with no extra lines or letters. note that you can also hit the "enter" key on your PC to copy,as well as right clicking.
    -click the green submit button. wait patiently for an email containing your unlock code. (dont worry,it should come pretty fast :p )
    -save the unlock_code.bin that htc sends you directly to your miniadb_inc folder
    folder(if your PC automatically downloads somewhere else,no biggie. just move the unlock code to miniadb_inc)
    -click the link in your email to get the rest of the unlock instructions
    -step 12 is where the magic happens :D copy from below,or from htc dev:

    fastboot flash unlocktoken Unlock_code.bin

    -youll see the purdy screen pictured in step 13. use the vol rocker to chose "yes unlock bootloader" and select it with the power button. your phone will reboot,performaing a factory data reset in the process. your data is gone,sorry :( this boot may take a bit longer than they normally do,dont freak out this is normal .

    *special note: do NOT remove unlock_code.bin from miniadb_inc. we will use it again to reunlock in froyo
    2)flash recovery
    -enable usb debugging once again,as above. open a cmd window,if its not still open from unlocking.
    -if you had to re-open a cmd window,dont forget to change back to your miniadb_inc directory:

    cd c:\miniadb_inc

    -make sure youre connected by typing:

    adb devices

    -should return serial number
    -check the md5 of your recovery image:

    md5sums recovery-clockwork-

    **make sure the resulting md5 matches: ea382ca5809cb872d0582aa22741d592

    -boot to bootloader:

    adb reboot bootloader

    -check for connectivity:

    fastboot devices

    -should return serial number
    -permanently flash your recovery to phones recovery partition:

    fastboot flash recovery recovery-clockwork-

    -youll see a (really fast) green status bar on the top right as your PC sends the recovery to your phone,then a (really,really fast) red bar as it flashes it. you now have clockwork recovery installed on your phone.

    fastboot reboot

    -your phone will reboot
    3)flash superuser root files*
    there is not much to explain with this one.

    *note that clockwork menu options are selected on the original inc with the optic trackpad-thingy. pressing power will take you back a menu,or to the hat if youre on the main menu. this is a common source of conusion.

    1)place superuser 3.07 onto the root of your sd card.
    2)enter recovery via the hboot menu(power off,power on while holding vol down. once in hboot,wait for green writing to flash,then select recovery with power button and vol rocker)
    3)use the recovery menu on your phone to:
    -make a backup of your stock,unrooted rom. completely optional,but a very good idea,IMO.
    -wipe cache
    -wipe dalvik cache(youll find this in the "advanced" menu)
    -install zip from sd card(chose your superuser file)

    *congratulations,youre rooted :) at this point,you could enjoy root with htcdev. however,i strongly reccomend to continue with the downgrade. again,htcdev is a PITA,s-off is way better :)
    4)rewrite the misc image with adb and downgrade to froyo
    -make sure your phone is charged to 100% before starting.
    -take the froyo PB31IMG,and place it into your miniadb_inc folder
    -open a cmd window,as above

    -make sure phone is plugged in and usb debugging checked on,in charge only mode

    -at the promt in your command window:

    cd c:\miniadb_inc this should change your command promt to "miniadb_inc",indicating youre using that directory.
    adb devices this should output your phones serial number,indicating its recognized

    md5sums mtd0.img it should output a few things.at the end you should see this number 34307be744275f1db1dd16af04c37839

    md5sums flash_image again,it will output some things,then you should see this number: 0098a7dd6600b55fac34fc6645be5d7a

    md5sums PB31IMG.zip this is a big file,and will take a couple minutes to check,so be patient- its prolly not hung. it should output 31bb1611a0fa8197d447c0438426717e

    *those numbers must match exactly. if they do then you can procede.

    adb push flash_image /data/local/
    adb push mtd0.img /sdcard/

    adb shell your prompt should change to a #. if it changes to a $,then type su note your phone may pop up a message asking you to allow permissions the first time you do this. if it does check "always" and touch "allow" on the superuser request on the phone screen.

    cd /data/local
    chmod 0755 /data/local/flash_image

    cd /data/local
    ./flash_image misc /sdcard/mtd0.img

    you can now downgrade back to 2.2,so you can flash the "unrevoked forever patch" in recovery to regain s-off

    exit to get out of your adb shell,and back to the "mini-adb_inc" prompt

    adb reboot bootloader this will boot your phone to "fastboot"

    fastboot getvar mainver this will tell you if you have successfully re-written your misc image. if you see anything other than 1.22.605.2,then start over at step 4,and try again.

    fastboot oem lock relocks your bootloader. you only need to enter the command and relock if your hboot is still unlocked when you get to this point. mine was allready relocked when i got to fastboot,so i did NOT need this step. again,if you are allready relocked then you can skip this command.i left the command in place just in case it works differently for others.

    fastboot erase cache

    fastboot oem rebootRUU this will put your phone in RUU mode

    fastboot flash zip PB31IMG.zip this should flash your downgrade zip file

    -when the phone finished flashing the downgrade:

    fastboot reboot

    *when your phone reboots,you should be in froyo :) (if it does not fully boot,factory reset in hboot)
    5)re-unlock htcdev hboot
    -open a cmd window
    -once again,enable usb debugging,plug in your phone

    adb devices check conectivity

    adb reboot bootloader boot to fastboot

    fastboot devices check connectivity

    fastboot flash unlocktoken Unlock_code.bin re-unlock

    like the first time,on your phone select yes to unlock.your phone will reboot.
    6)re-flash recovery
    -enable usb debugging once again,as above. open a cmd window,if its not still open from unlocking.
    -if you had to re-open a cmd window,dont forget to change back to your miniadb_inc directory:

    cd c:\miniadb_inc

    -make sure youre connected by typing:

    adb devices

    -should return serial number
    -check the md5 of your recovery image:

    md5sums recovery-clockwork-

    **make sure the resulting md5 matches: ea382ca5809cb872d0582aa22741d592

    -boot to bootloader:

    adb reboot bootloader

    -check for connectivity:

    fastboot devices

    -should return serial number
    -permanently flash your recovery to phones recovery partition:

    fastboot flash recovery recovery-clockwork-

    -youll see a (really fast) green status bar on the top right as your PC sends the recovery to your phone,then a (really,really fast) red bar as it flashes it. you now have clockwork recovery installed on your phone.

    fastboot reboot

    -your phone will reboot
    7)re-flash superuser root files and flash unrevoked's "forever" patch*
    there is not much to explain with this one,either.
    1)place superuser 3.07(if its not still there from the first time),and unrevokeds "forever" patch onto the root of your sd card
    2)enter recovery via the hboot menu(power off,power on while holding vol down. once in hboot,wait for green writing to flash,then select recovery with power button and vol rocker)
    3)use the recovery menu on your phone to:
    -wipe cache
    -wipe dalvik cache
    -install zip from sd card(chose your superuser file)
    -install zip from sd card(chose your forever file)

    *congratulations,youre rooted. again. :) and hopefully now s-off as well. reboot,then go to hboot and verify that you are now S-OFF!
    8)Finishing up
    1)update hboot/radio.
    you can install the following in hboot by renaming PB31IMG,or you can place them in miniadb_inc,and flash them like you did the froyo downgrade(phone in fastboot mode):
    fastboot devices

    fastboot erase cache

    fastboot oem rebootRUU

    fastboot flash zip zipname.zip

    fastboot reboot-bootloader

    fastboot reboot

    *whatever method you use,make sure to double check the md5s,as a bad hboot or radio flash can and will leave your device unworking and unrecoverable :eek:

    -software build 4.08.605.15 radio/hboot
    md5: PB31IMG-4.08.605.15-hboot-1.07.zip db019de010ae8ef6a2c250fd8b378ba1

    md5: PB31IMG-4.08.605.15-radio.zip cb8b3ac72c0ae13e1f088b302135bd58

    note:the bootloader may still be in ints previous state when you re-flash it(i.e.,if it was unlocked,it will still be). if you find it to be locked or relocked you can use your original unlock-code.bin to re-unlock it,if you wish. this is optional,but unlocking the bootloader does give you access to a few extra fastboot commands.

    2)restore a backup or flash a stock rom with clockwork recovery

    *restoring a backup of,or flashing a rom based on 4.08.605.15,is the best way to stop annoying OTA requests. alternatively,many custom roms(especially CM or other AOSP based roms) will block OTAs,there are many to chose from: Droid Incredible Android Development - xda-developers

    heres a stock rom if you need it:
    [ROM] Stock rooted OTA 4.08.605.15 - 06-27-2012 - xda-developers

    heres some basic rom flashing directions:

    *links courtesy of sdrawcab25. please keep in mind its a little beyond the scope of this thread to discuss in great detail rom flashing,tethering,bloat removal,or other root related activities. we want to help you,but there is alot of that info out there allready,and adding it here is just making the thread longer and harder for those using the guide to search.

    9) FAQ
    *ive successfully completed steps 1-4. im rooted and have a recovery,do i really need s-off?
    technically you can live with htcdev. it does allow access to boot,system,and recovery,so you can flash roms,with a bit more effort. it can also work if you only want root access to run a couple root only apps and have no interest in any further customization of your phone.

    however,s-off offers several distinct advantages:
    -the ability to access ALL partitions. you can change splash screens,hboots,and radios
    -the ability to go backwards in firmware versions.
    -greater options for rescuing a soft-bricked device becasue of the above,and the fact that you can install things that are not signed by htc
    -ease of rom flashing. htcdev has limitations and requires extra steps to flsh roms. see this thread for more info on flashing with htcdev unlocked s-on

    *i wouldnt have wrote this guide if i did not believe that it is worth the extra time and effort to achieve s-off. ;) in the end it is the user choice what to do,depending on how you want to use the device,your comfort level,and wether the disadvantages can be dealt with.

    *do i need to update the radio and hboot?? ive heard a bad flash will brick my phone
    it is absolutely true that flashing a corrupt radio or hboot can/will leave you with an unrecoverable,hard bricked device.

    however,it is safe as long as you take caution:
    -use only files from trusted sources. youll have to decide foryourself if you trust me or not ;) but i dont want to ruin anyones phone,and you will never see me post a link without an md5(intentionally-if i ever forget just ask for it :)),and i also will not upload anything i havent flashed on one of my own personal devices to ensure the safety. if theres ever a chance a file or process could damage your device i will not post it.
    -mkae sure you check MD5s! this will ensure that the files you have downloaded are not corrupt.
    -make sure you charge to 100% before flashing ANY file that contains a radio or hboot,as dieing in the middle of an hboot radio flash is very,very bad!
    -handle the device cautiously while flashing. in other words,put it down somewhere it wont fall and dont touch it ;) if the phone falls off your computer desk and becomes unpluged during a fastboot flash,or spits out the battery during any kind of flash,it is again,very,very bad.

    if you take the above precautions,you can safely update your radio and hboot,without worry.

    i personally feel it is to your advantage to run the newest hboot and radio. the advantages of the newest bootloader may not be apparent,but if there were not improvents,there would not have been a new version. the newer radio will hopefully give you better,stronger,more stable phone and data signals. the radio in the froyo downgrade is old-many versions old,and again,if there were not improvements along the way,the newest software would still contain the same radio ;)


    last and not least

    and heres what youll see in your cmd window. note that i did the whole process at one sitting,so i only had to change to the miniadb_inc directory once. red are my inputs,blue are additional comments:

    Code (Text):
    1. Microsoft Windows [Version 6.1.7601]
    2. Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    4. C:\Users\Scott>[COLOR="Red"]cd c:\miniadb_inc[/COLOR]
    6. c:\miniadb_inc>[COLOR="red"]adb devices[/COLOR]
    7. List of devices attached
    8. HT117HJ00242    device
    11. c:\miniadb_inc>[COLOR="red"]adb reboot bootloader[/COLOR]
    13. c:\miniadb_inc>[COLOR="red"]fastboot devices[/COLOR]
    14. HT117HJ00242    fastboot
    16. c:\miniadb_inc>[COLOR="red"]fastboot oem get_identifier_token[/COLOR]
    17.                               ... INFO
    18. INFO< Please cut following message >
    19. INFO<<<< Identifier Token Start >>>>
    20. INFO65200481FCA29CD35BEC7DC337DCFA23
    21. INFO71D74C4990C5E0CB5C6782517CFA050A
    22. INFO99ABE5367E9EC9F5ACC1CE72B9A6A727
    23. INFOA30412634D313494698CDFC7299A1F10
    24. INFO8AB672DAB3DD89CA4CCFBB9201B4299F
    25. INFO75043A2C4C5E311A30BF3DA18F103E73
    26. INFOEEDA6977212E64D26B91A9C8D7895AFB
    27. INFOD8AD398966EC1603F9AE177467FCE9CD
    28. INFO4072F0702930148BC22923CBCF3C8925
    29. INFO41B9FD1E6D913668186769E1ABBE877A
    30. INFODD7DABBFB847F79F19665B0EDC6E7C67
    31. INFO9E4426907F319A4E402E10625249A382
    32. INFO325C48A94E2DFFB5F95734AA0BF32D9D
    33. INFOADC2B232D8907982F2BC66DE75B73970
    34. INFO6756674C42BE065E0A5B9FEF5C887E27
    35. INFO5F6EFC9F42D1F543328893E3EC71C7B5
    36. INFO<<<<< Identifier Token End >>>>>
    37. OKAY [  0.065s]
    38. finished. total time: 0.066s
    40. [COLOR="blue"]*submit token to htc. move unlock_code.bin to miniadb_inc folder.[/COLOR]
    42. c:\miniadb_inc>[COLOR="red"]fastboot flash unlocktoken Unlock_code.bin[/COLOR]
    43.   sending 'unlocktoken' (0 KB)... OKAY [  0.014s]
    44.          writing 'unlocktoken'... INFOunlock token check successfully
    45. OKAY [  0.008s]
    46. finished. total time: 0.022s
    48. [COLOR="Blue"]*select yes to unlock on phone screen.phone will reboot,doing a factory data reset.[/COLOR]
    50. c:\miniadb_inc>[COLOR="red"]adb devices[/COLOR]
    51. List of devices attached
    52. HT117HJ00242    device
    54. c:\miniadb_inc>[COLOR="red"]md5sums recovery-clockwork-[/COLOR]
    56. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    57. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    58. Type md5sums -h for help
    60. [Path] / filename                              MD5 sum
    61. -------------------------------------------------------------------------------
    62. [c:\miniadb_inc\]
    63. recovery-clockwork-             ea382ca5809cb872d0582aa22741d592
    65. c:\miniadb_inc>a[COLOR="red"]db reboot bootloader[/COLOR]
    67. c:\miniadb_inc>[COLOR="red"]fastboot devices[/COLOR]
    68. HT117HJ00242    fastboot
    70. c:\miniadb_inc>[COLOR="Red"]fastboot flash recovery recovery-clockwork-[/COLOR]
    71.   sending 'recovery' (3064 KB)... OKAY [  0.422s]
    72.             writing 'recovery'... OKAY [  0.976s]
    73. finished. total time: 1.399s
    75. c:\miniadb_inc>[COLOR="red"]fastboot reboot[/COLOR]
    76.                      rebooting...
    77. finished. total time: 0.098s
    79. [COLOR="blue"]*phone reboots*[/COLOR]
    81. c:\miniadb_inc>[COLOR="red"]adb devices[/COLOR]
    82. List of devices attached
    83. HT117HJ00242    device
    86. c:\miniadb_inc>[COLOR="red"]md5sums mtd0.img[/COLOR]
    88. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    89. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    90. Type md5sums -h for help
    92. [Path] / filename                              MD5 sum
    93. -------------------------------------------------------------------------------
    94. [c:\miniadb_inc\]
    95. mtd0.img                                       34307be744275f1db1dd16af04c37839
    97. c:\miniadb_inc>[COLOR="red"]md5sums flash_image[/COLOR]
    99. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    100. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    101. Type md5sums -h for help
    103. [Path] / filename                              MD5 sum
    104. -------------------------------------------------------------------------------
    105. [c:\miniadb_inc\]
    106. flash_image                                    0098a7dd6600b55fac34fc6645be5d7a
    108. c:\miniadb_inc>[COLOR="red"]md5sums PB31IMG.zip[/COLOR]
    110. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    111. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    112. Type md5sums -h for help
    114. [Path] / filename                              MD5 sum
    115. -------------------------------------------------------------------------------
    116. [c:\miniadb_inc\]
    117. PB31IMG.zip                               100% 31bb1611a0fa8197d447c0438426717e
    119. c:\miniadb_inc>[COLOR="red"]adb push flash_image /data/local/[/COLOR]
    120. 1428 KB/s (76044 bytes in 0.052s)
    122. c:\miniadb_inc>[COLOR="red"]adb push mtd0.img /sdcard/[/COLOR]
    123. 1120 KB/s (655360 bytes in 0.571s)
    125. c:\miniadb_inc>[COLOR="red"]adb shell[/COLOR]
    126. $ [COLOR="red"]su[/COLOR]
    127. su
    128. # [COLOR="red"]cd /data/local[/COLOR]
    129. cd /data/local
    130. # [COLOR="red"]chmod 0755 /data/local/flash_image[/COLOR]
    131. chmod 0755 /data/local/flash_image
    132. # [COLOR="red"]cd /data/local[/COLOR]
    133. cd /data/local
    134. # [COLOR="red"]./flash_image misc /sdcard/mtd0.img[/COLOR]
    135. ./flash_image misc /sdcard/mtd0.img
    136. # [COLOR="red"]exit[/COLOR]
    137. exit
    138. $ [COLOR="red"]exit[/COLOR]
    139. exit
    141. c:\miniadb_inc>[COLOR="red"]adb reboot bootloader[/COLOR]
    143. c:\miniadb_inc>[COLOR="red"]fastboot getvar mainver[/COLOR]
    144. mainver: 1.22.605.2 [COLOR="Blue"]<--if you dont see this number,something went wrong[/COLOR]
    145. finished. total time: -0.000s
    147. c:\miniadb_inc>[COLOR="red"]fastboot erase cache[/COLOR]
    148.                erasing 'cache'... OKAY [  0.753s]
    149. finished. total time: 0.754s
    151. c:\miniadb_inc>[COLOR="Red"]fastboot oem rebootRUU[/COLOR]
    152.                               ... OKAY [  0.100s]
    153. finished. total time: 0.100s
    155. c:\miniadb_inc>[COLOR="red"]fastboot flash zip PB31IMG.zip[/COLOR]
    156.      sending 'zip' (176625 KB)... OKAY [ 25.609s]
    157.                  writing 'zip'... INFOadopting the signature contained in this i
    158. mage...
    159. INFOsignature checking...
    160. INFOzip header checking...
    161. INFOzip info parsing...
    162. INFOchecking model ID...
    163. INFOchecking custom ID...
    164. INFOchecking main version...
    165. INFOstart image[hboot] unzipping for pre-update check...
    166. INFOstart image[hboot] unzipping & flushing...
    167. INFO[RUU]UZ,hboot,0
    168. INFO[RUU]UZ,hboot,100
    169. INFOstart image[radio] unzipping & flushing...
    170. INFO[RUU]UZ,radio,0
    171. INFO[RUU]UZ,radio,9
    172. INFO[RUU]UZ,radio,18
    173. INFO[RUU]UZ,radio,23
    174. INFO[RUU]UZ,radio,32
    175. INFO[RUU]UZ,radio,41
    176. INFO[RUU]UZ,radio,46
    177. INFO[RUU]UZ,radio,51
    178. INFO[RUU]UZ,radio,60
    179. INFO[RUU]UZ,radio,69
    180. INFO[RUU]UZ,radio,78
    181. INFO[RUU]UZ,radio,87
    182. INFO[RUU]UZ,radio,97
    183. INFO[RUU]UZ,radio,100
    184. INFO[RUU]WP,radio,0
    185. INFO[RUU]WP,radio,7
    186. INFO[RUU]WP,radio,16
    187. INFO[RUU]WP,radio,21
    188. INFO[RUU]WP,radio,26
    189. INFO[RUU]WP,radio,35
    190. INFO[RUU]WP,radio,40
    191. INFO[RUU]WP,radio,45
    192. INFO[RUU]WP,radio,50
    193. INFO[RUU]WP,radio,100
    194. INFOstart image[boot] unzipping & flushing...
    195. INFO[RUU]UZ,boot,0
    196. INFO[RUU]UZ,boot,43
    197. INFO[RUU]UZ,boot,83
    198. INFO[RUU]UZ,boot,100
    199. INFO[RUU]WP,boot,0
    200. INFO[RUU]WP,boot,42
    201. INFO[RUU]WP,boot,85
    202. INFO[RUU]WP,boot,100
    203. INFOstart image[recovery] unzipping & flushing...
    204. INFO[RUU]UZ,recovery,0
    205. INFO[RUU]UZ,recovery,20
    206. INFO[RUU]UZ,recovery,43
    207. INFO[RUU]UZ,recovery,73
    208. INFO[RUU]UZ,recovery,99
    209. INFO[RUU]UZ,recovery,100
    210. INFO[RUU]WP,recovery,0
    211. INFO[RUU]WP,recovery,20
    212. INFO[RUU]WP,recovery,40
    213. INFO[RUU]WP,recovery,60
    214. INFO[RUU]WP,recovery,80
    215. INFO[RUU]WP,recovery,100
    216. INFOstart image[system] unzipping & flushing...
    217. INFO[RUU]UZ,system,0
    218. INFO[RUU]UZ,system,6
    219. INFO[RUU]UZ,system,12
    220. INFO[RUU]UZ,system,19
    221. INFO[RUU]UZ,system,25
    222. INFO[RUU]UZ,system,32
    223. INFO[RUU]UZ,system,39
    224. INFO[RUU]UZ,system,45
    225. INFO[RUU]UZ,system,51
    226. INFO[RUU]UZ,system,58
    227. INFO[RUU]UZ,system,64
    228. INFO[RUU]UZ,system,71
    229. INFO[RUU]UZ,system,78
    230. INFO[RUU]UZ,system,84
    231. INFO[RUU]UZ,system,89
    232. INFO[RUU]WP,system,0
    233. INFO[RUU]WP,system,89
    234. INFO[RUU]UZ,system,89
    235. INFO[RUU]UZ,system,89
    236. INFO[RUU]UZ,system,90
    237. INFO[RUU]UZ,system,91
    238. INFO[RUU]UZ,system,92
    239. INFO[RUU]UZ,system,93
    240. INFO[RUU]UZ,system,94
    241. INFO[RUU]UZ,system,94
    242. INFO[RUU]UZ,system,96
    243. INFO[RUU]UZ,system,96
    244. INFO[RUU]UZ,system,97
    245. INFO[RUU]UZ,system,98
    246. INFO[RUU]UZ,system,99
    247. INFO[RUU]UZ,system,100
    248. INFO[RUU]WP,system,89
    249. INFO[RUU]WP,system,89
    250. INFO[RUU]WP,system,90
    251. INFO[RUU]WP,system,91
    252. INFO[RUU]WP,system,92
    253. INFO[RUU]WP,system,93
    254. INFO[RUU]WP,system,94
    255. INFO[RUU]WP,system,94
    256. INFO[RUU]WP,system,95
    257. INFO[RUU]WP,system,96
    258. INFO[RUU]WP,system,97
    259. INFO[RUU]WP,system,98
    260. INFO[RUU]WP,system,99
    261. INFO[RUU]WP,system,100
    262. INFOstart image[sp1] unzipping & flushing...
    263. INFO[RUU]UZ,sp1,0
    264. INFO[RUU]UZ,sp1,100
    265. INFO[RUU]WP,sp1,0
    266. INFO[RUU]WP,sp1,100
    267. OKAY [152.900s]
    268. finished. total time: 178.510s
    270. c:\miniadb_inc>[COLOR="red"]fastboot reboot[/COLOR]
    271.                      rebooting...
    272. finished. total time: 0.098s
    274. [COLOR="blue"]*phone reboots*[/COLOR]
    276. c:\miniadb_inc>[COLOR="red"]adb devices[/COLOR]
    277. List of devices attached
    278. HT117HJ00242    device
    280. c:\miniadb_inc>[COLOR="red"]adb reboot bootloader[/COLOR]
    282. c:\miniadb_inc>[COLOR="red"]fastboot devices[/COLOR]
    283. HT117HJ00242    fastboot
    285. c:\miniadb_inc>[COLOR="red"]fastboot flash unlocktoken Unlock_code.bin[/COLOR]
    286.   sending 'unlocktoken' (0 KB)... OKAY [  0.014s]
    287.          writing 'unlocktoken'... INFOunlock token check successfully
    288. OKAY [  0.005s]
    289. finished. total time: 0.021s
    291. [COLOR="Blue"]*select yes to unlock on phone screen.phone will reboot,doing a factory data reset.[/COLOR]
    293. c:\miniadb_inc>[COLOR="red"]adb devices[/COLOR]
    294. List of devices attached
    295. HT117HJ00242    device
    297. c:\miniadb_inc>[COLOR="red"]md5sums recovery-clockwork-[/COLOR]
    299. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    300. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    301. Type md5sums -h for help
    303. [Path] / filename                              MD5 sum
    304. -------------------------------------------------------------------------------
    305. [c:\miniadb_inc\]
    306. recovery-clockwork-             ea382ca5809cb872d0582aa22741d592
    308. c:\miniadb_inc>[COLOR="red"]adb reboot bootloader[/COLOR]
    310. c:\miniadb_inc>[COLOR="red"]fastboot devices[/COLOR]
    311. HT117HJ00242    fastboot
    313. c:\miniadb_inc>[COLOR="red"]fastboot flash recovery recovery-clockwork-[/COLOR]
    314.   sending 'recovery' (3064 KB)... OKAY [  0.423s]
    315.             writing 'recovery'... OKAY [  0.915s]
    316. finished. total time: 1.340s
    318. c:\miniadb_inc>[COLOR="red"]fastboot reboot[/COLOR]
    319.                      rebooting...
    320. finished. total time: 0.093s
    322. [COLOR="blue"]*phone reboots*[/COLOR]
    just so you know it does work :D

    donate to my device fund :)

    1. Download the Forums for Android™ app!


  2. scotty85

    scotty85 Extreme Android User
    Thread Starter

  3. ned4spd8874

    ned4spd8874 Android Enthusiast

    Holy bejezus! So since I've done pretty much everything already, I skipped ahead (I know, I know...I may regret it) to step 8 as that was the one I was missing. I've been working on this for about 12 hours now (almost 5 straight yesterday and about 4 today) and am growing very impatient.

    Anyways, long story short, performing step 8 now gave me s-off! Now, one question, I'm still on the newer hboot version (1.02.0000); should I try and downgrade that? Can I? And if so, how?

    Sorry, my mind is a bit mush right now with all the work I've put into this. Everything is all lumped up in my brain and I can't think exactly straight at the moment.
  4. scotty85

    scotty85 Extreme Android User
    Thread Starter

    No need to downgrade the new hboot. It is actually quite nice wen combined with s off,as it gives some fastboot commands not available with the .92.

    Glad it worked out for you. You can now run an ruu,or flash a custom Rom to get your phone into a non-bootlooping state :)
  5. ned4spd8874

    ned4spd8874 Android Enthusiast

    Okay, I thought so. Although I believe after all this, I'm going to have to revert the process. I tried to restore an image I made just the other day with my old device (same type) and it was also rebooting. So I loaded a fresh, base version of the cyanogen mod and it's also still rebooting. I suspect that I have yet another device with bad hardware. This is #3 in a week! Verizon is pissing me off.
  6. scotty85

    scotty85 Extreme Android User
    Thread Starter

    OP refined and polished a lil. t got finished going full circle- junk inc was s-off on froyo,so i turned secureflag back on,upgraded to GB,and installed htcdev unlock compatible hboot. went thru the guide to make sure there were no quirks or pitfalls. back to s-off on froyo :)
    sdrawkcab25 likes this.
  7. droidian1441

    droidian1441 Well-Known Member

    This won't work on my Inc. I unlocked using HTCDev but it won't flash the CWM recovery. :(

    Can anybody help me?
  8. scotty85

    scotty85 Extreme Android User
    Thread Starter

    It will work. What errors or problems are you having?

    Are you following these directions,or trying to install cw another way?
  9. LBCH3R0

    LBCH3R0 Newbie

    Nm, fixed it.
  10. scotty85

    scotty85 Extreme Android User
    Thread Starter

    please describe the prollem you had,and how you fixed it. this information will help others on this thread in the future :)
  11. JLTrell

    JLTrell Lurker

    Hello Scotty85.
    How do I check to ensure I am updated to the newest version of htcdev hboot? I'm almost sure I have, it was on here before I tried, and then how do I downgrade it if I am? Sorry I am confused now. Will the method you posted for the droid incredible work for the G2? It's a new day so I will start up the process again from htcdev's site once you reply.
  12. scotty85

    scotty85 Extreme Android User
    Thread Starter

    to check any htc device for a compatible unlock hboot,simply boot to hboot by turning the device off,remove the battery for a few seconds,then hold vol down,then power,and hold both until you see a white screen with colored letters. look at the top for a big,pink, locked. you can see it in the pics in the OP. if you dont see this,you have a normal hboot that is not unlockable.

    unfortunately,this guide is not compatible with the G2,it contains some incredible-specific files. id poke around on xda inthe g2/desire z android development section: G2 and Desire Z Android Development - xda-developers

    if you wish to obtain s-off,simunlock and superCID,this guide looks it might be the one: [TOOL] [15/07/11] AMT v1.8.5 - Sim Unlock, S-OFF, Downgrade - Added Auto Detection! - xda-developers
  13. JLTrell

    JLTrell Lurker

    I see. Is it because the G2 has the bootloader that relocks itself once you turn the device off?/ I remember hearing about that when it was launched but I didn't have the device then. I checked to see if my hboot is compatible to be unlocked, and I didn't see the "locked" you were talking about. :(
    Is there any easy way or one-on-one help I can get with this? I really wanna root it and install an ICS ROM but there are always the dangers of bricking it if you mess up. I saw the bottom guide as well, but is there any way I can downgrade the hboot first if it's not "compatible?"
  14. scotty85

    scotty85 Extreme Android User
    Thread Starter

    i dont know anything about the g2 bootloader relocking itself. i havent heard that,but it may be true... i dont have a g2 and dont know much about them. this guide wont work simply because there are some incredible-specific files. if a quick,easy s-off root existed for an older firmware,htcdev could be installed and used in a similar manner to this guide to get root and downgrade,but i dont believe that is the best way to skin the cat ;)

    the AMT tool looks pretty easy. just download the tool and run it. if you look at the third pic,choose those options when you run it. do not set the tool to install an eng hboot,or flsah a recovery. click the "commit changes" button.

    if the tool fails,click the "downgrade rom" button and follow whatever directions it gives you to downgrade. there are some other ruus here you can use for downgrade: FileFactory Folder View - Vision

    we dont have a g2 specific section here,but the "vision" is very similar to the dezire Z,so you may want to start a thread here: Desire Z - All Things Root - Android Forums or if youd rather i can move your posts there for you. either way,you may get better advice from folks familiar with your phone. if you start a new thread,pm me the link and i will continue to help you on that thread as best i can. but we do need to stop posting in this one,as the g2 information could be confusing to those using the thread for the incredible. :)
  15. strive53

    strive53 Newbie

    Hi was wondering if there is a way to do this without using the adb commands. I bricked my inc attempting to flash to boost n now I can't boot past the splash screen. Have access to hboot/fastboot. Bricked on 2.2...ruu to 2.3....ruu agn to unlock bootloader... Problem isn't in the Rom. The phone has been bricked since September n always find myself searching for a fix! Would love to c it come back to life! Would have been fixed if I was s-off... Any insight would b greatly appreciated! Ty.
  16. scotty85

    scotty85 Extreme Android User
    Thread Starter

    i assume youve tried running RUUs?

    if youre still on froyo,try and run that first. if it still wont boot,then i believe you could run the GB ruu,and even if the phone wont boot, you can install the unlock compatible hboot,then unlock it and install a recovery. the adb daemon will be running in recovery,so you can complete the adb steps and downgrade,then reunlock and flash the s-off patch.

    i.e.,im pretty sure the whole guide above will work,even if the phone wont boot the whole time :eek:

    granted,s-off in itself isnt going to fix anything,but if youve got messed up partitions/bad blocks im pretty sure you will be able to fix those and get it booting once youve got s-off.

    youll just need to enter adb shell mount /data after checking the md5 sums,but before doing the rest of the adb commands. i did it on my phone in the other thread,to make sure it would work:

    Code (Text):
    1. c:\mini-adb_inc>[COLOR="Red"]adb devices[/COLOR]
    2. List of devices attached
    3. HT117HJ00242    recovery
    6. c:\mini-adb_inc>[COLOR="red"]md5sums mtd0.img[/COLOR]
    8. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    9. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    10. Type md5sums -h for help
    12. [Path] / filename                              MD5 sum
    13. -------------------------------------------------------------------------------
    14. [c:\mini-adb_inc\]
    15. mtd0.img                                       34307be744275f1db1dd16af04c37839
    17. c:\mini-adb_inc>[COLOR="red"]md5sums flash_image[/COLOR]
    19. MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
    20. Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
    21. Type md5sums -h for help
    23. [Path] / filename                              MD5 sum
    24. -------------------------------------------------------------------------------
    25. [c:\mini-adb_inc\]
    26. flash_image                                    0098a7dd6600b55fac34fc6645be5d7a
    27. c:\mini-adb_inc>[COLOR="red"]adb shell mount /data[/COLOR]
    29. c:\mini-adb_inc>[COLOR="red"]adb push flash_image /data/local/[/COLOR]
    30. 1485 KB/s (76044 bytes in 0.050s)
    32. c:\mini-adb_inc>[COLOR="red"]adb push mtd0.img /sdcard/[/COLOR]
    33. 1939 KB/s (655360 bytes in 0.330s)
    35. c:\mini-adb_inc>[COLOR="red"]adb shell[/COLOR]
    36. / # [COLOR="red"]cd /data/local[/COLOR]
    37. cd /data/local
    38. /data/local # [COLOR="red"]chmod 0755 /data/local/flash_image[/COLOR]
    39. chmod 0755 /data/local/flash_image
    40. /data/local # [COLOR="red"]cd /data/local[/COLOR]
    41. cd /data/local
    42. /data/local #[COLOR="red"] ./flash_image misc /sdcard/mtd0.img[/COLOR]
    43. ./flash_image misc /sdcard/mtd0.img
    44. /data/local # [COLOR="red"]exit[/COLOR]
    45. exit
  17. strive53

    strive53 Newbie

    Thanks for the reply. I cannot boot to anything except hboot. Amon ra is on the phone now but won't boot to it.... The fix for s-off devices flashes dthe misc IMG via fastboot which I cannot do because of s-on. I've done a lot. Bricked it on 2.2 and ran every ruu to the latest one. I have a htcdev unlocked bootloader. It's not a need to have this phone but still would b cool for it to get fixed. have already been told I was screwed lol. Soo anyway to change mainver without adb....
  18. sdrawkcab25

    sdrawkcab25 Extreme Android User

    You don't need s-off for the fast boot commands to work... you should only need hboot and recovery working to rewrite the misc image and downgrade.

    Reflash recovery through a PB31IMG.zip file
  19. scotty85

    scotty85 Extreme Android User
    Thread Starter

    or launch it into memory via:
    fastboot boot recoveryname.img

    This should get your recovery running so you can use the adb commands to downgrade and complete the guide.
  20. scotty85

    scotty85 Extreme Android User
    Thread Starter

    any luck?
  21. kmand

    kmand Member


    I'm on a HTC Droid Incredible (original). I've done the htdev part and have S-ON. I've also flashed the recovery-clockwork which seemed to work:

    fastboot flash recovery recovery-clockwork-
    sending 'recovery' (3064 KB)...
    OKAY [ 0.460s]
    writing 'recovery'...
    OKAY [ 0.962s]
    finished. total time: 1.422s

    However, when I reboot into the bootloader and try "recovery" I don't get another menu, the phone just reboots immediately.

    Any ideas?
  22. scotty85

    scotty85 Extreme Android User
    Thread Starter

    are you letting the phone boot fully when you select recovery and it reboots?

    you will see the htc splash screen between selecting recovery,and recovery popping up,so if youre pulling the battery immediately when you see the splash,it may be that you just arnet giving the phone long enuff.

    if the phone is booting up all the way,skip past the setup,enable usb debugging again,plug in the phone,and in your cmd window type "adb reboot recovery" and see if the phone boots to clockwork.

    did you double check the md5 of your recovery image before flashing it?
  23. kmand

    kmand Member

    I did check the md5. It is possible that I did not wait long enough on the reboot,

    I went and redid the flash of recovery followed by fastboot reboot. This time it rebooted into normal mode quickly, didn't go through setup and usb debugging was still enabled.

    I tried the adb reboot recovery and it does boot into clockworkmod. However, no matter which menu item I select and then press the power button it clears the screen brightens up the tophat/circle and just sits there. If I press power it goes back to the blue clockwork menu. Even the reboot menu item does this.

    I presume If I take out the battery it will go back to a normal boot.
  24. sdrawkcab25

    sdrawkcab25 Extreme Android User

    Press the trackball, NOT the power button in clockwork :)
    mtrott and scotty85 like this.
  25. mtrott

    mtrott Lurker

    Hi thanks for this thread evrything went perfect booted froyo then applied step #5 htcdevice re-unlock boot and now froyo is stuck on reboot can get into hboot and says unlocked at the top but miniadp_inc doesn't see device! help

    update: did a factory reset from hboot and it fixed reboot problem still on froyo 2.2 and unlocked! think now I can proceed to step 6 wish me luck.
    scotty85 likes this.

HTC Droid Incredible Forum

The HTC Droid Incredible release date was April 2010. Features and Specs include a 3.7" inch screen, 8MP camera, Snapdragon S1 processor, and 1300mAh battery.

April 2010
Release Date

Share This Page