[Guide] build custom rom for HTC devices [NoDo & Mango tested]

Search This thread

btxakita

Senior Member
Jul 18, 2008
186
9
Nanjing
hi.baidu.com
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
 
I have the same problem too... Just a black (???) screen on boot! :(

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
 
Last edited:
  • Like
Reactions: sh4d0w86

sh4d0w86

Senior Member
Apr 15, 2010
1,761
795
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

thank you. that solved the problem. it was indeed because of the wrong htcRIE version.

I have the same problem too... Just a black (???) screen on boot! :(

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

sh4d0w86.
 

itje

Retired Moderator
Jun 20, 2007
4,357
192
Kleppe
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
 
  • Like
Reactions: sh4d0w86

dotcompt

Retired Recognized Developer
Feb 24, 2008
2,112
968
Porto
twitter.com
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

Thanks a lot mate. How did you manage to dump the ROM?


Sent from my Transformer TF101 using xda premium
 

hankbizzo5

Senior Member
Nov 13, 2008
536
221
Ct,Eastern
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.....
 

itje

Retired Moderator
Jun 20, 2007
4,357
192
Kleppe
Thanks a lot mate. How did you manage to dump the ROM?


Sent from my Transformer TF101 using xda premium

dump ruu:
Code:
nbhTool -split ruu_signed.nbh Schubert.txt

dump os.nb:
Code:
xidump -b os.nb

I added the tools, with bat files including the commands.
 

Attachments

  • NBHTool.zip
    9.9 KB · Views: 30
  • XiDump.zip
    28 KB · Views: 56
Last edited:

nhathoa

Senior Member
Dec 5, 2006
1,036
218
After dump imgfs.bin we have Imgfs folder, of course rebuild it and flash it--> phone boot ok.
 
Last edited:
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
 
  • Like
Reactions: dotcompt and itje
A

aghnokneemoose

Guest
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
 
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

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
 

Attachments

  • cecompr_nt.zip
    26.9 KB · Views: 35

Zloy Pryanik

Senior Member
Jan 10, 2010
350
404
Moscow
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
And what program / ​​team that you were able to replace logo.bin in os.nb ?
Thanks ! :)
 
A

aghnokneemoose

Guest
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.
 

itje

Retired Moderator
Jun 20, 2007
4,357
192
Kleppe
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.

Code:
[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
 

hankbizzo5

Senior Member
Nov 13, 2008
536
221
Ct,Eastern
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?????
 

hankbizzo5

Senior Member
Nov 13, 2008
536
221
Ct,Eastern
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.....
 
  • Like
Reactions: sinakordi

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    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.
    Code:
    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.
    Code:
    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
    Code:
    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
    Code:
    [HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
        "PortalUrlProd"=""
        "PortalUrlInt"=""

    create Key wich doesn't exists at the moment
    Code:
    [HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
        "DeveloperUnlockState"=dword:1

    you can also check/add the key for maximum unsigned apps
    Code:
    [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
    In addition to that you can copy the CustClear.provxml into the root of the IMGFS folder
    make sure it is hidden & write protected
    the CustClear will be directly in the Windows folder after flashing
    so no need to copy CustClear from Ringtones to Windows to unlock the phone after an update via Zune
    rename IMGFS folder to "dump"
    now rebuild imgfs with ImgFromDump
    Code:
    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
    Code:
    htcrie.exe replace /I imgfs.bin os.nb
    next open os.nb with a hex editor and search for following HEX-String
    Code:
    C7 14 02 80 01 04 00
    rewrite the next 4 HEX-Numbers with
    Code:
    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

    Code:
             | 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
    Code:
             | 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
    dump ruu:
    Code:
    nbhTool -split ruu_signed.nbh Schubert.txt

    dump os.nb:
    Code:
    xidump -b os.nb

    [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!!
    Code:
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\WallpaperSets]
    for changing the defauft lookscreen wallpaper look into user.hv and change
    Code:
    [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
    2
    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
    2
    Thanks a lot mate. How did you manage to dump the ROM?


    Sent from my Transformer TF101 using xda premium

    dump ruu:
    Code:
    nbhTool -split ruu_signed.nbh Schubert.txt

    dump os.nb:
    Code:
    xidump -b os.nb

    I added the tools, with bat files including the commands.
    1
    I think you meant "cookers" lol. I don't think there are any "publicly" available tools atm.
    1
    it says HTC devices in the title...

    Nope. The forum title indeed says HTC but the news page article by egzthunder1 presents it like all devices.