yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Fefe:
I apologise if this is a stupid question, but I have to ask...

Is it possible to use mui-images from a QVGA-device on a VGA-device?

The problem is that I'm trying to figure out how to make a norwegian WM5 Phone Edt-rom for the QTEK 9000, and it seems that it does not exist any norwegian shipped ones for VGA (just for QVGA, the QTEK 9090). :?

And it's still not a solution for using the emulator-images, right?
[Windows Mobile Software Development] 3space:
Any progress in increasing available Program/Storage memory

Hey guys,

Just wondering whether any of you have achieved a lower program/storage memory usage by streamlining your ROMs.

Comments?

Thx.
[Windows Mobile Software Development] ady:
I haven't look at the actual code but I have a question. why not simply concatenate all the sections while dumping the rom insteat of taking all this pain?
[Windows Mobile Software Development] mamaich:
I've fixed the bug and uploaded a new version.
[Windows Mobile Software Development] KTamas:
Where did you upload it? :shock:
[Windows Mobile Software Development] mamaich:
I've fixed the bug and introduced a new one. Now I've attached the correct version to the first post.
[Windows Mobile Software Development] KTamas:
Ah....thanks.
[Windows Mobile Software Development] TofClock:
Great thanks Mamaich ... this version works fine :)
[Windows Mobile Software Development] judycao:
does WM5 ROM editing tool support T-Mobile MDA compact II

does WM5 ROM editing tool support T-Mobile MDA compact II,is there someone can teach me how to use T-Mobile MDA compact II's Camera drivers replace Dopod 818 Pro's,thanks very much.
[Windows Mobile Software Development] judycao:
hi psneddon

can you tell me how to editing the rom for the T-Mobile MDA Compact 2 using the addfile/delfile method,i want to replace it's Camera drivers use Dopod 818 Pro's.

my method:I first use aWizard tools to extract the rom

step:

prepare_imgfs.exe nk.nba -nosplit

viewimgfs.exe imgfs_raw_data.bin -nosplit

...modify "dump" directory as you need...

BuildImgfs.exe

make_imgfs.exe nk.nba

, then I use the edit tools to add/remove files. then I use aWizard tools to flash it back. but T-Mobile MDA Compact 2 hold at splash screen .
[Windows Mobile Software Development] dherrero:
Hi,

I want to extrack the file \windows\kbbdrv.dll but it dump a directory with some files inside. Whay can i do?

thanks
[Windows Mobile Software Development] harlemyin:
this dll is as module saved in the nbf.

i think u can just put the folder into ur new nbfs dump folder, then BuildImgfs.exe , it should work.
[Windows Mobile Software Development] harlemyin:
there are 2 ways to edit the rom

1.

prepare_imgfs.exe nk.nba

viewimgfs.exe imgfs_raw_data.bin

...modify "dump" directory as you need...

BuildImgfs.exe

make_imgfs.exe nk.nba

2.

prepare_imgfs.exe nk.nba

DelFile.exe filename.ext

AddFile.exe filename.ext

...you may add/delete as many files as you need...

make_imgfs.exe nk.nba

if u use 1. way to add and delet files, u need not to use 2. way.

just add the Camera drivers into ur MDA Compact 2s dump folder, then BuildImgfs.exe.

but i think u can not use this drive by ur mda compact 2. are they the same model from htc?
[Windows Mobile Software Development] cmartin:
first off thanx for the gr8 work!!

Since I hate the fact that T-Mobile in Germany have placed the carrierlogo.gif within the image and I don't want a static carrier display, I decided to take a look at my possibilities of removing this file. I have an MDA Pro.

Well, I ended up decoding and dumping the ROM of the latest T-Mobile Update. After removing quite a few unneccesary gifs, jpegs, and media files I realized you can get more 1.5 MB space just from that.

Now since I was involved in OpenEmbedded Development a while back, I thought maybe it would be possible to create an Image an their "minimalistic" guidlines. What I mean is - create an image only with the "bare necessaties" and create CABs for the rest. This way you can just install the apps you really need. I, for instance never need IM or the such, so I don't like applications like that robbing my flash space.

So now to my question, would it be possible to remove a package and create a CAB of it for later installation?

If this is possible, how would the legal situation be for publishing these CABs for download? That's a community question ;-) I wouldn't want this work to just be for my own usefullness. I think others could be interested in installing a minimal image and then install the sofwtare the really need.

Another question is, is it possible to edit the registry in the dumped image?

Thanks in advance for your advice.
[Windows Mobile Software Development] mamaich:
This would be possible for some addon programs like java, mms client. I.e. these programs that have relocations information in their DLLs (they are dumped as files and not as directories).

Yes. The tool is in the first post.
[Windows Mobile Software Development] cmartin:
Thanks for the answer.

Can you explain how to do the following:

1. Extract a package from a dumped image and create a CAB of it.

2. Install a given CAB into the dumped image.

Another more important question:

Does removing files from the image create more usable memory or does it make no difference? Meaning that removing files from the image only makes sense if they're replaced by other more usefull files.
[Windows Mobile Software Development] mamaich:
What can be difficult here? Just copy files from dump directory, create a CAB file with them and that's all. I recommend WinCE CAB Manager.

I dont't understand what do you need. You may place the created CAB into extended rom or install it manually.

This would not free any memory. This would only free space in ROM that can be used for adding more files.
[Windows Mobile Software Development] cmartin:
I meant installing different software from a given CAB into the dumped directory so that it is already installed in the image. This I would only do if deleting files from the image wouldn't give me more space for installing software later.

OK, maybe this is what I mostly need clarified. Of course I meant space in ROM and not in RAM. But, what I don't completely understand is if the saved ROM space is usable after the image is installed.

Maybe an example could make it more clear what I'm interessted in:

Say I removed 2MB of files from the ROM. If I create a ROM from the remaining files will I have 2MB of space available to install software I want after the image is installed or is this 2MB of saved space waisted, because I didn't make use of it before creating the image.

I want to make the best use of the available Flash. So if I remove something from the image I want to make use of this space. And that's done either by filling that space before I create the image or by being able to make use of the space after image installation (for example, by installing software later).

Basically I'm saying "does it make any sense to create a minimal ROM image and install the software I want later (after the image is installed)".

I just don't want to go and remove something like 10MB from the image when after installation I still only have around 45MB of available Data Memory.
[Windows Mobile Software Development] mamaich:
You should manually extract all files from CAB, edit registry, initflashfiles.dat so that all keys and files would be placed into the right place. Lots of manual editing.

Or you can place the CAB into ROM and force OS to run it after hard reset. This is easier, but it would not save any space in RAM/storage (this is identical to placing the same CAB to extended ROM).

Removing files would not free any RAM/storage for installable programs. This space would not be used by OS at all. It is wize to place as much programs into ROM as possible, so that you would not need to install these programs and waste space in your persistent storage or storage card.
[Windows Mobile Software Development] cmartin:
thanx, now I understand ;-)

I want to add the MS Radio Patch so that I can have a handsfree profile on my universal. Is that possible? Sadly T-Mobile didn't add that support to their last update. If it's possible maybe you can give me a hint how I can do it.
[Windows Mobile Software Development] pueneto:
This is great!!!
[Windows Mobile Software Development] shahzadkhan15nov:
can i extract a file from nk.nbf?

Hi guys,

As you know that Wizard has AKU2 (unofficial) release available for them and they are enjoying all the luxury (esp A2DP, streaming audio to BT HS). I have that ROM file, the NK.nbf is ~70MB and of course, it is unlike Magician where you see three separate files (nk.nbf, ms_.nbf and radio_.nbf). In wm5, they seem to have only one file (nk.nbf).

The thing is I want to extract the A2DP profile (wireless streaming service) for BT stack. How can I do it?

Thanks for your help
[Windows Mobile Software Development] TiBiSMART:
file or module mod...

Hi mates!

I have two stupid questions.... :shock:

What is the different beetween file mode and module mode in imgfs_raw_data.bin?

I can make s000,s001...etc sections but how can i make imageinfo.bin, txt?
[Windows Mobile Software Development] KTamas:
Re: file or module mod...

I think you can add modules (dlls) just like every other file. It might just get dumped in the other way next time. Now, replacing modules, that is an interesting question...
[Windows Mobile Software Development] TiBiSMART:
Re: file or module mod...

thx for your fast answer, so i'd like to implement a WM5 rom the .NET2, so i have to change cgautil.exe and mscore.dll module a newer...

i don't know how. :cry:
[Windows Mobile Software Development] KTamas:
Re: file or module mod...

You should just delete the original ones and add the new ones as files. It is worth a try....
[Windows Mobile Software Development] TiBiSMART:
Re: file or module mod...

I have tried it but is't working...
[Windows Mobile Software Development] bepe:
Hi,

I have some problems with translating the CHS Himalaya ROM specially with Transcriber.

After the first selection of Transcriber I get an error like "nodes.exe is not a valid PPC Application" if I try to run nodes.exe, pword, pexcel, PowerPoint or Sim Tool Kit

Transcriber works in fine in other programs like Internet Explorer.

German Keyboard works fine.

Any idea?

If somebody can use them, some tools I wrote:

--DEVDesktop--

".\Add Files\" - Insert files or moduls to add them to the ROM

".\Delete Files\" - Insert files or moduls to delete them in the ROM, this files or moduls MUST also exist in ".\ROM\dump\"

".\ROM\" - Must contain imgfs_raw_data.bin, imgfs_removed_data.bin, NK.nba and the "dump" folder with all files and modules of your ROM

".\Temp\" - Is the output folder (NB.nbf)

xBuild:

Restore ROM -> delete ".\Temp\dump\" and copy ".\ROM\dump\" to ".\Temp\dump\"

Delete Files -> Delete Files in ".\Temp\dump\"

Add Files -> Add Files to ".\Temp\dump\"

Create Hives -> Convert .\default.rgu and .\user.rgu to ".\Temp\dump\*.hv"

Create ROM -> Convert ".\Temp\dump\" to ".\Temp\NK.nbf"

RGUComparer:

Delete, edit (DoubleClick on entry), rename and add (Keys and entries)

File MUST be unicode and the first line MUST be 'REGEDIT4'

<Full source code included>
[Windows Mobile Software Development] ady:
Re: file or module mod...

Modules (dumped directories) and files are not interchangable. To replace a module, you need a module with exact size sections (very difficult) whereas files can be replaced easily... A module is a file as it is while loaded in memory... the purpose is to make is executable directrly from ROM without loading it into RAM consequently the header information and other section which are require for the operating system to load that file into memory are missing from these modules.
[Windows Mobile Software Development] mamaich:
Re: file or module mod...

You are a bit wrong. You can replace any module (i.e directory) with a file. Just delete the directory and add the file with the same name.
[Windows Mobile Software Development] ady:
but then it won't be executed directly from rom but will first be loaded into RAM and then executed.
[Windows Mobile Software Development] mamaich:
Yes. Theoretically they load a bit slower then XIP dlls, but this is completely unnoticeable. By the way all DLLs in IMGFS (stored as modules or as files) are loaded to RAM. The real XIP DLLs that are executed directly from ROM are only nk.exe, coredll and several other that are in first XIP section of ROM.
[Windows Mobile Software Development] ady:
I am curious... why are these certain DLLs/EXEs have the information stripped and are divided into sections if they are to be loaded in RAM anyways? or is it that only a particular section of these files is loaded into RAM and the code section is executed from ROM?
[Windows Mobile Software Development] mamaich:
In old days DLLs were made XIP (code executed from ROM and only writable data sections were copied to RAM, only writable data sections were compressed). In WM5 there still exists one XIP partition with NK, coredll and some more files needed to boot device. Everything else is in IMGFS partition, and everything there is compressed (including code sections, and that is why they need to be decompressed to RAM before execution).

The only idea I have why MS decided to make DLLS from IMGFS based on a fixed address, is probably to reduce holes between loaded DLLs on the device and also to save virtual address space of a process. As far as I remember in WM5 these DLLs are loaded outside process address space, and fixing them to specified addresses makes this easier to OS. But I may be wrong.
[Windows Mobile Software Development] KTamas:
Hmm. I was building a ROM and almost at the end I got two weird error messagebox (one empty "X" one and another one with some boxes as text) then bang, Blue Screen of Death. On the second time, it worked well.
[Windows Mobile Software Development] mamaich:
check your virtual memory settings and/or free RAM. There is a bug in cecompr_nt.dll (this is a Microsoft dll) so that it lose lots of RAM. Maybe later I'll fix that. On PC with 1Gb RAM or more (I have 1.5Gb) this never happens.
[Windows Mobile Software Development] bepe:
I'm trying to dump an iPAQ ROM to extrakt some moduls for a himalaya

("iPAQ hx2700 Windows Mobile 5 German.nbf")

the rom is not encrypted!

prepare_imgfs.exe "iPAQ hx2700 Windows Mobile 5 German.nbf"

-Searching for IMGFS start... Found at 006417A9

-Dumping... Done!

viewimgfs.exe imgfs_raw_data.bin

...Dumps 13 moduls then...

Unhandled exception in DumpImageData!!!

Cannot create wzcsapi.dll\╚1

$

Unhandled exception in DumpImageData!!!

Unhandled exception in DumpXipData!!!

Header type: FFFFFEFB, Addr: 00001FAC

szName: wzcsapi.dll

Address: 000A2000, dwBlockSignature: D217E16E

dwNextHeaderBlock: F4680C73 (size: F45DEC73)

Header type: 502AA40A, Addr: 000A2008

Unknown header type, FS_DATA_TABLE??

Header type: FFFFFFFF, Addr: 000A203C

Empty header

Header type: 0110E068, Addr: 000A2070

Unknown header type, FS_DATA_TABLE??

...

is there any chance to dump this ROM?
[Windows Mobile Software Development] mamaich:
Yes, it is not encrypted. But it has 0x89 bytes of some hash after each 0x40000 bytes of data.

So you should remove this trash before dumping.

I may be wrong in numbers, but you should understand the idea.
[Windows Mobile Software Development] titi366:
Problems with my "default.hv" files

Hello ,

I would need your help , please .

This my problem :

When i save my file "default.hv" with RGU.exe , it loses 40 Ko in any case , whether i change it or not . For instance , my file capacity is 644 Ko ; but when i save it , is only 604 Ko even without changing anything .

I tried with various "default.hv" from various ROM ( for tornado ) but it's always the same .

Moreover , i noticed something else , even if i don't change the file , after i save it there is a line wich changes :

[HKEY_LOCAL_MACHINE\System\ObjectStore\RegistryUpdate]

"boot.rgu"=hex:37,FD,A0,81,1A,BF,53,DA,03,D9,98,48,F4,CB,25,6D

to:

[HKEY_LOCAL_MACHINE\System\ObjectStore\RegistryUpdate]

"boot.rgu"=hex:70,F7,4D,13,BD,8F,6B,EA,82,C4,B7,81,B6,FD,5B,0D

Is there something wrong ?

I also compared my original "DEFAULT.HV" with the same .HV after i save it without chanching it and they are totally different with Ultraedit32 .

All the same , i tried to create a ROM by remplacing default.hv with that of saved with rgu.exe without changing it .

My mobile phone starts but there is a bug : it doesn't ask for the pin code and the mobile phone is lock in "flight mode" .

And i also tried with a personalized default.hv , my changes are taken into account but i've always the same bug....

Overwise , everything else is fine .

Is there anybody who can help me ?

Thanking you in advance .
[Windows Mobile Software Development] stabal:
would using this tool help fix my 4 hardware buttons that don't work, the today, messaging, internet explorer, & ok button. I'm unable to format after installing a new rom messaging button won't work. I have a xda 2s. thanks
[Windows Mobile Software Development] x-X-x:
Hi,

I upgraded my Wizard with latest iMate's ROM but...

1) "itsutils.dll" can't write anything to device but can read

2) TyphoonNbfTool.exe (pre 0.4 and 0.4) don't want to export neither encrypted nor decrypted data from nk.nbf

F1!!!
[Windows Mobile Software Development] bepe:
@titi366

[HKEY_LOCAL_MACHINE\System\ObjectStore\RegistryUpdate]

"boot.rgu"=...

is a timestamp

RGU.exe deletes empty keys! use DEVDesktop_RGUComparer.rar in state.
[Windows Mobile Software Development] Iogansen:
I want upgrade my wm5.bin. I want insert there some files.

How can i convert my wm5.bin into nk.nba (and back)?

I find (1) http://wiki.xda-developers.com/index...5_RomStructure . Use it i can get all files .nb from my.bin, but i don't know what can i do next.

Can anybody help me?

p.s. Sorry, I can't speak english as vell as i want.
[Windows Mobile Software Development] mamaich:
You don't need this. The tools would work on your BIN if it is in raw format (i.e. is not B000FF).
[Windows Mobile Software Development] yifengling0:
use these tools can I replace the WM5's key driver(keybddv.dll) with 2003se keybddv.dll file?
[Windows Mobile Software Development] Iogansen:
How can I convert my.bin into raw format?
[Windows Mobile Software Development] titi366:
Hi bepe ,

Could you have a look at my default.hv files and tell me what's wrong ?

Because i've the same problem with DEVDesktop_RGUComparer ...

Please :roll:
[Windows Mobile Software Development] bepe:
the empty keys are missing

dont use RGU.exe to convert the files to text.

hv to txt:

Drop one file to "HV to TXT (Drop a .HV file).bat", this converts filename.hv to filename.txt in the same folder as filename.hv

then convert filename.txt to unicode (MS Editor->Save as)

txt to hv:

rename filename.txt to boot.rgu and put this file into the same folder as "make_boot_hv.bat"

then doubleclick at "make_boot_hv.bat" and rename the new boot.hv to filename.hv

size is the same but "boot.rgu"=... has a new timestamp
[Windows Mobile Software Development] titi366:
Thank you for your help ! All is OK now !

:lol:
[Windows Mobile Software Development] le_toubib:
failed buildimgfs and delfile

hello there

wonderfull work but i tried it on my "JASJAR_WWE_11353_137_10301" i could prepare_imgfs and viewimgfs succesfully. but i failed to buildimgfs and delfile .... any clue.

p.s : i could delete 8MB of dogbarking and multimedia crap from windows folder, i really wish i could cook this one

thanks a lot

the shrink
[Windows Mobile Software Development] Hades77:
is there a chance to get real dlls from the dumped dll-folders?

Thanks,

Hades.
[Windows Mobile Software Development] taxist:
Has made all about what has read through above on BA (2005) all superb.

I have a question:

With what help of tools to make too most on BA (2003SE)?

ROMMaster.exe Does not work,

The method from itsme is very difficult for me: (

Excuse for bad English
[Windows Mobile Software Development] nedge2k:
i also need to convert a dll folder to a dll.

i tried to copy the dll out of the raw rom .bin using winhex and the start/end offsets (from dumpmemorymap.txt) for the dll and then paste it into a new file and save it as the dll but it didnt work.

01760000 - 01765FFF ( 24575 bytes): usbmsfn.dll

so far the imgfs tools are the only ones that have allowed me to "access" this dll as its from a g-smart.

i'd appriciate any help with this as if i can do what im hoping to do it'll benefit us all ;)
[Windows Mobile Software Development] TiBiSMART:
this tool doesn't work with himalaya for me...

why?
[Windows Mobile Software Development] TofClock:
what tool ?
[Windows Mobile Software Development] TiBiSMART:
So i am stupid it's working perfectly of course....
[Windows Mobile Software Development] saman-cz:
I've problem dumping Wizard AKU2 ROM from i-mate,. For decoding OS.nb i use typhoonnbfdecode.pl. But viewimgfs dumps only a several XIP files and then fails.
[Windows Mobile Software Development] bepe:
You have to use: prepare_imgfs.exe nk.nba -nosplit
[Windows Mobile Software Development] saman-cz:
Ohh, sorry :oops: , now i've remebered that option :oops:
[Windows Mobile Software Development] bepe:
my experience about this...

you can edit this file with editor but if you save it the resulting file will not work.

The problem is that the editor will add an Unicode header, this file is unicode but it must not have a header.

Solution:

Edit with editor -> save -> edit with a HEX-editor and delete the first two bites (something like FF FB)- this is worging: tested
[Windows Mobile Software Development] Asukal:
thanks for your attention to my post.

also thanks your instruction, so it means it will work as i said if follow your advice??? glad to hear that!

Now i am writng this for making Japanese SHell folder..... :D
[Windows Mobile Software Development] someone45:
Checksum

First congrats on excellent tools for editing the rom.

I'm trying to edit a typhoon WM 5 rom using mamaich's tools and I always get to a point where I'm stuck :( The problem is with the checksum of the file, I already now where it is stored, but I don't know how to calculate new one after editing the rom. I wouldn't bother, but it is required to flash the rom - it always says the checksum is wrong while flashing the phone with edited rom. Please, can anyone help me?
[Windows Mobile Software Development] bepe:
Try TyphoonNbfTool.exe it calculates the CRC32 (tools menu).
[Windows Mobile Software Development] someone45:
Thanks for the answer. I've tried it already, but it calculates completely different CRC than it is needed by the flashing tool (looks like it doesn't work with .bin not .nbf files).
[Windows Mobile Software Development] milanvot:
viewimgfs & HTC Universal ROM problem

I'm trying to dump an Universal ROM (JASJAR_WWE_11353_137_10301) to extract some dlls I'm interested in.

1. I've decoded the ROM (nk.nbf -> nk.nba) using HTC64 Extended ROM Tool.

2. Then I ran:

prepare_imgfs nk.nba -nosplit

(IMGFS found at 00600000)

3. I tried to run

viewimgfs imgfs_raw_data.bin

but the viewimgfs returns (crash?) immediately without any work done. There is no 'dump' directory, nothing.

Any idea what am I doing wrong?
[Windows Mobile Software Development] TofClock:
Do you say that you have a .bin of g-smart rom ???
[Windows Mobile Software Development] le_toubib:
same here

"""""""""""I'm trying to dump an Universal ROM (JASJAR_WWE_11353_137_10301)"""""""

i tried the same thing, on the same rom , and created dump folder but failed to rebuild it . :?: :?: :?:

any help
[Windows Mobile Software Development] milanvot:
Re: same here

Check you PMs please :-)
[Windows Mobile Software Development] mamaich:
Re: same here

Rebuilding universal's ROMs is not tested. I'll fix that when I'll get Universal.
[Windows Mobile Software Development] nedge2k:
Yep, i used buzz's covert wm5 rom dumper to get the .bin but Gigabyte have also supplied me with an .nb0 image.
[Windows Mobile Software Development] TofClock:
wow , can you send me this .bin please ?

tofclock@gmail.com
[Windows Mobile Software Development] sacaman:
Dear All

how i can change from dump.bin to nk.nba

Thanks

Sacaman :wink: