[Windows Phone 7 Development and Hacking] sandman01:
Hi Dev's!

after finding out how to create my own rom I will explain the progress for everyone.

[1st step - rebuild nbh with parts from different original roms]

At first of all make sure you have RSPL/HSPL installed before you try to create/flash your rom

Download a original rom for your device to start-up

Extract the contens of the *.exe and copy the RUU_signed.nbh to a directory you like (working direktory were you can collect all tools, data during our costumation process)

use nbhTool to extract the *.nb parts from the RUU_singed.nbh

e.g.

nbhtool.exe -split RUU_signed.nbh Schubert.txt

A textfile file for nbhTool is generated modify it forthe contens you like to rebuild afterwards (e.g radio or os) ==> see attachment for a demo txt file)

rebuild a RUU_unsigned.nbh with nbhTool

e.g.

nbhtool.exe Schubert.txt

and flash it with an RUU (maybe use a costum RUU for task 29 or 00)

finish

[2nd step modify registry ==> DeveloperUnlock]

Tested official Schubert rom's Nodo & Mango (Europe & Asia) :-)

open htcrie_0.7.0.35 and open os.nb (Version includet in WP7 Costum Rom Manual Kitchen)

do not use other versions of htcRIE (e.g. htcRIE_0.7.0.46) cause there is a huge difference when inserting IMGFS into os.nb

click on IMGFS on the left side and click Image => Save Files...

IMGFS.bin should be saved at the location of your choice

use XiDump to extract the contens of IMGFS.bin

xidump.exe imgfs.bin

The contens should be extracted in the folder IMGFS

go into this folder and copy default.hv to a save place for modifications (thats a hidden file!!)

Drag&Drop default.hv over HVEdit.exe

now a new file is created called default.hvm

delete the default.vh to prevent convusion

edit default.hvm with a text editor

[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""

create Key wich doesn't exists at the moment

[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
"DeveloperUnlockState"=dword:1

you can also check/add the key for maximum unsigned apps

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

save the file and drag&drop defaul.hvm over HVEdit.exe

a new default.hv is created wich contains you modifications

copy default.hv into the IMGFS folder wich was created before

rename IMGFS folder to "dump"

now rebuild imgfs with ImgFromDump

ImgfsFromDump.exe IMGFS.bin IMGFS-rebuild.bin

copy IMGFS-rebuild.bin to a save folder & rename it to IMGFS.bin

go to htcRIE-0.7.0.35) and implant IMGFS with following shell comando

htcrie.exe replace /I imgfs.bin os.nb

next open os.nb with a hex editor and search for following HEX-String

C7 14 02 80 01 04 00

rewrite the next 4 HEX-Numbers with

5D D6

save the file

finished

For information the hex code wich is generated from htcRIE compared with the original os.nb hex code.

If you search for differences in this two bin files this was the first one of 14 differences.

Don't know why the others are different but work

for NoDo

| htcRIE_0.7.0.35 | Original
012C72E8 | C7 14 02 80 01 04 00 8B | 012C72E8 | C7 14 02 80 01 04 00 5D |
012C72F0 | FE FF FF C0 20 00 00 FF | 012C72F0 | D6 FF FF C0 20 00 00 FF |

for Mango

| htcRIE_0.7.0.35 | Original
01106830 | C7 14 02 80 01 04 00 8B | 01106830 | C7 14 02 80 01 04 00 5D |
01106838 | FE FF FF C0 20 00 00 FF | 01106838 | D6 FF FF C0 20 00 00 FF |

[3rd step get ready for cab updates/customation]

Use DefaultCerts.dat & MSDefaultCerts.dat (from XBmod-Yuki's HD2 Rom) in your IMGFS to be ready for costum cab updates

[4th step adding OEM apps]

simply copy & overright the files from IMGFS Partition with the *.xap's, *.xml's,...

thanks to itje for mentioned that

thx to itje for the instruction how to dump IMGFS-Contens from OMEGA/ETERNITY roms

[5th step adding additional languages]

thx to itje for extracting/preparing language packs from ETERNITY rom

Just copy & replace in IMGFS

Languages-Files

[6th step change wallpaper]

thx to -WP7User- to explain the necesarry steps for changing the wallpaper

Copy the pictures you like to have in your rom into IMGFS

add or modify values in default.hv

don't forget the comma if there is more than one wallpaper!!

[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\WallpaperSets]

for changing the defauft lookscreen wallpaper look into user.hv and change

[HKEY_CURRENT_USER\Software\Microsoft\Photos\LockScreen]

XSPL

XSPL posted by Cotulla

Tools

nbhTool posted by ted973

Htcrie posted by Heathcliff74

NbhImageTool posted by DaG

XiDump posted by bepe

ImgfsfromDump posted by airextreme (v2.4.0 won't work for me)

HvEdit posted by ceesheim

Kitchen

WP7 Costum Rom Manual Kitchen posted by xda2_haseeb (instruction for IMGFS editing)

WP7build posted by tslany (only for information)

Registry Keys

Cab Updater

Omega OEM apps

FYI

The attached text file contains all nb entries to rebuild the whole rom expect the spl

You only need the line for radio.nb or os.nb, the rest could be deleted if you do not need them

flash devices only if you know what you are doing, i take no responsible for any damage

thx to itje for creating a nbhMerge textfile for HTC Trophy