[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Quentin-:
Cook Q-Mobile 1.11 (ADVANCED USERS ONLY)

I'm not sure how well post-cooking this rom would work but I dont see why there'd be a problem. I use my own toolset (a modified version of Kitchen 0.3) but I don't use the folders except as a reference...the copy of the rom I build is all in a single directory and registry changes go directly into the hive. I do have some DSM files that can help break apart the rom for viewing, but again thats not a copy I build from.

I'm going to get into a world of questions doing this--so don't really expect any more help than I give here, but attached are my version of the kitchen tools and my DSM folder. Below are instructions for cooking this ROM.

IF YOU ARE NOT AN EXPERIENCED ROM COOK DO NOT ATTEMPT THIS

To rip the ROM

Tools|Folder Options|View Tab|Hidden files and folders|Show

Tools|Folder Options|View Tab|Uncheck: Hide extensions for known file types.

Tools|Folder Options|View Tab|Uncheck: Hide protected operating system files.

01a.ExtractNBHContent.cmd

02a.ExtractDumpIMGFS.cmd

03a.ExtractDumpXIP.cmd

04.CopyROMXIP.cmd

Rename Temp/dump_imgfs to Temp/dump.

Remove Temp/dump_xip.

You are done, this is the copy we will build from.

To build the ROM

09.CreateROMKaiser.cmd

10.HTCRomTool.cmd

Build, Select System ... (select os-new.nb), Specify Version as "Q-Mobile 1.11" or some variation thereof, Build ROM, write to RUU_signed.nbh

!FLASH.bat

So this should rip/build the same ROM if you follow those directions exactly...now you want to know some other details.

To see the ROM in folders

See To rip the ROM above...do it in a DIFFERENT folder.

Rename Temp/dump to Temp/dump_imgfs.

Extract the DSM zipfile contents into Temp/dump_imgfs.

05.PKGTool.cmd

Check for any stray files/folders that are *not* OEM or SYS in Temp/dump_imgfs and move them to their appropriate folders under Temp/dump_imgfs/OEM or Temp/dump_imgfs/SYS. If you can't figure out where they belong (hint: check the base HTC ROM to see where the are there) you shouldn't be doing this.

06.MoveOEMSYS.cmd

07.DeleteBootClean.cmd

Now you should have folders that actually make sense. The trick is, if you want to add packages you have to add the folder for the package to the rom you opened up for viewing, but the FILES only (no DSM or RGU files) to your pristine Temp/dump folder (from the first step). Then you have to add the changes/additions from the RGU file to user.hv and default.hv manually as follows:

Editing default.hv and user.hv

Back using your pristine copy (not the view copy created just above), copy the default.hv and user.hv from Temp/dump into Tools/.

Open a DOS prompt and type: rgucomp.exe -o default.hv -nologo >default.rgu

Open default.rgu in notepad and add the line REGEDIT4 to the first line. File|Save As, and select Unicode as the character set!

Open a DOS prompt and type: rgucomp.exe -o user.hv -nologo >user.rgu

Open user.rgu in notepad and add the line REGEDIT4 to the first line. File|Save As, and select Unicode as the character set!

Now make your changes as appropriate to these files (HKEY_CURRENT_USER changes are in user.rgu, other changes are in default.rgu)

Copy default.rgu to boot.rgu.

Open a DOS prompt and type: rgucomp.exe -b

If this fails its probably because of a \ needing to be \\ as in "\Windows\file.exe" should be "\\Windows\\file.exe". Note that this happens even when trying to recompile a version that was just decompiled...note these errors, search for the lines that need to be fixed until it compiles properly.

Rename boot.hv to default.hv.

Copy user.rgu to boot.rgu.

Open a DOS prompt and type: rgucomp.exe -b

Rename boot.hv to user.hv.

Open a DOS prompt and type: attrib +a +s +h +r *.hv

Copy the new hive files to Temp/dump.

Now for those new packages...back to that view only copy that is in nice folders...once you've added your stuff you can run 08.BuildOS.cmd and select the view copy and it'll create a dump folder for you. The ONLY things you want from this are: *.dsm and packages.sof

You will have already installed the files for your packages in Temp/dump of the pristine copy. Now you need to:

attrib +a +s +h +r *.dsm (on the dsm files in your view copy's temp/dump folder).

attrib +a +s +h +r packages.sof (in your view copy's temp/dump folder)

copy *.dsm and *.sof into the pristine copy Temp/dump folder.

obtain the md5 hash of packages.sof (openssl works, as do other apps).

Using the registry edit method above, find the key for packages.sof and note that after hex: is the md5 hash comma delimited, put in the new one and rebuild your default.hv.

Install the new default.hv in your pristine copy Temp/dump folder.

Now build the rom as described above!

Tip: If you are clever you'll figure out how to rebuild with a single DSM like Q-Mobile 1.11 has (which has the added benefit of never having to change packages.sof--and therefore the registry key with the md5 hash).

If these steps don't work for you then don't try. Either use Q-Mobile 1.11 as it is or build someone's packages like _Alex_ who has done a great job making it easy for the layman.

PLEASE PLEASE PLEASE DO NOT FLOOD THIS THREAD WITH QUESTIONS ABOUT CUSTOMIZING THIS ROM

I have only included this guide for ADVANCED users who know what they are doing and want that slight change and are capable of making it with the information provided in this post and what they can search for.