RGU issue - Touch Diamond, MDA Compact IV General

Can somebody explain to me, why this registry key doesn't work???
Code:
[HKEY_CURRENT_USER\Software\Microsoft\Today]
"Skin"="\windows\Htc black.tsk"
All other keys are working, except this one here.
Here is the kitchen log:
Code:
Failed to parse value name HKEY_CURRENT_USER\Software\Microsoft\Today!!!
InitRegistry FAILED in file ".\Registry\5216cacc-522b-4a02-a974-b2e85bec2f62.rgu" within a few lines of line 58.
ImportFromPackageListStrict: (RGUComp) !ERROR failed importing ".\Registry\5216cacc-522b-4a02-a974-b2e85bec2f62.rgu"
wmain: (RGUComp) !ERROR failed building DEFAULT hives

Check if you don't have any special characters on these lines like space, tabs etc... and remove them.
If you're under Windows OS, you can also copy all your rgu file into bloc note and copy the text from bloc note to your rgu file again.
Do no look at these lines only but the whole file.
Remeber that you must have "REGEDIT4" on the first line and an empty line at the end of the file.
Be sure that your GUID file name is unique. If there is another file that have the same name, use Package creator to generate a new one and rename it!
Here are some rules that i follow to cook my roms ^^
Hope this help!

Solved problem by using xml.. Close Please

Related

Personalising ROM's... without Ext_ROM

Okay, there a couple of CAB files I install no matter what ROM I use (Total Commander, Today Screen Speed Dial, MortRing [by .exe], Morphy's Call Filter etc), now that I'm getting to grips with the whole ROM building thing I have a question:
How can I add a program installed via a CAB into a ROM so that it is installed into ROM, I've searched on the forum and can't find much. I know it can be done as ROM's such a TuMa's, Logout's and Ivan's have apps in ROM which aren't there by default...
EDIT: In addition, I overwrite some of the default ROM stuff once I've installed (ETEN M600 Dialler in particular), so again, how can I get the 'bits' out the cab and overwrite the default contents of the ROM, this would make my life much easier...
If this has been posted previously then please point me in the right direction
First extract files, shortcuts and registry entries from the .cab using wince cab manager or similar http://www.ocpsoftware.com/, take note on what directory each file/shortcut is in. (often more reg entries will be stored as a file called 'platformxxx.reg' use these too)
Normal rom edit way: add the contents of the exported .reg files to default.rgu, making sure that you leave a blank line on the end, copy all the files to the \dump directory and edit initflashfiles.dat to copy them to the right directory on first boot. (remeber to remove the first two bytes - ff fe with a hex editor). then build your rom!
Bepe's rom edit way: create a folder '[your software name]' in the oem folder and get yourself a guid from here http://kruithof.xs4all.nl/uuid/uuidgen. create a blank file called '[yourguid].dsm and a blank text file called '[yourguid].rgu'. add the contents of the exported .reg files to '[yourguid].rgu' and make sure you save as unicode. then copy all the other files to the folder and create a blank unicode txt file called 'initflashfiles.txt' and use it like initflashfiles.dat in the first method except there is no need to hex edit out the first two bytes. then build your rom!
midget, you're a star, I thought it may be something simple... I'm off out with the family now for the day, but I'll work on this later, cheers!

make_boot_hv.bat problem

it return this message:
importing registry file ".\boot.rgu"...
Failed to parse value name HKEY_CURRENT_USER\Software\Microsoft\Windows!!!
InitRegistry FAILED in file ".\boot.rgu" within a few lines of line 3.
BuildBootHive: (RGUComp) !ERROR failed importing ".\boot.rgu"
wmain: (RGUComp) !ERROR failed building BOOT hive
help me
to avoid that error
make sure that theres one entry per line. e.g
correct
"ww"=dword:0
"vv"=dword:1
wrong
"ww"=dword:0 "vv"=dword=1
if I were you, use ms word to edit rgu files..
like for example, you have default.hv, generate using rgucomp.exe to make it .rgu, now open the rgu files with msword ang save it as xxx.txt (unicode), rename that again as xxx.rgu and use ms word if you want to modify smething.. now you don't have to worry again getting that error message..
ok
now work
my notepad going crazy

Cooking a rom...

Hi, I followed the thread: "How to reconstruct a dumped ROM"... (obviously I had, before, did a rom dump!). Now I have a directory named "dump" with several subdirs.
In the step 3) there is written: "After this step you can optionally edit the OS files with the proper tools"... now the question is: what are these proper tools? I searched in the forum, in the other threads but I didn't find anything... My needs are: to delete some programs that are in the rom (for example Pocket Word, Pocket Excel, other..) in order to obtain more space, but to install other tools at the free space.
Thanks in advance for your help....
Great question ! i can't help you , but i wait for answers ....
I asked the same thing the other day, and got an answer(thx again to him).
Actually, I'm doing it right now, as a test I've successfuly dumped and rebuilt lsvw's rom using enhanced imgfs tools batch files, nbdump.bat nbname.nb & nbbuild nbname.nb, now I'm removing files from the rom and maybe add some other, like that quick gps thingy, latest msn(optimized for trinity, removed vga resources), phone pad, and some other thing on my custom extrom.
I had the same doubt as you, but it seems that we're overcomplicating things, you can simply use the file explorer to remove files from that dir, beware of which files you remove/alter.. initflashfiles.dat has some operations to be done after flashing the device(creating folders,renaming files, moving them to startup/start menu/etc folders), I thought that if the file didn't exist on the windows folder, whatever invoques initflashfiles.dat would crash, but it doesn't seem to be the case, I haven't put this to test, but I've found several missing files on the initflashfiles.dat(and a typo, "floder", go figure what it means - lazy/rushed editing IMO), so there seems to be some tolerance to the operations contained in that file.
I won't edit the wiki until I'm 100% sure that what I know is correct, but to sum it up:
dump the files
add/delete files with explorer
edit the registry using rgucomp
edit initflashfiles.dat using the original windows notepad & use an hexeditor to remove the 1st 2 bytes
run NBBuild.bat to create the *.nb file
OSchecker.exe to validate the *.nb file
nbhtool.exe to create the nbh
flash it(I prefer the sd card method)
Code:
rgucomp needs setting _FLATRELEASEDIR environment variable to current directlry like this:
set _FLATRELEASEDIR=.
Dump default.hv/user.hv file to .reg with:
rgucomp.exe -nologo -o default.hv > default.reg, then add line "REGEDIT4" to the beginning of REG file.
Modify the .reg file to your liking, (save it in UTF-16 with CR+LF terminations and a new line at the end of the file) and convert it back to .hv
And don't forget to flash Olipro's Hard SPL before, it may save your device.
"and convert it back to .hv"
http://forum.xda-developers.com/showpost.php?p=1186635&postcount=1
(no wonder I didn't find this info, forum search is almost useless, googled for rgucomp and voilĂ , first result(above) right answer)

How to change registry entries / Cooking ROM

Hi,
Does anyone know how to edit registry entries from within KovskyKitchen or any other kitchen? I mean before the ROM is flashed is it possible to tweak the registry?
Thanks,
Phil Rich
Sorry but, bump.
http://www.google.com/cse?cx=000825...tries&sa=Search&cof=FORID:0&ie=utf-8&oe=utf-8
or from Helmi
How-To build your own OEM Package:
An OEM Package is just a simple folder containing files and registry settings for the ROM
First of all you'll need a GUID number for your Package. Go to http://www.famkruithof.net/uuid/uuidgen to get one. For example: 283b9db7-cb03-4c1b-820e-ca49b2c3b5db
Necessary steps:
1. Create a new folder: Dev/Helmi_UNI_WM6_Kitchen_R0/OEM/Your package name/
2. Create a empty text file: Dev/Helmi_UNI_WM6_Kitchen_R0/OEM/Your package name/283b9db7-cb03-4c1b-820e-ca49b2c3b5db.dsm (?CreateOS.exe will finish this file for you)
3.
(Optional) Create an UNICODE text file: Dev/Helmi_UNI_WM6_Kitchen_R0/OEM/Your package name/283b9db7-cb03-4c1b-820e-ca49b2c3b5db.rgu
This file could be used to add registry entries to the ROM First line is: REGEDIT4 ... and there MUST be a empty line at the end!!
4.
Create an UNICODE text file: Dev/Helmi_UNI_WM6_Kitchen_R0/OEM/Your package name/initflashfiles.txt
This file could be used to create folders or copy files, shortcut on the ROM. For Example/Ilustration: Open or read Dev/Helmi_UNI_WM6_Kitchen_R0/LOC/initflashfiles.dat using a text editor or any premake initflashfiles.txt at one of the OEM folder.
and there MUST be a empty line at the end of iniflashfiles.txt also!!
Copy all files you need to Dev/Helmi_UNI_WM6_Kitchen_R0/OEM/Your package name/
The next time you build your ROM (as described above), the OEM package will be included in the ROM.
Click to expand...
Click to collapse

Modification.

i cant find how to modify a ROM..
i mean after converting NK.NBF into DUMP folder if i want to remove any application and add another one how to do that?
like i want to add some plugins like arcsoft MMS,office and adictionary into a ROM how to do that..
thanx
well, that is done manually, you need to remove all the files/add the files from the OEM package there (exclude the option.xml and initflashfiles.dat and the dsm's and RGU) just copy the files, then when you goto the next step,or the step where you need to modify the HKLM and HKCU files, just open the OEM's RGU file, cpoy the keys and paste it in the Presented HKCU/HKLM and when you go to the other step, where you are required to edit the initflashfiles.dat, open the OEM's initflashfile in notepad, copy its content and paste it into the Main initflashfiles.dat of the ROM you are extracting, ther, that should do it
Note : make shure you hex edit the initflashfiles.dat and remove the first 2 bytes from the file (something like dd dd) or else your rom wont boot!!
if you dont want to hex edit, you can use my intiflashfiles Builder which is included in my kitchen, http://forum.xda-developers.com/showthread.php?t=378498
Ps. there is a guide too there

Categories

Resources