Reg tweak making BuildOS report error.. - Windows Mobile Development and Hacking General

Hey there
First of all iam not sure if this is the correct section ! Iam very sorry if its not! Maybe a section just for cooking questions would be good ?
Well.. Heres my question ..
Iam cooking a rom for HD, and i would like to add some reg tweaks.. So i have added a bunch but one of my tweaks makes BuildOS come with an error stating that it couldn't build the registry..
I have made a OEM package containing the following reg key..
Code:
REGEDIT4
[HKEY_CURRENT_USER\Software\HTC\Manila]
"CachedBackgroundPath"=""
"HomeBackgroundPath"="\Windows\Wall.jpg"
The file is named : "1a073e70-e2a0-11dd-ad8b-0800200c9a66.rgu", saved as "Unicode" and with an empty line at the bottom.. And the folder is also containing a file with the same name as above, just with ".dsm" as file extension. This file is empty
I have also added a "option.xml" file with the following inside it:
Code:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
<Items>
<Item name="Personal Reg tweaks" group="Programs" checked="true">
<Tip></Tip>
<Guid type="p">1a073e70-e2a0-11dd-ad8b-0800200c9a66</Guid>
</Item>
</Items>
and an empty initflashfiles.txt file..
But as soon as i include this package in BuildOS i get the error that it couldn't create the registry ..
What have i done wrong? The package is in the OEM folder..
~D

[HKEY_CURRENT_USER\Software\HTC\Manila]
"CachedBackgroundPath"=""
"HomeBackgroundPath"="\\Windows\\Wall.jpg"
use double \\ in paths

dan-htc-touch said:
[HKEY_CURRENT_USER\Software\HTC\Manila]
"CachedBackgroundPath"=""
"HomeBackgroundPath"="\\Windows\\Wall.jpg"
use double \\ in paths
Click to expand...
Click to collapse
Thanks ! That worked..
I have another question.. If i want to replace the defualt netframework in my rom with the newest 3.5 what do i have to do ?
I have deleted the original NETCF folder in SYS and replaced with one from a cab that i've converted to a OEM using Package Tools 2.7.. But it dosn't work! When i try to start some software that uses netcf 3.5 it comes up with an error..

Related

howto remove cube when recooking rom?

Hi, masters,
Just as the title, can some experts explain how to remove cube when recooking rom? I have tried the thread named as "disable cube in cruise", and I think it didn't work and may damage some scroll function. So maybe some experts in our forum can give us new cookers some tips about these. any reply will be appriciated.
What's more, can someone recommend some kitchen for 20755 or 20931? Nowadays I'm using Polaris Kitchen(19965) from udK to recook c_shehar's 20755(Thanks you both, you both are great cookers, I'm on my way to learning from you guys), just replace some payload and oem, sys... and much stuff in the kitchen. So I'm thinking maybe there are some great kitchens from other excellent cookers can recommend.
Thanks very much.
Hi sc.w
For removing completely the cube you must delete some file from OemApps folder in Oem folder!
Delete all *.brn files minus QD*.brn, and this exe:ApLancher and CustApLauncher.
After you must delete some reg keys in rgu file: all keys which are related to cube.
At the end in OemDrivers folder in rgu file you disable the cube by the key, search into!
Hi,
1 - delete all *.brn files from OEMAPPS
2 - delete APLauncher.exe, MediaHubMini.exe, StratUpBiotouch.exe from same folder.
3 - open 43db884c-927b-4317-9e62-a3bb0a1fbc60.rgu with notepad then :
* replace those value :
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\25]
"Description"="TouchFLO Settings"
.....
.....
.....
.....
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\MASD]
"TouchFlo"="xxxxxxxxxxxxx"
* With :
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\25]
"Description"="TouchFLO Settings"
"Name"="TouchFLO"
"File"="TFSettings.exe"
"CmdLine"=""
[HKEY_LOCAL_MACHINE\ControlPanel\25]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Disable4SpecificApp]
[HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Disable4SpecificApp\Album]
"ClassName"="HTCAlbumClass"
[HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Disable4SpecificApp\Camera]
"ClassName"="IACSP20_Main"
[HKEY_LOCAL_MACHINE\Software\HTC\StratUpBiotouch]
"DelayNormalTime"=dword:000003e8
"DelayFirstTime"=dword:00000001
[HKEY_LOCAL_MACHINE\Services\HTCDetectTitleBar]
"Index"=dword:00000000
"Prefix"="DTB"
"Order"=dword:00000009
"Keep"=dword:00000001
"DLL"="DetectTitleBar.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\MASD]
"TouchFlo"="2_0_31936_1"
4 - Open rgu file in OEMDrivers then replace :
Code:
"EnableCube"=dword:1
with :
Code:
"EnableCube"=dword:0
you are done!
M-Amine said:
Hi,
1 - delete all *.brn files from OEMAPPS
2 - delete APLauncher.exe, MediaHubMini.exe, StratUpBiotouch.exe from same folder.
3 - open 43db884c-927b-4317-9e62-a3bb0a1fbc60.rgu with notepad then :
* replace those value :
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\25]
"Description"="TouchFLO Settings"
.....
.....
.....
.....
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\MASD]
"TouchFlo"="xxxxxxxxxxxxx"
* With :
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\25]
"Description"="TouchFLO Settings"
"Name"="TouchFLO"
"File"="TFSettings.exe"
"CmdLine"=""
[HKEY_LOCAL_MACHINE\ControlPanel\25]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Disable4SpecificApp]
[HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Disable4SpecificApp\Album]
"ClassName"="HTCAlbumClass"
[HKEY_LOCAL_MACHINE\Software\HTC\Biotouch\Disable4SpecificApp\Camera]
"ClassName"="IACSP20_Main"
[HKEY_LOCAL_MACHINE\Software\HTC\StratUpBiotouch]
"DelayNormalTime"=dword:000003e8
"DelayFirstTime"=dword:00000001
[HKEY_LOCAL_MACHINE\Services\HTCDetectTitleBar]
"Index"=dword:00000000
"Prefix"="DTB"
"Order"=dword:00000009
"Keep"=dword:00000001
"DLL"="DetectTitleBar.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\MASD]
"TouchFlo"="2_0_31936_1"
4 - Open rgu file in OEMDrivers then replace :
Code:
"EnableCube"=dword:1
with :
Code:
"EnableCube"=dword:0
you are done!
Click to expand...
Click to collapse
Thanks, M-Amine, never thought can get a reply from you. You're a great cooker, and your reply is helpful. Now I've successfully remove cube in some cooking rom from xda. Really appreciate your help. Thank very much.
Hi,
Is it working to remove cube from artemis rom also? (BnB 4.3 for instance)
Thanks

Boot .rgu prloblem

hi
i have a problem when io build OS, the boot rgu file has this lines wrong:
[HKEY_LOCAL_MACHINE\Software\Microsoft\CHome]
"SK1TEXT"="Contatti"
"ExtensibilityXML"="<PluginsOrder=\"CMyPhotos;CMusic;CWelcomeCenter;CPhone;CVoicemail;CClock;CText;CEmail;CAppointments;CHomeFavs;CWindowsLive\"
CPRFileName=\"Titanium\" DisplayStyle=\"Titanium\" />"
"SK1URL"=":MSCONTACTS"
"HomePluginGuid"="{892B90CB-9806-427e-8BED-F45C6A9E576B}"
"DockOperatorBar"=dword:0 "Enabled"=dword:0
Click to expand...
Click to collapse
do some one know how the good sintax?
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\CHome]
"SK1TEXT"="Contatti"
"ExtensibilityXML"="<PluginsOrder=\"CMyPhotos;CMus ic;CWelcomeCenter;CPhone;CVoicemail;CClock;CText;C Email;CAppointments;CHomeFavs;CWindowsLive\"
CPRFileName=\"Titanium\" DisplayStyle=\"Titanium\" />"
"SK1URL"=":MSCONTACTS"
"HomePluginGuid"="{892B90CB-9806-427e-8BED-F45C6A9E576B}"
[B]"DockOperatorBar"=dword:0
"Enabled"=dword:0[/B]
imho, just enter. and enter at end.
Why do you have CHome registry keys in your boot.rgu? They don't need to be in there-they should be built into the system.hv, not the boot.hv.
nvmd...
,
Farmer Ted said:
Why do you have CHome registry keys in your boot.rgu? They don't need to be in there-they should be built into the system.hv, not the boot.hv.
Click to expand...
Click to collapse
i'm newbe, i exctracted the boot.rgu file with this command:
mkdir ROM
cd ROM
mkdir XIP
cd ./../..
set _FLATRELEASEDIR=.
echo REGEDIT4 > dump/ROM/XIP/boot.ascii
rgucomp.exe -o dump/default.hv -nologo >> dump/ROM/XIP/boot.ascii
stringconverter.exe dump/ROM/XIP/boot.ascii dump/ROM/XIP/boot.rgu /unicode
del dump\ROM\XIP\boot.ascii
isn't good?
I can't answer that, but I can tell you that in any build, the CHome reg keys are in the sys#/shared/common/CHome rgu (8c58193c-f8ab-447a-af67-a5167df96529.rgu). You may have messed up and dumped the whole registry or something, but you probably shouldn't have that reg key in your boot.rgu.
OK thanku for your interesting....
another question, why do my phone tell me chekscum error when i try to fash the rom craeted by me?
I used wmreloc on a dump build with OSbuild.exe and a xip made with xipkitchen
i have an Acere e101 and around i can not find anything about him, i trying to use the evirusVK but i have only flash.bin file... evirusVK want a nbh file....
up up
please someone who can explane me why after i flash the final rom i got always chekskum error?
i used build OS, wmreloc and osnbtool to build the rom...... I saw that the xip file ported with xipkitchen, is smaller than the the original and boot.rgu file i axtracted with the commands wrote up, is bigger then 1000 kb. why?
Dunno, but 1 MB is way too big for the boot.rgu. That sounds like an .rgu dumped from the system.hv. If you get a stock boot.rgu, it's about 32 KB, but if you dump it from a boot.hv, it may only be 10-12 kb (there's some redundant stuff in the original boot.rgu as well as all of the developer comments). I can't tell you what you're doing wrong, but you're definitely doing something wrong. Sorry I can't be more helpful.

[Q] Renaming CAB _setup.XML to .ProvXML, does it work?

Has somebody creating OEM/EXT packages by renaming the _setup.xml files into provxml files to see if it works? The syntax seems to be exactly the same.
the syntax/language is the same.
what it is important to note is that a provxml file needs all files to be named as written in the code and be there at the moment the code calls them. If it is not the case, the file will not be installed at all and any provxml files coming afterwards will not be processed. privileges must be regarded carefully as well.
the xml file in a cab is much more "tolerant".
airxtreme said:
Has somebody creating OEM/EXT packages by renaming the _setup.xml files into provxml files to see if it works? The syntax seems to be exactly the same.
Click to expand...
Click to collapse
I usually do that, it works, but I have to remove the xml header
Code:
<?xml version="1.0" encoding="utf-8" ?>
...

[problem] Delete a file with a provxml

Hello my friends,
I would like to disable Microsoft Voice Commande on my rom.
For this, i need to delete the voice command.lnk on Windows\Startup.
I have created a provxml file :
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE4%\Voice Command.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Nevertheless, it don't function
Anyone have an idea for this problem ?
Thanks a lot,
regards,
Nixeus
VC .lnk is also in reg, HKEY_LOCAL_MACHINE\ControlPanel\Voice Command- just change it to 1 if I remember correctly and add it to your personal reg
Why not just remove the bit in mxip_voicecommand_1.provxml that copies the lnk to windows\startup in the first place?
pkoper said:
Why not just remove the bit in mxip_voicecommand_1.provxml that copies the lnk to windows\startup in the first place?
Click to expand...
Click to collapse
Because i need to re-modify this PROVXML for each Build
If i create my own provxml which remove the lnk, it will be better.
You can always just drop the modified xml into your EXT.
I think it's note "clean" because there will always the provxml which copy the lnk.
If i update my WM Builds, i need to re-remove this proxml, thaht why i would lke to creat a proxml wich delete this lnk on startup.
Anyone have an idea why my proxml don't function ?
If you modify the provxml setting the link and copy it without renaming it to your EXT, then it will be "clean".
During "cooking" the modified provxml will overwrite the original one in SYS.
That way, when you update the build, there will always be the modified one in EXT that will be processed after the one sitting in your SYS.
pkoper said:
If you modify the provxml setting the link and copy it without renaming it to your EXT, then it will be "clean".
During "cooking" the modified provxml will overwrite the original one in SYS.
That way, when you update the build, there will always be the modified one in EXT that will be processed after the one sitting in your SYS.
Click to expand...
Click to collapse
+1 This is the way I do mine.
Yesss my friends
I understand !
You're right !
Thanks a lot and sorry for this question...i use never provxml !
regards,
Nixeus
pkoper said:
If you modify the provxml setting the link and copy it without renaming it to your EXT, then it will be "clean".
During "cooking" the modified provxml will overwrite the original one in SYS.
That way, when you update the build, there will always be the modified one in EXT that will be processed after the one sitting in your SYS.
Click to expand...
Click to collapse
I have try but it don't function
I have modify the provxml and i have copy it in my EXT folder.
After flashing, the lnk have been copied in windows\Startup
Did you check you build-log to make sure that the provxml was over-written? That's the first thing to do. It has to have the same name as the stock one. And make sure you editted the provxml (they're usually read-only, you need to change the properties).
If we're talking voice command, I believe there are 3 different provxml's that do the same thing. These are the ones I've always run into:
mxip_voicecommand_1.provxml
mxipcold_voicecommand_1.provxml
mxipupdate_voicecommand_1.provxml
Check your voice command package, you probably missed two of them, lol. Just delete them and stop screwing around.
Yes, i use the 3 provxml.
I have look to my log and.....it appear the PlatformeRebuilder don't overwrite the provxml files ! Yeah yeah !
Keep in mind that if you like to overwrite a provxml or any other file the
kitchen follows a alphabetic order for your EXT packages.
Nixeus said:
Yes, i use the 3 provxml.
I have look to my log and.....it appear the PlatformeRebuilder don't overwrite the provxml files ! Yeah yeah !
Click to expand...
Click to collapse
Laurentius26 said:
Keep in mind that if you like to overwrite a provxml or any other file the
kitchen follows a alphabetic order for your EXT packages.
Click to expand...
Click to collapse
I know, and i have respected the alphabetic order, my 3 provxmls are placed in ext in a ZZ_TWEAK.
I see that this folder is proceed at the end of plateformerebuilder, and....no overwritting

.RGU file entries not applied.

While cooking my ROM for testing under emulator, i create a directory called "MyTweeks" and copy it under sys folder.
That directory includes the following files:
1- "mytones.mp3".
2- "initflashfiles.txt" --> empty.
3- "option.xml" --> contents are not necessary.
4- "7fd5181e-f7fc-4404-908a-7f71e2568c53.rgu"
The .RGU file includes:
REGEDIT4
;
; Set Default RingTone
;
[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="apr"
"Sound"="\\Windows\\mytones.mp3"
After the ROM boots-up, i found the .MP3 file copied successfully to \windows directory, but the registry tweak is not there
can any one tell me what's wrong with this .RGU?
Also, any registry entry is missing....
You should post this to the respective kitchen thread to get an answer.
you better check for duplicated GUID(number) or post your whole rgu contents. do you have enter(empty line) at its end?
eventually - another guid has priority because of overall number rule(thus your tweak is overwritten by another rgu).
and ignore posts like above...it's typical here;/(you know +1 to posts count, but 0 help given).
pupakota said:
you better check for duplicated GUID(number) or post your whole rgu contents. do you have enter(empty line) at its end?
eventually - another guid has priority because of overall number rule(thus your tweak is overwritten by another rgu).
and ignore posts like above...it's typical here;/(you know +1 to posts count, but 0 help given).
Click to expand...
Click to collapse
Your comment sounds good for me.
I already post all the content of the .RGU file as above, nothing more in the file.
Yes, i entered a blank line just before the end of the file.
There is no other GUID with the same name in the whole project at all, it is actualy unique number like this:
7fd5181e-f7fc-4404-908a-7f71e2568c53.rgu
How can i give this .RGU a priority? or make the changes after all other changes?
if this question couldn't be answer here, where exactly should i post (whitch Threads)?
higher number has higher priority(at last in normal kitchens), so ffxxxxxx- will overwrite 7fxxxxxx-.
just do search for HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0 on whole kitchen(UNICODE search) to determine, if that reg entry is doubled/tripled etc...also, make another search(ascii search) for same reg entry regarding provxmls(as it's another way of reg import, and this is overwriting all rgu's eventually).
on the other hand i wonder about mp3 as ringtone, are you sure, if that file is ok(i mean, if it really work as ringtone on your actual rom)? sometimes system sets ringtone to default, if file set is let's say..bad.
btw, do not make guid by yourself, use tool for this:
www.guidgen.com
ahhh, another thought:
try to add
"DefaultSound"="\\windows\\xxx.xxx"
to your reg.
|
v
Code:
REGEDIT4
[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="apr"
"DefaultSound"="\\Windows\\mytones.mp3"
pupakota said:
higher number has higher priority(at last in normal kitchens), so ffxxxxxx- will overwrite 7fxxxxxx-.
just do search for HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0 on whole kitchen(UNICODE search) to determine, if that reg entry is doubled/tripled etc...also, make another search(ascii search) for same reg entry regarding provxmls(as it's another way of reg import, and this is overwriting all rgu's eventually).
on the other hand i wonder about mp3 as ringtone, are you sure, if that file is ok(i mean, if it really work as ringtone on your actual rom)? sometimes system sets ringtone to default, if file set is let's say..bad.
btw, do not make guid by yourself, use tool for this:
www.guidgen.com
ahhh, another thought:
try to add
"DefaultSound"="\\windows\\xxx.xxx"
to your reg.
|
v
Code:
REGEDIT4
[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Script"="apr"
"DefaultSound"="\\Windows\\mytones.mp3"
Click to expand...
Click to collapse
1- MP3 as a ringtone is working fine if i manually change it. why you're wondering about that?
2- I tried to do the registry manually after booting, it works great. but in kitchen it isn't.
3- I tried many time to Generate a UUID by the help of the site you sent me with no success.
4- I did a search in the project and found the following:
Search "RingTone0" (4 hits in 4 files)
G:\HTC-HD2\Work\SYS\OS\mxipupdate_metabase_001.provxml (1 hits)
Line 1: <?xml version="1.0"?><wap-provisioningdoc><characteristic type="Metabase"><characteristic type="FileOperation\%CE2%\MenuUpArrowDisabled.bmp\*" translation="install"><parm name="datatype" value="string" /><parm name="semantic-type" value="file" /><parm name="rw-access" value="3" /><parm name="access-role" value="88" /></characteristic><characteristic type="FileOperation\%CE2%\MenuUpArrowBackground.bmp\*" translation="install"><parm name="datatype" value="string" /><parm name="semantic-type" value="file" /><parm name="rw-access" value="3" /><parm name="access-role" value="88" /></characteristic><characteristic type="FileOperation\%CE2%\MenuUpArrow.bmp\*" translation="install"><parm name="datatype" value="string" /><parm name="semantic-type" value="file" /><parm name="rw-access" value="3" /><parm name="access-role" value="88" /></characteristic><characteristic type="FileOperation\%CE2%\MenuSelector.bmp\*" translation="install"><parm name="datatype" value="string" /><parm name="semantic-type" value...
G:\HTC-HD2\Work\SYS\Phone\2a6583ff-6047-46cc-b9be-b7deca1152c3.rgu (1 hits)
Line 125: [HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
G:\HTC-HD2\Work\SYS\Shell\mxip_system.vol (1 hits)
Line 71: 
G:\HTC-HD2\Work\SYS\zzz_MyTweeks\ffe8dc40-7d63-11e0-a411-0800200c9a66.rgu (1 hits)
Line 17: [HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
5- I tried "DefaultSound" with no success.
Thanks.
You didn't mention a .dsm. I suspect you need to create one with the same guid as the .rgu.
Farmer Ted said:
You didn't mention a .dsm. I suspect you need to create one with the same guid as the .rgu.
Click to expand...
Click to collapse
I used "totalfire" to create one but the same problem still there.
also, if i removed it from the folder, the BuildOS creates a dummy one with the same results.
really, i fed-up, but i'm thanking all of you whom tried to help
I just need any one of whom success to apply his own registry tweaks in his cooked ROM to tell me how he did it..
As Simple As this....
edit.. I attached the files that i need it to be installed...
ok, this may be weird what i am gonna write, but have you tried to place your ringtone in proper place designed for additional ringtones by initflashfiles?
here's catch - some things WONT work when not COPIED while first boot.
i have no time for explaining this, but try to edit initflashfiles to copy this ringtone to proper place, than edit reg to match.
and another interesting thing: try to rename Mytones to mytones.
before this - check one thing with rom that was not working earlier - make sr, and go into windows to see, if your file became..folder.
there's small chance of getting weirdness with files with capital letters in name, sometimes.
and finally - did you make softreset before checking, if ringtone is set after flash(do NOT check this before first softreset)?
and postfinally - convert your file to something native for WM(weak advice, but...).
btw, skip dsm for this, it is useless for such things.
@pupakota
I tried but still something wrong.
I have no problems with the file copy, the file copied successfully.
The problem with the registry entries... any registry entries within the .RGU file didn't applied after flashing the ROM or even First Softreset after first boot.......
There are nothing changed in the emulator registry for any of the registry entries.
one thing, you are making this for emulator(Oo)?
have you checked your pack on real device?
you shouldn't take emulator behaviour as sure mirror of real thing...
You should try putting another registry key into that .rgu; it could just be a dummy key (like hklm\software\test). Then see if it is parsed during cooking. It's starting to sound more like a provxml is over-writing your values during bootup.
Farmer Ted said:
You should try putting another registry key into that .rgu; it could just be a dummy key (like hklm\software\test). Then see if it is parsed during cooking. It's starting to sound more like a provxml is over-writing your values during bootup.
Click to expand...
Click to collapse
That's exactly what happened.
The Dummy was not posted.
So, Whitch provxml is over writing my REG? or how i could come over this prob?.
robekia1 said:
That's exactly what happened.
The Dummy was not posted.
So, Whitch provxml is over writing my REG? or how i could come over this prob?.
Click to expand...
Click to collapse
Search for all provxml in oem, and go through them!

Categories

Resources