yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Development and Hacking] rudelm:
@sandman01: where did you get the unofficial untouched european HTC HD7 firmware?

I would also love to look inside the rom cooking process. AFAIK there are only a few tools here on XDA, that allow rom manipulation up to a certain degree. And the custom roms need the RSPL or HSPL boot loader to flash the unofficial roms, because the official roms are signed.

However, I did not ever see any of the original roms, which brings me to my first question: where can I get them? :)
[Windows Phone 7 Development and Hacking] sandman01:
Hi rudelm!

with RSPL/HSPL you can flash every official HD7 rom.

Look in the HD7 Rom development section for roms you like to analyse

My only requirement is the german language is included in the rom. :-)

@drkfngthdragnlrd

thanks for correcting my mistake I've edited my post :o
[Windows Phone 7 Development and Hacking] thesecondsfade:
Are these WP7 Rom Tools not what you're looking for?
[Windows Phone 7 Development and Hacking] sandman01:
Not really,

HTCrie is a good Tool but it isn't able to modify nbh files

If you want rom modifications you have to extract the contens and do you work.

e.g. extract os.nb or gsm.nb open it again with HTCrie and modify it

you can include other IMGFS, aso. when opend os.nb with the tool

Howerver you can't combine the *.nb files to a *.nbh when the work is done

For that operation you need something like the NbhImageTool from DaG, but with modifications (mayby the right certificat) to combine the *.nb files to an signed/correct flashabel *.nbh

see first post updated with the tools I already use
[Windows Phone 7 Development and Hacking] rudelm:
about the RSPL/HSPL stuff: I know, OSPL is the one that flashes only the official firmware files. I'm currently flooded with all these new links to more and more roms, it's so damn confusing :confused:

Maybe these tools are the right way to look for cooking roms? http://xdaforums.com/showthread.php?t=1240455
[Windows Phone 7 Development and Hacking] sandman01:
You are right it's a little bit confusing.

The link you mentioned needs a Costum rom with two modified certificates to work for us.

(DefaultCerts.dat & MsDefaultCerts.dat)

So you wil need a costum rom to be able to make your own update packages. :-(
[Windows Phone 7 Development and Hacking] sandman01:
custom roms build process solved

see post 1 for tools
[Windows Phone 7 Development and Hacking] sandman01:
Guide

re-wrote my initial post to a guide for everyone!!
[Windows Phone 7 Development and Hacking] DavidinCT:
Just a quick question....

Could this be used on.... Say one of the HTC leaked mango roms to put in a reg key or 2, so when you flash it's pre-unlocked ?
[Windows Phone 7 Development and Hacking] sandman01:
For the moment I have only extract radios and os files and flash it for my purpose

tomorrow I will try to modify default.hv (regestry) to get an unlocked NoDo rom and if all seems good I will also try to flash mango from the official RUU on my HD7 (os only)

At the moment I don't know why it shouldn't work.

the issues with bricked bootloader in Cotullas XSPL thread comes from flashing the 4.x SPL which I do not include. So I think Mango isn't a problem only the new SPL 4.x

But if you were faster than me, try to flash an unmodifierd Mango os.nb and tell me if there could be built/flashed properly.

If you like to modify the regestry dump the imgfs from the os.bin andd edit the default.hv with HVEdit (see the links in the first post)

rebuild IMGFS & os.nb and than merge it together wit nbhMerge to get a flashable *.nbh

Hope that works

For now I will go to sleep

good night from austria :-)

FYI:

yesturday I had troubles flashing a os only rom cause I use ansars costum NoDo rom wich leads in an error after flashing, don't know why.

The original RUU os.nb's worked today without issues.

At the moment I flashed the latest 1.69 NoDo rom with the 5.69 radio from the Mango rom ==> works great
[Windows Phone 7 Development and Hacking] DavidinCT:
Thanks, with my US HTC Trophy, there is no backup (NoDO) rom available.

I tried the leaked HTC mango rom and I liked the firmware updates/radio update. The problem is I can't unlock it. So, it would be a dream if I could take the mango rom and pre-unlock it so when it's flashed, it's already to go :)

Thanks for looking into this, can't wait to see if you have any luck here. Could make unlocking phones for people really easy.
[Windows Phone 7 Development and Hacking] sandman01:
[How to] for registry modification on the first post :-)
[Windows Phone 7 Development and Hacking] sandman01:
Tested it with official Mango rom & implanted Developer Unlock & prevent from relocking

Also the trick with CustClear in /Windows

Work in the same way lik NoDo, only the hex offset were the differences are in os.nb is different
[Windows Phone 7 Development and Hacking] itje:
Have u been able to change the boot logo on the 4.05 mango rom?

Good guide, I missed a few parts with the hex editing to complete my rom, so thx mate :-)
[Windows Phone 7 Development and Hacking] sandman01:
Havn't tried it jet.

I will test to change the boot logo when I'm back from work

Did you mean the HTC boot logo or the Windows Phone Animation at the beginning?
[Windows Phone 7 Development and Hacking] itje:
I tested the boot logo, but I can't access the setting needed in htcrie to add new. I have not tested this on NoDo rom, so I am not sure if its something in my setup or if its "locked" in Mango

Have not looked for the animated one, but I imagine I will try change that too :p
[Windows Phone 7 Development and Hacking] sandman01:
Yesturday I tried to change the boot logo but failed also.

Extracting Logo.bin & the spash screens itself it not a problem, however reinserting with the right compression is.

imgfsFromDump says that the compressin DLL doesn's support the right compression methode. :confused:

(tried the v5 &v7 dll)

BTW. the Logo.bin is strange, because its very small compared to the 2 big pictures which it should contain.

And its mostly filld with 00 & FF (viewed in hex editor)

Maybe the pictures are stored on an other place as well
[Windows Phone 7 Development and Hacking] DavidinCT:
When you flashed, was it unlocked ("full unlock", unlimited unsigned apps) ?

If so, how do I do it to the verizon rom ?
[Windows Phone 7 Development and Hacking] sandman01:
Not sure, for maximum unsinged Apps you have to check/add additionaly

[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff

in default.hv

I havn't tested other roms than original Schubert european roms yet.

But give it a try & report back.

If you only flash a os.bin nothing could go wrong, you have always the possibility to flash back the original verizon rom or any other rom wich is supported via R(H)SPL
[Windows Phone 7 Development and Hacking] itje:
This is the txt file needed for nbhmerge for HTC Trophy, perhaps u can add it to your main post?
[Windows Phone 7 Development and Hacking] cina:
How to add language

Is there a method to add other languages to ROM?

It was available to add a language while updating from NoDo to Mango with a registry entry. Zune downloaded the required files. It was damn easy.

I see that some MUI files needed to be included in ROM but what? DFT did it (7713, 7714, 7720 has a lot of langs included). Is there a guide for that?

Regards,

Cina.
[Windows Phone 7 Development and Hacking] DavidinCT:
Unfortunately it's not that easy, There is no factory NoDO rom for the Verizon Trophy (Spark_W) and it's not supported under the SPL. Once I go, there's no rolling back. :(

I would love to try this to see if I COULD get it working...
[Windows Phone 7 Development and Hacking] sh4d0w86:
where can i get CustClear.provxml?

and thank you for this guide, sandman01.

sh4d0w86.
[Windows Phone 7 Development and Hacking] dotcompt:
adding XAP files

Hi guys,

Anyone knows how to add XAP files. I´ve managed to use HTC Omega HUB by replacing the one in the ROM but i´d like to add some XAPs files like Tango or HTC Location. I think we need to add something to the mpap_HTC_MASD_01.provxml but no luck so far.

Any ideas?
[Windows Phone 7 Development and Hacking] itje:
Attached

Just copy all the content in the package/folder that Fotball provided, the xap, xml, dsm & provxml to your dump folder, and simply overwrite the old ones.

Camera improvement won't work though, as it's designed for other chipset.

Only drawback here is that marketplace will promt to update HTC apps, and if you do then they will revert from 2.x builds to 1.9...

Perhaps there is some reghacks for it, but I have not looked for them yet.
[Windows Phone 7 Development and Hacking] sandman01:
Than its a thrill for you if you want to try it. :)

I'm not familiar with Trophy but as long as you can get R(H)SPL your risk is very low to brick your device.

Is there no rom for your device yet, for roll back to an official state? (7004 or higher)

You do not need a Nodo rom, only a rom were you can get your phone back into operating if your created rom faild to load.

And always remember, do only flash os.nb or radio.nb,...

never include spl.nb which coud brick your device (full & halve brick)
[Windows Phone 7 Development and Hacking] sandman01:
I've added a CustClear.provxml to the first post:

- DeveloperUnlock

- prevent relocking

- max. unsigned Apps
[Windows Phone 7 Development and Hacking] sandman01:
Updated with instructions for costum cab update possibility & how to add oem apps (currently available from HTC Omega)
[Windows Phone 7 Development and Hacking] sh4d0w86:
thank you for the CustClear.provxml file.

sh4d0w86.
[Windows Phone 7 Development and Hacking] sinakordi:
Tankyou very mach

I got a Cook-ROM:o:cool:
[Windows Phone 7 Development and Hacking] itje:
I will provide info on adding more languages to your rom's sometime tomorrow

I have now added these to my 7720.68 rom :

Norwegian

Finnish

Danish

Swedish

Netherland

Polish
[Windows Phone 7 Development and Hacking] sinakordi:
how to edit oder part of rom?

nk

sldr1&2

bldr

logo
[Windows Phone 7 Development and Hacking] DavidinCT:
Does this REQUIRE RSPL/HSPL (HSPL / RSPL for HTC WP7 First Generation) ?

If so, I'm out....No RSPL/HSPL support for the Spark_w (Verizon HTC Trophy) :(

Can I build a rom and flash with just a Dev Unlock ?
[Windows Phone 7 Development and Hacking] sandman01:
Building your own rom does need R(H)SPL because we can not sign the rom in the right way.

I'm sorry you have to wait until you get an hacked bootloader or Spark is supported by Cotullas XSPL
[Windows Phone 7 Development and Hacking] sh4d0w86:
having problems creating a Custom ROM.

i have found the problem to be with inserting IMGFS.bin into OS.nb with htcRIE.

i extracted OS.nb from RUU_Signed.nbh.

opened OS.nb with htcRIE and extracted IMGFS.bin.

with no changes, inserted IMGFS.bin back into OS.nb.

created RUU_Unsigned.nbh with OS.nb and applied HEX edit.

ROM fails to boot.

so, my question...

how do i reinsert IMGFS.bin into OS.nb properly?

thanks,

sh4d0w86.
[Windows Phone 7 Development and Hacking] kounadisk:
I have the same problem too... Just a black (???) screen on boot! :(
[Windows Phone 7 Development and Hacking] itje:
Remember to hex edit the os.nb after inserting imgfs.bin, if it's not done correctly your rom won't boot.
[Windows Phone 7 Development and Hacking] btxakita:
Soon,I'll post a tool to decompress/compress Logo and SLDR part

then,the next is other parts.

I and ted973 are trying to make a new simple nbsplit and nbmerge tool.

I think it won't be a long time to make things easier.:D
[Windows Phone 7 Development and Hacking] sandman01:
Black screen looks like you use the wrong version of htcRIE see first post!!

with the actual version I got the same issue therefore I switched back because the older version didn't change so much when implnating IMGFS into os.nb

I have problems with roms from ansar, so pleas check if you really use original RUU's
[Windows Phone 7 Development and Hacking] sh4d0w86:
thank you. that solved the problem. it was indeed because of the wrong htcRIE version.

the correct htcRIE can be found in the 'WP7 Custom ROM Manual Kitchen' package download.

sh4d0w86.
[Windows Phone 7 Development and Hacking] btxakita:
Have a look at this maybe this can do sth with the new Omega ROM,if you can manually extract the binary image files

http://xdaforums.com/showpost.php?p=17517765&postcount=3
[Windows Phone 7 Development and Hacking] itje:
Here is aprox 16 languagefiles dumped from Eternity_HTC_Europe_1.08.401.02

0405 Czech

0406 Danish

0407 German_Standard

0408 Greek

040B Finnish

040C French_Standard

040E Hungarian

0410 Italian_Standard

0413 Dutch_Standard

0414 Norwegian

0415 Polish

0419 Russian

041D Swedish

0809 English_United_Kingdom

0816 Portuguese

0C0A Spanish

0409 World Wide English

They are all ready for dumping into your imgfs folder...and click yes to overwrite the older ones.

DOWNLOAD
[Windows Phone 7 Development and Hacking] dotcompt:
Thanks a lot mate. How did you manage to dump the ROM?
[Windows Phone 7 Development and Hacking] hankbizzo5:
Nice work!!!!! Just made a stock 7004 t mobile rom unlocked and ready to get some oem cabs..... Updating to get ready for mango!!!!! Everything went without a hitch well explained.....
[Windows Phone 7 Development and Hacking] itje:
dump ruu:

nbhTool -split ruu_signed.nbh Schubert.txt

dump os.nb:

xidump -b os.nb

I added the tools, with bat files including the commands.
[Windows Phone 7 Development and Hacking] nhathoa:
After dump imgfs.bin we have Imgfs folder, of course rebuild it and flash it--> phone boot ok.
[Windows Phone 7 Development and Hacking] sandman01:
Today I managed to decompress modify and compress the logo in the logo.bin file

all you have to do is save the bitmat in original format & check if the header is still the same.

in my case I have to change 4 hex values (value 7-10) to 84 03 so it looks like the charge.bmp

After that change I could compress the picture without crash :)

Next step is implanting the the LOGO.bin into os.nb

I'll keep you updated
[Windows Phone 7 Development and Hacking] :
I followed the steps to a T and hit a snag.

using xidump v1.0 beta in CMD prompt it continually fails to init decompression.

So I dumped all files using htcRIE.exe (selected on left IMGFS and selected all files on right and saved in dump folder)

I modified both .hv files converted and replaced

I want to rebuild the imgfs.bin and again imgfsfromdump.exe returns compression dll does not support compression type 'xph'.

What am I doing wrong? Any help appreciated
[Windows Phone 7 Development and Hacking] sandman01:
You have to use the right comression dll as mentioned. :-)

There are 2 dll's coming with e.g. htcRIE the one to open files is the ce5 version and the one to de/compress files ist the ce7 version.

only the version 7 support XPH compression

see my attachment and rename the one you need to cecompr_nt.dll
[Windows Phone 7 Development and Hacking] Zloy Pryanik:
And what program / ​​team that you were able to replace logo.bin in os.nb ?

Thanks ! :)
[Windows Phone 7 Development and Hacking] sandman01:
I'm working with

WPBinary Tool

but I can't implant the Logo.bin into os.nb at the moment.

So I'm also in search of solutions for that.
[Windows Phone 7 Development and Hacking] :
Almost got my first one finished. Just got to put a few finishing points on it.

Where is that I change the Phone Info in the settings/about screen? (specifically Name & Model)

I have searched every XML and the entire registry without luck and Google hasn't yielded any assistance either. So I turn to my friends here.

Thanks.
[Windows Phone 7 Development and Hacking] itje:
[HKEY_LOCAL_MACHINE\System\Platform\DeviceTargetingInfo]
"MODeviceName"="whateveruwant"
"OEMDeviceName"="PD29100"
"ROMVersion"="4.05.401.02"
"OemName"="HTC"

[HKEY_LOCAL_MACHINE\Software\HTC\operatorpkg]
"Version"="7.8.401.20021"

u can find them easily in default.hv
[Windows Phone 7 Development and Hacking] btxakita:
It's ok now.

that's because I've used the wrong bitmap format.Now, it's ok.

With any other bug appears,fell free to pm me.

New Version:

http://xdaforums.com/showpost.php?p=17517765&postcount=3
[Windows Phone 7 Development and Hacking] hankbizzo5:
Ok looks like i hit a big bump in the road..... First i got a leaked (official mango rom) the hex compare of the original os.nb and the rebuilt os.nb have way to many changes..... Would like to see if anyone has yet to notice this yet?????
[Windows Phone 7 Development and Hacking] sinakordi:
please tell me

how to enable cab sender in my rom

and how to enable internet explorer xap installer

tankyou pro's
[Windows Phone 7 Development and Hacking] hankbizzo5:
You need to add the files DefaultCerts.dat & MSDefaultCerts.dat (found on post #1) into the folder IMGFS the same one that you put the file default.hv into ..... You can use cab sender to load oem .cab files for any other .cab files you will need the cert from the maker..... Example if you wanted to use a .bat such as the theme from xbmod you would need his personal cert file first.....
[Windows Phone 7 Development and Hacking] sandman01:
I know.

I started with an official NoDo rom and with the newest htcRIE. After a few tests without success I tried the older version of htcRIE exactly like it was discribed in the HD2 forum. Because I saw the difference between implanting with newest version (black screen on boot) and the older one (hangs at HTC Logo) Conclusion, the differences reduced to 14.

This was the starting point I was looking for.

I tried always changing 6 different hex digits from the end untill I found the 4 at the beginnning which causes the rom to boot.

Thats all :-)

After a few test I also tried to start with an Mango rom and as you can see the differences are much more than NoDo rom, but the key are exactly the same 4 hex digits.

Only try & error
[Windows Phone 7 Development and Hacking] ted973:
these two bytes are LOG Blocks end Flag, so if they are diff from stock rom your device would not boot, these blocks are really suck, odd format makes me mad!
[Windows Phone 7 Development and Hacking] sandman01:
It seems you know much mure about the structure of nbh files and maybe also nb's

I'm very interessted in understanding how HTC files are structured.

Every time I look into these files I can see a few infos like header,... but I dont know what they are for exactly.

The information must be there, but I don't understand the language at the moment to see were a partiotion start point is defined in the header,...

If someone can provide us with more detailed informations it would be fine.
[Windows Phone 7 Development and Hacking] sinakordi:
hi

ok

how to add xap installer on internet explorer
[Windows Phone 7 Development and Hacking] hankbizzo5:
I know little to nothing about how to read hex format will try to do some searching to find how to correct things..... Hope someone with some exp will step up and help us.....
[Windows Phone 7 Development and Hacking] sinakordi:
how to add xap files in my cooked rom
[Windows Phone 7 Development and Hacking] hankbizzo5:
Found the hex strings to edit on the rebuilt os.nb from the official mango Wahoo !!!!! Now I am unlocked with cab sender on the official rom..... Few more things to add and i am think i will release it.....

Sandman01 Big thanks for the tutorial!!!!!
[Windows Phone 7 Development and Hacking] :
default.hv

I'm trying the exact same thing, however, I can not get the user.hv nor the default.hv files to extract. Is there a secret that I'm unaware of?

And I can't seem to figure out how to add xap to my ROM.

Any Help?

Thanks
[Windows Phone 7 Development and Hacking] hankbizzo5:
Did you use xidump to dump the IMGFS.bin ???? If yes then they will be in the folder created IMGFS...... Just a quick heads up (this is what happened to me) rom will be locked on update to mango..... Not 100% sure but it appears the update changes alot of the reg values and even with custclear.provxlm in windows folder connection setup will not unlock..... This is why i used the 4.05.531.03 rom but there are still a few kinks to work out but will be ready in the next few days.....
[Windows Phone 7 Development and Hacking] :
Yes, I'm using xidump and xidump v1.0beta and both give me every file but default.hv and user.hv. I am using the new mango t-mobile ROM 4.05.531.03. When I have the os.nb file open with htcrie (7.0.35) I can see the files in there, it's just that I get them out of the imgfs.bin file. Any Idea why? Can I use other .hv files from other mango roms?
[Windows Phone 7 Development and Hacking] dotcompt:
Hi mate,

default.hv and user.hv are hidden files so you need to go to the options of windows explorer under tools and change to "show files and hidden folders" or something like that
[Windows Phone 7 Development and Hacking] sinakordi:
please tell me

how to add Persian language to my cooked rom?:confused:

Persian language

or

Persian Keyboard
[Windows Phone 7 Development and Hacking] -WP7User-:
Okay, I managed to get my new Logo's into a .bin file with WPBinaryTool. But how can I replace this new .bin file with the LOGO.bin which already is in the os.nb? How did you manage that, sandman?
[Windows Phone 7 Development and Hacking] sandman01:
Please read befor posting questions!!

I've still no solution for this.

However I didn't spend much time because I'm rarely at home for testing
[Windows Phone 7 Development and Hacking] -WP7User-:
I read your post (actually, I read the whole thread). I just thought that you managed to get it into your Rom. Sorry for asking you...!

But you did a great work with your tutorial. I could provide you with a way how to add wallpapers to your Rom if you want...
[Windows Phone 7 Development and Hacking] sandman01:
If you post your solution here, and I'm allowed to pin your "HOW-TO" on the first post, all the users who read my thread would be very appriciated. :D

I'm more or less one of the developers who like extra lite roms without much modding, but the possibility to do everything.

remove unnecessarry stuff but add cab update, dev unlock,...
[Windows Phone 7 Development and Hacking] -WP7User-:
Yeah, no problem. I'll send you a PM!
[Windows Phone 7 Development and Hacking] :
Thank you for assit. I realize they are hidden files. My PCs are always showing hidden files (however I did confirm it is). I've done this with success several times already with other ROMs, just not with the new T-mobile ROM.

I tried to use the .hv files from other ROMs. I copied them and when I went to paste them into my workimg IMGFS dump folder, it asked to replace the existing ones. They are there, I'm viewing hidden files, I've tried on 3 different PCs, I just can't see them no matter what I do.

Any advice?
[Windows Phone 7 Development and Hacking] sh4d0w86:
what you need to do is...

[uncheck] Hide protected operating system files

you want those files unhidden.

sh4d0w86.
[Windows Phone 7 Development and Hacking] -WP7User-:
Try to uncheck the box "Hide protected system files" (or whatever it's called in English - my PC is in German :)) I had to do this...

EDIT: Damn! Too slow :D
[Windows Phone 7 Development and Hacking] :
thank you so much man! That got it. WOW can't believe I left that checked.

Thanks again
[Windows Phone 7 Development and Hacking] hankbizzo5:
Not sure if it is the same for most roms but on mine you can change a file mologo.bmp to change the second splash screen in the dump..... In my case it is the t mobile logo..... Still working on the htc logo..... Also for wallpaper you can rename files to Wallpaper_01.jpg ,Wallpaper_02.jpg ect and replace the old ones in dump.....
[Windows Phone 7 Development and Hacking] aramadsanar:
well, i've built a rom with your guide, but it resulted corrupt image error, somebody help me :(