yashsingh1/xdaforums huggingface dataset:
[P3600 ROM Development] JTMastiff:
I used some files from HERMES WM6ROM (base is still DOPOD WM6 SEA) and started preparing the kitchen as promised.

Here is the Packages Tool result txt (MUI set to Italian and no missing files, all translated to ITA with ITA skinned keyboard layout):

[Selected Path]
G:\WM6 Kitchen\jt_trinity_wm6_kitchen_1.0\JT_TRINITY_WM6_KITCHEN_1.0\temp\dump

[Core OS]
Windows Mobile-based Pocket PCs

[Versions]
SYS: 5.2.17740.200
SYS: 5.2.17936.300
SYS: 5.2.17944.301
OEM: 9.6.0.707
OEM: 9.4.0.707
NET: 2.0.7045.0
OEM: 9.3.1.707
OEM: 9.2.1.707

[Language]
0410 - Italian (Italy)

[DPI]
96

[Certificates]
CN=Microsoft Windows Mobile PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
CN=OEM Sign 2005
CN=OEM_UpdateCert
CN=DOPOD001

[Missing Manifests]
d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
723fb954-d931-4348-b672-82a188e587b5.dsm
6e35ffdb-9349-a54f-647f-3354ebf6be05.dsm

And some screenshoots:

I'll upload The full files of the Kitchen (SYS and OEM folder + tools) when everything is tested and when i make the OS as lite as possible (removing OEM apps and put them on packages), in the meantime here are some of the OEM packages used:

http://rapidshare.com/files/47094583/Packages2.rar.html

Packeages in the rar are:

Commanager 10 Butoon Touch Style ITA (black skin)

Commanager OEM (10 button) ITA

Some Registry Tweaks (filesystem cache, filesystem filter cache, Font Cache, Disconnect Button and Timer 4 GPRS)

HTC Audio Manager 1_2_515718_v ITA (classic Black skin)

HTC Home Plugin Kaiser Tabs ITA (6 tab with tabsetting and Profile disabled by default, icon changed)

xHTC X Button 1.5.29198.1 ITA (used this version because commanager can be closed with this x-button version)

Network Wizard Kaiser ITA (From Kaiser OEM, almost the same as ervius one posted, only 2 registry key are different, i have thake the registry value from Kaiser rgu files.)

PHM Registry Editor (a nice reg editor)

Total Commander 2 ITA (File explorer)

Cyberon Voice speed Dial ITA

Cyberon Voice Commander ITA (taken from an eten x500 ITA)
[P3600 ROM Development] ervius:
wow, 1st post with some packages...

good!!! :)

I Wait for many and many packages then...

bye!!!

P.S.: ver 3.3 of "package creator" with .reg file autoimporting into RGU!! in 1st post!
[P3600 ROM Development] JTMastiff:
ervius, if it's not asking too much, may we see version 3.4 of your's package creator with support for subfolders in initflashfile creation? (see Voice Commander Oem intiflashfiles if nedded; the entries my be created looking at the Packages folder and relative sub-fodlers Ex. \xVoiceCommander ITA\Programmi\Cyberon\VoiceCommander\"files placed here")

Wolud cut some time in creating packages :)
[P3600 ROM Development] ervius:
yes, I know and think about, how to do...

the broblem is how to tell him about folders...

maybe using cab analyzer insteadof wince cab manager..., it crerates original folders, see the files inside each folder, then compile initflashfiles.txt, create a name for the package and put all files into one folder (the package'a name!...)

yes, maybe this is the right way....

only a question, how cab analyzer extract registry file???

and then I can program somethink about !! ;)

bye!!

P.S.: I'm studying about cab analyzer

here:

http://rapidshare.com/files/47141349/MSCEInf.rar

and seems create "original flders\subfolders\" and this is thst I need, and also an inf file that contains also registry keys, in its way...

I have to understand how extract and reconstruct rgu from its!!! ;)

see you!!!
[P3600 ROM Development] JTMastiff:
WinCE cab manager is able to extract folder too, anyway with cab analizer you can extract .inf files:

[Version]
Signature = "$Chicago$"
CESignature = "$Windows CE$"
Provider = "%Provider%"

[CEStrings]
Appname = "Vibrating Dialpad"
InstallDir = "%CE1%\%Provider%\%AppName%" ; (%CE1%\JT\Vibrating Dialpad)

[SourceDisksNames]
1 = ,"Autre",,\

[SourceDisksFiles]

[DefaultInstall]
AddReg = ClesRegistre
CopyFiles =

[DestinationDirs]

[Strings]
[B]reg_path00 = ControlPanel\Sounds\Dtmf#
reg_path01 = ControlPanel\Sounds\Dtmf*
reg_path02 = ControlPanel\Sounds\Dtmf0
reg_path03 = ControlPanel\Sounds\Dtmf1
reg_path04 = ControlPanel\Sounds\Dtmf2
reg_path05 = ControlPanel\Sounds\Dtmf3
reg_path06 = ControlPanel\Sounds\Dtmf4
reg_path07 = ControlPanel\Sounds\Dtmf5
reg_path08 = ControlPanel\Sounds\Dtmf6
reg_path09 = ControlPanel\Sounds\Dtmf7
reg_path10 = ControlPanel\Sounds\Dtmf8
reg_path11 = ControlPanel\Sounds\Dtmf9[/B]
Provider = JT

[ClesRegistre]
[B]HKCU,%reg_path00%,Sound,0x00000000,*vibrate*
HKCU,%reg_path01%,Sound,0x00000000,*vibrate*
HKCU,%reg_path02%,Sound,0x00000000,*vibrate*
HKCU,%reg_path03%,Sound,0x00000000,*vibrate*
HKCU,%reg_path04%,Sound,0x00000000,*vibrate*
HKCU,%reg_path05%,Sound,0x00000000,*vibrate*
HKCU,%reg_path06%,Sound,0x00000000,*vibrate*
HKCU,%reg_path07%,Sound,0x00000000,*vibrate*
HKCU,%reg_path08%,Sound,0x00000000,*vibrate*
HKCU,%reg_path09%,Sound,0x00000000,*vibrate*
HKCU,%reg_path10%,Sound,0x00000000,*vibrate*
HKCU,%reg_path11%,Sound,0x00000000,*vibrate*[/B]

In bold are the regentries, from what i understand "reg_pathXXXX" it's the Registry path name "HKCU,%reg_pathXXXX%" it's the key itself
[P3600 ROM Development] ervius:
:p

I've seen it just now, ok, then let's go...
[P3600 ROM Development] ervius:
so, then wince cab manager simulate directory....

surprise!!! :)

new beta version with more and more options to create initflashfiles.txt...

flag:"simulate folder names" on wince cab manager and put reg file into package folder you choice...

example: "...\trypackage\windows\batterystatus\batterystatus.exe"

you have to put reg file into "...\trypackage\to-import.reg" ok???

and here the new beta of package creator!!!

http://rapidshare.com/files/47225753/packages_creator_3.4_b1.rar

(or in 1st post!!!)

more choice for shortcut creator and for more exes, if there!!!

bye!

P.S: JTMastiff, or someelse, try if work well!! ;)
[P3600 ROM Development] ervius:
all on holydays??? ;)

I need your opinion about my soft, becouse is a beta, I need to know if there are some bugs to solve yet!! :)

bye!
[P3600 ROM Development] LuMe96:
Hi all,

First of all I'd like to say thanks to ERVIUS for the nice tuto. As I'm writing I just finished my first ROM (just took the new ANZ ROM, went through all the steps to decompile and back to compile).

Now, I was about to add my first packages to the ROM and got 3 questions about it :

1) When should one use the OEM folder and when the SYS folder for packages? In the tuto it says to add them to OEM, however the BEBE kitchen already has some packages in the SYS folder (e.g. xBatStatus). Why aren't they in the OEM folder?

2) What is the max size of a ROM? Is there a warning if it's exceeded? I guess that I can't add an infinite number of custom packages.

3) For my first go, I tried to add SPB Mobile Shell as package. The pb is, that there are no reg entries. Rather than that, there's an .rgs file which seems to do the work. What's the best way to handle this sort of cab? Also, the extracted progs have an ._exe extension. After install of the cab they end up with .exe obviously, but I don't see at what stage they change extension. Couldn't find anything in the rgs file. Obviously, I can do that manually, but am I (or might I be) missing other modifications?

Thank's a lot for your help.

Bye.
[P3600 ROM Development] ervius:
1) you can delete them, in sys dir,

2) the max should be 90 Mb,

3) there are many way to compile a cab file, one is this one, when it istall itself, change the names of files inside, I don't study yet this kind of cab files, but I suggest to start with less difficult cabs, or istall it into sd, pick the folder rith the installed files inside and reconstruct the package by hands, with them , and eventualli the others inside the cab that will be installed in \windows\ folder...

tell me if you finally goal!! ;)
[P3600 ROM Development] JTMastiff:
just tested the Package Generator 3.4, GOOD JOB ervius!!!!

I've obtained this kind of syntax:

Directory("\Programmi\"):-Directory("test")
Directory("\Programmi\test\"):-Directory("test2")

dunno if it's ok, when i done it by hand it looks like this:

Directory("Programmi"):-Directory("test")
Directory("\Programmi\test"):-Directory("test2")

The dir "Programmi" alone doesen't need \ before, even at the end of any path it's not needed.

Didn't try to flash to see if it's working.
[P3600 ROM Development] ervius:
yeahhh!!!

also windows is "\windows"

so, it can be ok!!!!

but now I'm working on 3.5 version, include also "[INSTALLDIR]" directory, and will became "\windows\", in this version, it doesn't understand "[INSTALLDIR]" , and create a "\[INSTALLDIR]\" folder!! ;)

bye!
[P3600 ROM Development] ervius:
...upping...
[P3600 ROM Development] ervius:
http://rapidshare.com/files/47600450/packages_creator_3.6b2.rar

Re-reupped new version beta 3.6b1!!!

also understand "root:-directory", and other!!!

bye!!!

*****************************************

* P.S.: Beta 2 solved problem on existing rgu file!!! *

*****************************************
[P3600 ROM Development] claros:
This link don't work for me, but maybe a rapidshare problem on rs216.rapidshare.com

Ciao
[P3600 ROM Development] ervius:
no, it works well!!
[P3600 ROM Development] claros:
Tried from work and home, I'm sure it is not a problem of mine.

This is a traceroute

5 27 ms 25 ms 26 ms Gi3-0-200.rom-cor-access-1.interoute.net [84.233

.225.9]

6 37 ms 38 ms 187 ms PO8-0.mil-cal-access-1.interoute.net [212.23.42.

65]

7 36 ms 37 ms 36 ms PO5-0.mil-004-inter-1.interoute.net [212.23.42.8

6]

8 36 ms 37 ms 37 ms cogent.mix-it.net [217.29.66.14]

9 * * * Richiesta scaduta.

10 * * * Richiesta scaduta.

11 ^C

The server you are using, and only for this file, is not reachable, at least from Italy.

Ciao
[P3600 ROM Development] ervius:
I download from Italy just now again, but...

P.S. Upgraded to B2!!!!
[P3600 ROM Development] cicciocant:
Can you tell me some utility to confront file (text and binary) and directory?

Can you add in the kitchen a guide to change pagepool size?

Thnk's in advance.
[P3600 ROM Development] claros:
Done now, but from xda....

Will try it now.

Ciao
[P3600 ROM Development] ervius:
I hope you downloaded the beta2!! ;)

are little bugs after I changed from file browse to folder browse....

but I think this beta will became the official release!! :)

bye!
[P3600 ROM Development] claros:
Yes!

It's very different from ver 2 !! Great tool, if I can understand how to work with it... :)

So, I've to extract the cab with all folders, eg \windows, \windows\app_help etc, delete all the original app.lnk I found ther run package creator, recreate the link I want and generate dsm, rgu and xml, while Package Creator delete all the extracted dirs...

If this procedure is right, the attached package should work. Can you confirm?

Another question: what to do with directory like %CE19% aka Application Data aka Dati Applicazioni? Shall I translate %CE19% ?

Ciao
[P3600 ROM Development] ervius:
I must see also the cab file!!

btw seems to tell me the initflashfiles.txt that it works!!! ;)

... and...

I have just ready ver beta 3, becouse can appen that there are 2 identical files into 2 different folders and apps give error copying them... (impossible to create a file when it exist yet!!)

P.S.: I suggest to use "Wince Cab manager, I worked on it!!!

new 3.6 b3, in first post, and here:

solved registry key that contains "%ce2%" or "%installdir%", to became "windows", duplicate files copy...

now try this one...

http://rapidshare.com/files/47637525/adobe_reader_2.0_package.zip

(italian ver 2.0 with package included!)

with new version (tell if works!!)
[P3600 ROM Development] ervius:
1) I use "beyond compare"

2) I think is better learn first to walk, then to run--- ;)

but I'll insert it.....
[P3600 ROM Development] LuMe96:
Hi all,

is there something like a DeleteFile or MoveFile command for the InitFlashfiles ?

Correct my if I'm wrong, but as far as I understood, ALL files are initially in the Windows directory. After hard-reset, they are copied to their directories corresponding to the initflashfiles.

However, as far as I was able to test, they are COPIED, not moved. That means that there's still an "un-needed" copy in the Windows directory taking up space.

Is there a way/command to move files, rather then copying them (or to delete file in Windows after copying)?

Bye.
[P3600 ROM Development] ervius:
I don't now, I only see theese commands, and in rom I watched, a lot of time, and move or delete, not found, if you found someting abut, tell me too!!
[P3600 ROM Development] LuMe96:
Hi,

Well, I've been doing some further search on the Net and apparently there are no MOVE/DELETE possibilities.

I've also had a look at an HTC Hermes with its original WM5 ROM. the "ringtones" are WMA files and are stored in "Windows/Rings". They are however also present in the Windows directory (as hidden files). As there's no need whatsoever for those files to be in the Windows directory, this makes me think that even on original ROMs they don't have the move function.

The problem is that this considerably limits interest in OEM packages, other than system files, small utilities and programs that can be installed directly in the Windows directory. As soon as you have to use the :-File("","") command, you double space for the concerned files.

I was going to add all my favorite apps as OEM packages to my ROM, but finally I'll have to go through CAB installation (or Ext. ROM) if I don't want to eat up a lot of precious space for nothing.

Bye.
[P3600 ROM Development] ervius:
ok, do as you like, I'm not Microsoft programmer, and if you want add apps as packages, this is the way...(or if the app start after, put all files in one directory, without subfolders, they all will be stored only in \windows\ folder, without duplicate in other ones) the package can work also with this trick, but not shurelly!! ;)

and also in official wmX releases there are some files duplicates and stored in more folders!! so... microsoft should be change something first!!

A good example is "batterystatus", you can store all cab in one directory and then build package, it works well but you cannot see the icons on today, if you build package with subfolders, then, when you build rom you can see also the batterystatus' icons on today!!!

see you!!
[P3600 ROM Development] LuMe96:
hi Ervius,

please don't get me wrong : I didn't complain or meant to say that it's your fault that things don't work the way I expected them to work.

Without your great tuto, I wouldn't be running my own ROM; given it's 99% standard but, hey, 1% custom. :)

I've a suggestion for your package creator :

First the pb :

As you mentioned, I packaged BatteryStatus and went into the problem of a file of BatteryStatus having the same name as one of the phone app (gprs.bmp).

The Bepe kitchen stopped the compile and in order to get it work, I had to modify the BatteryStatus Package by doing the following :

- rename "gprs.bmp" to "batstat-gprs.bmp"

- modify the initflashfiles.txt as follows :

Directory("\Windows\BatteryStatus\default\"):-File("gprs.bmp","\windows\"batstat-gprs.bmp")

The suggestion :

It would be really cool if one could specify a prefix in package creator. This prefix would then be added to all files that DO NOT remain in the Windows Directory (the files that have to remain in the Windows Dir do not have the prefix to allow checking duplicates).

Obviously for the files with a prefix added, the prefix is taken back off in the initflashfiles File("","") function to restore the original name in the dest. folder.

What do you think ?

Hear you.

Bye
[P3600 ROM Development] ervius:
yes, it can be possible, but what appen when initflashfiles.dat try to overvrite original files, like system dll???

if you try, and then confirm that it work, I modify my apps!!

;)

ok???

see you!!!

edited!!!

only in other folders with original names...

yes, it will be a good trick!! ;)

ok, go on compiler then...

bye!
[P3600 ROM Development] ervius:
Ok, Ithink I' ve done it, in right way, only the files that will be stored into \windows\ folder will not renamed, but if they will be stored in any other folder, it can be named with prefix package_nameplus "-" example:

package name="pippo"

filename="pluto.exe"

pluto.exe will be stored into other folder that is not "\windows\" folder, it will be renamed:

pippo-pluto.exe

and renamed again in pluto.exe when initflashesfiles.dat stores it into proper directory!! try it here or download from 1st post of 3d!! ;)

see you!!!

P.S.: thanks to LuMe96 4 this good idea!! :)
[P3600 ROM Development] neogin:
Helo ervius and xda-dev people,

I want to translate JPN to ENG. By doing this, I went thru so many ways including Bepe's Tools.

First, I am using Benq P51 WM5 AKU 3.5.0 ROM. I did my search and I found P51 newest ROM in WM6 JPN here at xda-developers and the info on Bepe's Tools are as follows:

[Selected Path]

C:\Documents and Settings\Administrator\Desktop\p51\tool\ImgfsTools2rc2b\dump jpn 411

[Core OS]

Windows Mobile-based Pocket PCs

[Versions]

SYS: 5.2.17913.300

OEM: 5.2.0.300

NET: 2.0.7045.0

[Language]

0411 - Japanese (Japan)

[DPI]

96

[Certificates]

CN=Microsoft Corporation CE Image Update Test - Root

CN=Microsoft MDD Dogfood CA - MS Root

CN=Microsoft Windows Mobile PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

CN=VeriSign Class 3 Code Signing 2004 CA, OU=Terms of use at https://www.verisign.com/rpa (c)04, OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US

[Missing Manifests]

d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm

723fb954-d931-4348-b672-82a188e587b5.dsm

686dd77a-1600-5e3a-c2e9-fad9f0a78409.dsm

I'm kinda new here about editing ROM. So, I decided to do it easy way by using its own base rom same Benq ROM but WM6 version.

I want to translate this ROM to ENG. This ROM comes with .nb0 extension. The name of this rom is P5120600.nb0. You can find it thru this forum.

My first question here would be .. How could I dump .nb0 file? I learn how to use Tadzio's Tools and I got the WM6 ENG dump from Microsoft WM6 image as 409 ENG WM6 dump folder by ImgfsTools2rc2b Tadzio's Tools.

I'm working with my friend to translate it from JPN to ENG and he used to play with ROM before. He did the P51 WM6 JPN dump for me. I don't know how to dump it but my friend gave me his dump folder for this ROM JPN 411 Dump.

Next, I did as your lesson 3 by renaming all the files, folders, anything that contains 411 change to 409 (amui xxx_409.mui) ... and I stop it here for now.

My questions are:

1. How could I dump .nb0 file? I checked Mamaich's imgfs tools from his tutorial. It seemed .. I couldn't use his Tools to dump .nb0 type but someone mentioned his Tools could do. I see only .nb allow in his tutorial as your lesson 1 here.

**Note: Finally, I got the dump for .nb0 file by using mamiach's Tools. I'm trying to do the next step. I rename the 409 (WM6 EMU ENG ROM) into 411. I replaced to folder 411 most of them. When I use Bepe's Tools open it. I got the error "package sof missing." Any advices ??? Help me plz .. I want to use WM6 also.

2. Is it possible that I use someone ROM from other devices to edit it for my Benq P51?

2.1 If yes, Could you give me advice from scratch?

2.2 I'd like to learn many ways to edit .. cooking ROM. That's why, I couldn't miss any basic steps here.

Thank you so much for all your help. I'd appreciate it.
[P3600 ROM Development] LuMe96:
Hi Ervius,

ok, downloaded your last beta and tested it. I does almost what I meant ;)

Before I forget, here are three little comments that don't have anything to do with the renaming :

The prog does not like [INSTALLDIR] as directory. It's quite normal that the app can't handle it, but might be nice to check and abort with an warning message.

At least when in ENG, there are two pbs with shortcut creation :

"Programs-style" shotcut is copied to "windows\startup" rather than "\windows\start menu\programs\"

"Startup-style" shortcut creates line in initflashfiles with empty "Directory" : Directory("")

If I've two files with same name, first in a directory A, second in a subdirectory B (where B is inside A), you only keep the file in the directory A and delete the one in the sub-directory B. You've both copy instructions in the initflashfiles, so everything is fine if both files are the same. In case they are different (and just happen to have the same name), this might cause big trouble.

Back to the renaming

It's a bit the same problem as the last point mentioned above. Let's say I've 2 files :

File ABC-XYZ.EXE in Windows Directory

File XYZ.EXE in Application Directory

and I call my OEM Package ABC. See where I want to get?

Renaming the file in the app dir will make it have the same name as the file in the Windows dir (which is not renamed).

I'm a bit short of suggestions myself here, but would need to find a way to do renaming without the risk to conflict with other files. Maybe completely change file name of all files that do not remain in the windows dir and use something like GUID_+autoincrement ? That would also resolve the Folder/Subfolder pb.

Bye.
[P3600 ROM Development] ervius:
1) [INSTALLDIR] is a directory that you choice during istallation with a cab, but we want integrate in rom, so in Windows, then the apps understand the [INSTALLDIR] like \windows\ folder, and for me is ok, becouse you can choice also \windows\ as [INSTALLDIR] folder;

2) little bug, string variable wrong!! solved!! ;)

3) I can do it, but pro wath??, xxx.exe in \xxx\ directory is an exe, other xxx.exe in \windows\ is other exe... I can tell my apps to store 1st xxx.exe into \xxx\ folder and 2nd one xxx.exe in \windows\ no problem!!!

wait 5 minutes!!! ;)

see you!
[P3600 ROM Development] neogin:
I need a bit help here ..

I'm using Benq P51 WM5 AKU 3.5.0 now. I want to have WM6 but nobody cooks Benq P51 here. There is one WM6 Benq P51 but it's in Japanese.

Purpose :::

-----------

To change Janpanese 411 WM6 ROM into English 409 ROM

What I'm doing so far :::

------------------------

Recently, I built rom by Bepe's Tools. I got OEM and SYS ready to edit RGU and Initflashes.dat files.

Questions :::

-------------

What should I do next in order to translate Japanese into English?

What kitchen should I use for a beginner?
[P3600 ROM Development] ervius:
you have to translate a lot of strings into rgus files and initflashfiles.dat, and put respectively mui files into folders deletes old and place the *409* ones.

and also initflashfiles.dat must be traslate...:

and also rgu files:example:

string: "programs" must became "programmi"

string: "my pictures" must became "immagini"

etc.etc.

Here we are talking about bepe kitchen, and if you don't know yet what kitchen want use, don't post that kind of question! The bepe kitchen is a real and professional way to build, kook, modify and translate trimiy roms, I don't know other way, I think they're oldier than bepe's one!

bye.
[P3600 ROM Development] neogin:
Sorry to ask this but I saw a post from Bepe, he is making a new kitchen.

I'm not sure that it's finished yet.

If not, I may use the previous kitchen from Bepe.

By the way, I checked his page and it seemed I couldn't download it.

http://xdaforums.com/showthread.php?t=298636

I only see HERMES ROM to download. . . . No rom kitchen ...

Thank you so much for your busy time. Normally, noone would answer my questions here. I'm working hard on this one.

NOTE:::

"you have to translate a lot of strings into rgus files and initflashfiles.dat, and put respectively mui files into folders deletes old and place the *409* ones."

I pasted 409 files that I renamed to 411 (only file.mui that contains 409 --> 411 I didn't rename the folder name.) Is this way ok too??

Next, I have to do as your guideline to edit RGU and INTFLASHFILE.

correct ???
[P3600 ROM Development] ervius:
for bepe kitchen, yes maybe he'll release a new, but this one works well...

yes, it's the same, not important the real name of folders, mui files renamed also work, only initflshfiles.dat and rgu have to be translated...

bye!