[HTC EVO 3D] dryogeshd:
Downgrading your Hboot

Now that you have unlocked and got rooted, lets get your device S-off.

As I understand, till date this following way has been successful in getting your device HBoot down and achieve S-OFF, Important thing for that is to change your CID to a universal CID, that is HTC__001.​

I do not know that MY way will work for every device, you are welcome to try my way, for at least the unbranded devices.

There are two ways of changing your device cid.

1. Through fastboot. Open the command prompt, connect your device by USB cable, check USB debugging is enabled. and enter the following code

adb reboot bootloader

wait till your device enters bootloader and shows fastboot USB, now enter the following code.

a. For unbranded devices.

fastboot oem writecid HTC__001

fastboot oem lock

fastboot oem reboot bootloader

Please note that in the cid there are 2 underscores before 001.

b. For branded devices such as Vodafone.

fastboot oem writecid VODAP001
fastboot oem lock
fastboot reboot bootloader

You can even change that CID to HTC__001.

Once you have achieved S-OFF you can change your cid back to original.

2. Manually.

For this you need to download xvi32 hex editor from here

Extract this anywhere, run the xvi32 and open mmcblk0p31.img which you had copied to your device sdcard.

Now change the cid as shown in these pictures.

Initial

Changed

Now save the file.

For branded devices.

Initial,

Changed.

Now save the file and exit.

Now go to adb shell and do as shown:

After this you can check your cid and it will show the changed cid and software build number.

You will get best results if you do this before you flash the custom ROM.

Now you can downgrade the Hboot also in two ways, one is automated as demonstrated by flashmaniac in his thread and the other one is manual.

Downgrading flashmaniac's way does not require you to unlock your device the HTCDEV way.

1. Flashmaniac's way.

Download his tool (Makes sure there are step1.exe, step2.exe and step3.exe in the folder).

Extract the entire folder to root of C drive on your computer.

Run step1.exe

If do not get any errors run step2.exe

Then run the step3.exe

Wait for it to flash the European version of RUU onto your device.

This RUU/Rom.zip in the downloaded folder has the Hboot version 1.49.0007.

2. A little bit cumbersome and manual way of doing it,

Download the tools from Flashmaniac's thread. Extract the zip. Copy the mmcblk0p31.img to your sdcard.

Then run this code in adb. (Your device will be booted normally into android and USB debugging mode should be enabled)

c:\android>adb shell (Hit enter)
#dd if=/mnt/sdcard/mmcblk0p31.img of=/dev/block/mmcblk0p31 (Hit enter)

You will see copied successfully.

You might face problems here if you are not rooted fully or if your device is still locked.

Then you check the cid and if it shows non workable cid, then write the new cid and relock your device.

fastboot oem readcid
fastboot getvar cid

fastboot oem writecid HTC__001 (or)

fastboot oem writecid VODAP001

fastboot oem lock

Now boot your device into recovery:

fastboot reboot

adb reboot recovery

In your computer, from the tool folder downloaded from Flashmanic'c thread, rename the Rom.zip to PG86IMG

Copy this zip to your sdcard by mounting your sdcard in recovery.

Reboot into bootloader.

adb reboot bootloader

now check that your device bootloader shows as Relocked.

If it doesn't show Relocked.

Try this method to Relock it.

fastboot flash unlocktoken unlock_code.bin

YOU MIGHT HAVE TO RE-DO THE ENTIRE PROCESS OF HTCDEV WAY OF UNLOCKING AGAIN AT THIS POINT. WORKS 100% OF THE TIME

Accept the disclaimer by HTC and let it reboot.

Now pull the battery, and then reboot into bootloader by pressing volume down button and then pressing the power button.(You should keep the volume down button pressed till you boot into the bootloader)

Now relock your bootloader again.

fastboot oem lock (hit enter)

fastboot reboot-bootloader(hit enter)

Now your device will start reading the zip then it will check it for a signature and will ask you if you want to flash.

select yes by pressing the volume up button.

Let it finish.

You may see some error in the end, stating fail. Don't worry.

Just reboot your device.

You are done.

Now you have a Hboot version 1.49.007.

CREDITS: IN NO PARTICULAR ORDER,

Clockworkmod, Chad.goodman, Flashmaniac, happyhallsy8, frigid, and many more.