[P3470 General] poldo964:
FIRST OF ALL I'M NOT RESPONSABLE OF ANY KIND OF DAMAGE OCCURRED DURING THIS PROCEDURE.

DO IT AT YOUR OWN RISK!​

Ok, go on now

This guide assumes that you have already dumped your original ROM.

For how to dump your ROM, follow avat@rh's wiki until obtain imgfs_raw_data.bin

What we need:

Official Pharos WWE ROM

tadzio tool (by tadzio)

XIPPORT tool (by bepe)

bPatch (by suracha)

HTC rom tool (by Dark Simpson) with pharos settings added by me

ROM update utility

I suggest you to create a folder for each tool (eg. C:\tadzio C:\XIPPORT C:\HTCRomTool C:\RomUpdate)

and unzip the tools in the respective folders. bPatch.exe is inside tadzio tool.

Download the official rom, right clic on "RUU_Pharos_HTC_WWE-ME_1.11.456.1_4.1.13.59_03.15.90_BLUE_Ship.exe", select "Open with WinRar" and extract RUU_Signed.nbh in "C:\tadzio"

Open a command prompt, go in "C:\tadzio" and type this command:

C:\tadzio>nbhextract ruu_signed.nbh

this tool extract the content of the .nbh file, if its all ok you should have these files now:

00_GSM.nb
01_IPL.nb
02_SPL.nb
03_MainSplash.bmp
03_MainSplash.nb
04_OS.nb

Copy 02_SPL.nb and 03_MainSplash.nb to C:\HTCRomTool and 04_OS.nb to C:\XIPPORT

ok, now we have official SPL and MainSplash ready to use but we need the OS too

To obtain exactly the original OS we need to modify some registry keys inside "boot.hv" according to our language.

This file is located in the XIP section, so we should extract the xip files from 04_OS.nb, modify boot.hv and re-inject the xip in the os.

Don't worry, we have another solution because we already have the original xip obtained from dump process (avat@rh's wiki)

The XIP section is Part01.raw

Copy Part01.raw to C:\XIPPORT and rename it to "xip_out.bin"

Run xipport.exe, change the offset to "00313800", the filename to "04_OS.nb" (see pic01 at the end of post for detail) and press "write xip_out.bin to:"

This tool write the xip section (xip_out.bin) in the OS (04_OS.nb) at the specified address (00313800).

Now we have 04_OS.nb with our original XIP

Rename 04_OS.nb to OS.nb and copy it to C:\tadzio

Copy imgfs_raw_data.bin obtained from dump process to C:\tadzio

Open a command prompt, go in C:\tadzio and type this command:

C:\tadzio>imgfstonb imgfs_raw_data.bin os.nb os-new.nb -bigstoragemove

This tool recostructs the OS (os-new.nb) from our dumped image (imgfs_raw_data.bin)

Now we need to patch the size of OS-new.nb, to do this type this command:

C:\tadzio>bPatch.exe -1 0xFF 0x632D000 OS-new.nb

The size of patched file must be 99.1 MB (103,993,344 bytes)

Ok, our OS is ready to use!

Copy OS-new.nb to C:\HTCRomTool and run "htcrt.exe"

This tool creates and signes a .nbh file from a .nb file. I suggest you to create 2 .nbh, one for OS and Spalsh (eg. OS.nbh)

and one for SPL (eg. SPL.nbh).

Select "ROM builder" tab and fill the fields like screenshots at the end of post:

OS.nbh (see pic02 for detail)

SPL.nbh (see pic03 for detail)

Press "Build!", type the filename without extension and press "Save"

Flash OS.nbh first so if something wrong in the image and the device don't boot you'll be able to flash any other ROM; while, if it boots ok, then flash the SPL.nbh.

Copy OS.nbh to C:\RomUpdate, rename it to ruu_signed.nbh, run "ROMUpdateUtility.exe" and follow the instructions

At this point we have flashed OS and Splash, if its all ok and the device boot right, then you can flash SPL

Delete ruu_signed.nbh, copy SPL.nbh to C:\RomUpdate, rename it to ruu_signed.nbh and run "ROMUpdateUtility.exe"

That's all!! Now you have completely restored your device to its original condition.

I've tested this procedure, worked fine for me and i hope for you too

.

.

.

bye all :)

.

.

.