[ROM cooking]Customize Manila Home timezone - Windows Mobile Development and Hacking General

Hope this is no double post, but I didn't find it anywhere else.
While preparing my own ROM, I failed to set the default timezone of the Manila home screen. It was always New Dehli, whatever .rgu, .reg files I changed.
Found the solution just today.
The Manila timezone is set during startup of Manila by the program "SetSystemTimeZone.exe". It reads the registry entry "HKEY_LOCAL_MACHINE\Software\HTC\DefaultTz".
My settings to get the timezone in Manila to Tokyo are now:
In the OperatorPkg I change in the .rgu file the value for DefaultTz:
[HKEY_LOCAL_MACHINE\Software\HTC]
"DefaultTz"=dword:000000EB
Click to expand...
Click to collapse
The list of codes can be found in the Windows Mobile Development Center.
In the Manila package I change in the app.reg file the values for the clock:
"WorldClock.CityList"="ASI|JP|JA041|TOKYO,EUR|DE|GM001|HEILBRONN,ASI|PH|RP077|MAKATI,NAM|US|MI|DETROIT"
"WorldClock.CurrTimeZone"=hex:e4,fd,ff,ff,54,00,6f,00,6b,00,79,00,6f,00,20,00,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,54,00,6f,00,6b,00,79,00,6f,00,20,00,44,00,61,00,79,00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,c4,ff,ff,ff
"WorldClock.IsPreset"=dword:00000001
"WorldClock.LocalIndex"=dword:00000000
Click to expand...
Click to collapse
Search all packages for duplicate entries of these registry settings. I found the "WorldClock.CityList" in several OEM packages and in the Manila package. Make sure that the entry exist only once.
Now my ROM has no longer NewDehli as default timezone after reset.

Related

[SOLVED] Display is missing from Settings -> System

Dear Members,
1. I have lost the icon to access display settings in my cooked roms. Meaning i cannot access the screen alignment or clear type settings. I have tried adding reg below as well:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\Start\Settings\System\cplmain.cpl,7]
"Icon"="\\Windows\\Start_Icon_Screen.png"
Click to expand...
Click to collapse
I cant access clear type settings from manila as well.
2. My HTC Recorder fails to appear in my start menu as well. I have set it to appear under "Multimedia" folder in app.dat. I have checked spelling and the lnk is present in the files folder.
In effort to solve this prob, i have checked initflashfiles.dat and searched all provxml files to see if something is deleting it (used ervius kitchen editor function to search for "Recorder" string under all files and appears to be ok)
Also, i have tried 2 different builds of SYS - both boots up properly but with same problem. Please advice what i could be doing wrong.
Thanks in advance.
Details:
Base: TMOUS 2.13
SYS: 21903 / 21892
SOLUTION - Refer to post 3 by Braakie
nothing seems to be wrong... can you please post what are you using to change the registries.. i guess if you are not using UIA icons you will have some troubles.
tidus18 said:
Dear Members,
1. I have lost the icon to access display settings in my cooked roms. Meaning i cannot access the screen alignment or clear type settings. I have tried adding reg below as well:
I cant access clear type settings from manila as well.
2. My HTC Recorder fails to appear in my start menu as well. I have set it to appear under "Multimedia" folder in app.dat. I have checked spelling and the lnk is present in the files folder.
In effort to solve this prob, i have checked initflashfiles.dat and searched all provxml files to see if something is deleting it (used ervius kitchen editor function to search for "Recorder" string under all files and appears to be ok)
Also, i have tried 2 different builds of SYS - both boots up properly but with same problem. Please advice what i could be doing wrong.
Thanks in advance.
Details:
Base: TMOUS 2.13
SYS: 21903 / 21892
Click to expand...
Click to collapse
1) In your \OEM\LEO\COMMON\OEMDrivers folder, there is a 21b6ed86-a505-4ad7-a4aa-b8bb93c926d9.rgu file with this registery entry, change it from 1 to 0:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]
"Hide"=dword:0
2) For the HTC Recorder, change your pad in the \OEM\LEO\0409\OEM_Lang_0409 initflashfiles.dat file, search for "VoiceRecorder", and change Tools to Multimedia:
Directory("\Windows\Start Menu\Programs\Multimedia"):-File("Voice Recorder.lnk","\Windows\Recorder.lnk")
ps: This is the English translation, change it in your own language.
details
Thanks guys,
Will recheck the paths and spellings. I have removed all entries in initflashfiles.dat all except the non HTC stuffs and placed it under its respective app.dat in ext folder. Im customizing the location and icon pictures of basic wm stuffs (ie: home, search phone, help,games etc.) using provxmls.
What i have done so far:
1. Copied all these provxmls below to a "zzz_newXML" ext package and edited to new path i want.
mxip_MyPhone_100.provxml
mxipcold_marketplace_100.provxml
mxipupdate_office_100.provxml
mxipupdate_onenote_100.provxml
mxipupdate_projectdefault_a_000.provxml
mxipupdate_RemoteDesktopMobile.provxml
mxipupdate_taskmgr_shell_1.provxml
mxipupdate_welcomecenter_1.provxml
mxipupdate_windowslive_1.provxml
mxipupdate_windowsliveim_1.provxml
Click to expand...
Click to collapse
2. So the original is left untouched in SYS/OEM folder. Provxmls which assigns/resorts icons have been blanked out and placed in "zzz_newXML" files folder to overwrite the default paths so that i can fully control all icons using single provxml.
3. I am using mxipinit_startmenu_001.provxml in XDA\EVK\OEM\LEO\0409\ProjectDefault_A to do start menu rearrangement. All Ext package icons customizations in placed in its respective folders.
My reason for choosing this method is so that i dont have to go to initflashfiles.dat or provxmls in new SYS package whenever i update system builds or add/remove ext package.
I have attached mxipinit_startmenu_001.provxml (from item 3 above) and my initflashfiles.dat if you guys need more details. Please advice if there are any other better/easier way of doing this customization.
Thanks in advance and sorry for the late reply!
Braakie said:
1) In your \OEM\LEO\COMMON\OEMDrivers folder, there is a 21b6ed86-a505-4ad7-a4aa-b8bb93c926d9.rgu file with this registery entry, change it from 1 to 0:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]
"Hide"=dword:0
2) For the HTC Recorder, change your pad in the \OEM\LEO\0409\OEM_Lang_0409 initflashfiles.dat file, search for "VoiceRecorder", and change Tools to Multimedia:
Directory("\Windows\Start Menu\Programs\Multimedia"):-File("Voice Recorder.lnk","\Windows\Recorder.lnk")
ps: This is the English translation, change it in your own language.
Click to expand...
Click to collapse
Thanks Braakie! Finally found time to rebuild rom with the reg key and that did bring back Screen option in settings. I still couldnt get the recorder right, maybe something wrong with the ext package itself.
I think we can change it to solved now as my main concern was with screen settings.

[Solved]Double start menu settings icon

I've modified the settings_improvement app.reg to include:
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000000
But now I get 2 settings icons in the start menu; 1 points to WM 6.5 settings (which I want) and the other takes me to the manila settings tab. I've scoured my .dat, .rgu and provxml files but can't find any references to the settings icon except the dir setup in initflashes.dat (removing that seems to remove settings altogether). Any ideas where I should be looking?
Thanks
millski said:
I've modified the settings_improvement app.reg to include:
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000000
But now I get 2 settings icons in the start menu; 1 points to WM 6.5 settings (which I want) and the other takes me to the manila settings tab. I've scoured my .dat, .rgu and provxml files but can't find any references to the settings icon except the dir setup in initflashes.dat (removing that seems to remove settings altogether). Any ideas where I should be looking?
Thanks
Click to expand...
Click to collapse
open your app.reg in settings improvement pkg you will find the reg there and it should be like this
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000001
twopumpchump said:
open your app.reg in settings improvement pkg you will find the reg there and it should be like this
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000001
Click to expand...
Click to collapse
Thanks, but that just gives me the manila settings icon
You need to delete settings.lnk from your manila files.
Found it. The correct settings are:
Settings_Improvement app.reg:
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000000
And Settings_Improvement\0409 app.reg:
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\Start\Settings.lnk]
"HTCLauncher.Exclusive"=dword:00000001
It was this second setting, in the 0409 subdir that I was missing (by default it's set to '0')
Hmm, spoke too soon - the problem still exists for me *sigh*. Does anyone know of anywhere in the provxml's or dat files that this setting icon is being forced to go to manila instead of wm other than the settings_improvement app.reg??? Using a Leo 2.13 dump on 23568 btw.
twopumpchump said:
Code:
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo]
"HideSettings"=dword:00000001
Click to expand...
Click to collapse
ai6908 said:
You need to delete settings.lnk from your manila files.
Click to expand...
Click to collapse
This is all you need to do
ai6908 said:
You need to delete settings.lnk from your manila files.
Click to expand...
Click to collapse
In Settings Improvement to be precise...
And check up your initflashfiles.dat for sure...
Found a settings.lnk in my manila_settings dir. Some idiot must have copied it there...
Sorry!

Override reg setting of a Package with another Package?

Basically I want to override the reg settings for a bunch of EXT Packages with my own settings.
Lets say I have 2 EXT Packages Prog_A and Prog_B, they both modify
Quote:
[HKEY_LOCAL_MACHINE\Something\Something]
"blabla"=dword: xxxxxxx
Click to expand...
Click to collapse
Prog_A sets it to dword:00000001
Prog_A sets it to dword:00000002
I add my own EXT Pack called Fix_A and it set it to dword:00000000
who's settings will end up being applied last and end up after the install? I have settings for a lot of programs and changing the settings in each one will take a long long time.
Touch Pro 2
using osKitchen
Look at your build-log to see the order (hint, it's alphabetical). I bet you can figure a way to get the packages in the right order. I also bet someone will tell you exactly waht to do so you won't have to figure it out yourself.
You are allowed to just change the values in the original package. Just put a comment in the .reg file that says what the original vales were. That's what I'd do. I'll let you figure out how to comment in .reg files if you don't already know how.
Ivan275 said:
Basically I want to override the reg settings for a bunch of EXT Packages with my own settings.
Lets say I have 2 EXT Packages Prog_A and Prog_B, they both modify
Quote:
Prog_A sets it to dword:00000001
Prog_A sets it to dword:00000002
I add my own EXT Pack called Fix_A and it set it to dword:00000000
who's settings will end up being applied last and end up after the install? I have settings for a lot of programs and changing the settings in each one will take a long long time.
Touch Pro 2
using osKitchen
Click to expand...
Click to collapse
Right-click on the Fix_A package, click on Properties, Priority, Add and select the Prog_A / Prog_B packages in the package selection screen.

[SOLVED] Start Menu icon that just won't go away

So I added MP3 Trimmer to my kitchen, but moved the location of the start icon to a Tools folder. The problem: an MP3 Trimmer icon remains in the initial start page. There is no associated .lnk file in the Start Menu\Programs folder, and the registry HKLM\Security\Shell\Startinfo\Start has the reference to the link in the correct spot.
I have tried placing the link by moving it from the default location with a MortScript, and by changing the app.dat. Same results.
I have done this same move with many other packages, this is the only one causing any problems.
No other references to MP3 Trimmer.lnk exist in the registry or kitchen. Why is it displayed in the start menu when no .lnk is present, and where is that information coming from? Thanks!
Did you check your Initflashfile.dat ?
Also the language folder may contain a app.dat or .provxml file which creates the shortcut
I didn't bothered about two folders that was empty in "\windows\start menu\programs\" until I read this post. I found one of them in Initflashfile.dat, "Outlook" and had deleted the line away. I'm still unable to find the other folder "Start Menu". It's not in Initflashfile.dat, nor any of the xml or proxml files in the "OEM Packages" folder. :-(
Check for some App.dat in EXT folder or a provxml in Project A.
Both OsKitchen and EVK has a search string inside,use it to find your dead folder.
zard said:
I didn't bothered about two folders that was empty in "\windows\start menu\programs\" until I read this post. I found one of them in Initflashfile.dat, "Outlook" and had deleted the line away. I'm still unable to find the other folder "Start Menu". It's not in Initflashfile.dat, nor any of the xml or proxml files in the "OEM Packages" folder. :-(
Click to expand...
Click to collapse
af974 said:
Check for some App.dat in EXT folder or a provxml in Project A.
Both OsKitchen and EVK has a search string inside,use it to find your dead folder.
Click to expand...
Click to collapse
I'm using OSKitchen. It's not in provxml in Project A. I tried using search in OSKitchen to search "Start Menu" and "Start*.*" but can't find it. :-(
Ok, i dunno why you didnt find nothing ...anyway, cook the attached file in your rom, i have set it for deleting any Start Menu.lnk in Start Menu\Programs.
Basically you can use it for deleting any dead links.
If it doesnt work try to leave ".lnk" after Start Menu.
It is a mortscript , i have include also Mortscript package in case you dont have it.
zard said:
I'm using OSKitchen. It's not in provxml in Project A. I tried using search in OSKitchen to search "Start Menu" and "Start*.*" but can't find it. :-(
Click to expand...
Click to collapse
zard said:
I'm using OSKitchen. It's not in provxml in Project A. I tried using search in OSKitchen to search "Start Menu" and "Start*.*" but can't find it. :-(
Click to expand...
Click to collapse
You probably can't find it because of hexadecimal or html entities values in which the shortcut name is probably encoded into, try looking for the encoded values instead.
Check to make sure autoshortcut isn't doing it (it could be in a reg file). Autoshortcut sucks, but I don't know if it's still used.
airxtreme said:
You probably can't find it because of hexadecimal or html entities values in which the shortcut name is probably encoded into, try looking for the encoded values instead.
Click to expand...
Click to collapse
I did try hexadecimal and html but still couldn't find it. I'm using v1.31. Maybe it is the format of the search that I'm not doing right.
af974 said:
Ok, i dunno why you didnt find nothing ...anyway, cook the attached file in your rom, i have set it for deleting any Start Menu.lnk in Start Menu\Programs.
Basically you can use it for deleting any dead links.
If it doesnt work try to leave ".lnk" after Start Menu.
It is a mortscript , i have include also Mortscript package in case you dont have it.
Click to expand...
Click to collapse
Thanks for this but unfortunately, my kitchen is screwed up when I tried out your packages. My kitchen was alright before that. Even unchecking the two packages didn't help.
Don't worry, I'm not blaming you for the problem in my kitchen. Will have to find out what went wrong before I can test your packages again and hopefully, it can solve the problem since I can't find the culprit within my packages.
Farmer Ted said:
Check to make sure autoshortcut isn't doing it (it could be in a reg file). Autoshortcut sucks, but I don't know if it's still used.
Click to expand...
Click to collapse
Still very new to cooking so don't know what you meant by "Autoshortcut". :-(
HTC puts a file called autoshortcut.exe in one of the oem folders. It runs during customization, and creates shortcuts for htc apps. There are reg keys in the apps that get the shortcuts.
oooo__OoO__oooo said:
So I added MP3 Trimmer to my kitchen, but moved the location of the start icon to a Tools folder. The problem: an MP3 Trimmer icon remains in the initial start page. There is no associated .lnk file in the Start Menu\Programs folder, and the registry HKLM\Security\Shell\Startinfo\Start has the reference to the link in the correct spot.
I have tried placing the link by moving it from the default location with a MortScript, and by changing the app.dat. Same results.
I have done this same move with many other packages, this is the only one causing any problems.
No other references to MP3 Trimmer.lnk exist in the registry or kitchen. Why is it displayed in the start menu when no .lnk is present, and where is that information coming from? Thanks!
Click to expand...
Click to collapse
It is 100 % a app.dat or initflashfiles.dat issue. Or a reg in the 0409 folder.
Also when looking in you initflashfiles be careful to look for entries that point to Windows\Start Menu
instead of Windows\Start Menu\Programs
bobsbbq said:
It is 100 % a app.dat or initflashfiles.dat issue. Or a reg in the 0409 folder.
Also when looking in you initflashfiles be careful to look for entries that point to Windows\Start Menu
instead of Windows\Start Menu\Programs
Click to expand...
Click to collapse
What I'm talking about is behavior on the phone itself. Let's assume my kitchen searches have been wrong and it really is an app.dat issue. I have a shortcut that exists in the start menu with no associated link file or reg entry -- so there's nothing to delete to get rid of the shortcut on the actual phone!
Kitchen searches result in only the expected "MP3 Trimmer.lnk" locations and "MP3Trimmer.exe" text.
As far as I can tell, ManilaShortcut.exe only makes shortcuts for HTC People and HTC Calendar (but I have IsShortcutEnable = 0 to keep those from popping up). MP3 Trimmer isn't in the original ROM from which the Manila is based, so it's possible there's something going on there.
It's not a huge issue so I haven't been spending a lot of time trying to find or fix it, but I'm virtually out of bugs to fix. What's bothering me more is something seemingly simple that I don't understand.
oooo__OoO__oooo said:
What I'm talking about is behavior on the phone itself. Let's assume my kitchen searches have been wrong and it really is an app.dat issue. I have a shortcut that exists in the start menu with no associated link file or reg entry -- so there's nothing to delete to get rid of the shortcut on the actual phone!
Kitchen searches result in only the expected "MP3 Trimmer.lnk" locations and "MP3Trimmer.exe" text.
As far as I can tell, ManilaShortcut.exe only makes shortcuts for HTC People and HTC Calendar (but I have IsShortcutEnable = 0 to keep those from popping up). MP3 Trimmer isn't in the original ROM from which the Manila is based, so it's possible there's something going on there.
It's not a huge issue so I haven't been spending a lot of time trying to find or fix it, but I'm virtually out of bugs to fix. What's bothering me more is something seemingly simple that I don't understand.
Click to expand...
Click to collapse
I know how frustrating this is and I have had the same in the past. I know this is not what you want to hear but the fact is there is only a few ways for a shortcut to be created. Mainly initflashfiles.dat to move or rename shortcuts, and app.reg or rgu files to create shortcuts, and by way of provxml file. The chances are 99% one of the above. But there is also the possibility of shortcuts to be created by mortscript as well but if it is your kitchen I would think you would know if you created a mortscript. There is also the Older HTC Auto shortcut found in some reg files.
I know it is sometimes hard to find but you will eventually find it.
By the way where did the package from the MP3 trimmer come from? Was it from a chinese ROM?
af974 said:
Ok, i dunno why you didnt find nothing ...anyway, cook the attached file in your rom, i have set it for deleting any Start Menu.lnk in Start Menu\Programs.
Basically you can use it for deleting any dead links.
If it doesnt work try to leave ".lnk" after Start Menu.
It is a mortscript , i have include also Mortscript package in case you dont have it.
Click to expand...
Click to collapse
bobsbbq said:
It is 100 % a app.dat or initflashfiles.dat issue. Or a reg in the 0409 folder.
Also when looking in you initflashfiles be careful to look for entries that point to Windows\Start Menu
instead of Windows\Start Menu\Programs
Click to expand...
Click to collapse
bobsbbq said:
I know how frustrating this is and I have had the same in the past. I know this is not what you want to hear but the fact is there is only a few ways for a shortcut to be created. Mainly initflashfiles.dat to move or rename shortcuts, and app.reg or rgu files to create shortcuts, and by way of provxml file. The chances are 99% one of the above. But there is also the possibility of shortcuts to be created by mortscript as well but if it is your kitchen I would think you would know if you created a mortscript. There is also the Older HTC Auto shortcut found in some reg files.
I know it is sometimes hard to find but you will eventually find it.
By the way where did the package from the MP3 trimmer come from? Was it from a chinese ROM?
Click to expand...
Click to collapse
Since I was trying to improve on the response of my Contacts in Manila 2018 by mixing and matching 2016 and 2018 tabs, I took the opportunity to continue to search the elusive "Start Menu" folder in my Start Menu.
I was still not able to find it in the initflashfiles, nor dat, app.reg or proxmls. I modified the mortscript that af974 gave me into "Delete("\Windows\Start Menu\Programs\Start Menu.lnk")" and ran it from SD Card. Even after soft reset, the "Start Menu" folder is still there.
What I find strange is that in my \Windows directory, there was no "Start Menu.lnk" - I'm using Resco Explorer and is able to see hidden files. But in \Windows\Start Menu\Programs, I could see "Start Menu" folder. I was able to delete it using Resco Explorer.
bobsbbq said:
I know how frustrating this is and I have had the same in the past. I know this is not what you want to hear but the fact is there is only a few ways for a shortcut to be created. Mainly initflashfiles.dat to move or rename shortcuts, and app.reg or rgu files to create shortcuts, and by way of provxml file. The chances are 99% one of the above. But there is also the possibility of shortcuts to be created by mortscript as well but if it is your kitchen I would think you would know if you created a mortscript. There is also the Older HTC Auto shortcut found in some reg files.
I know it is sometimes hard to find but you will eventually find it.
By the way where did the package from the MP3 trimmer come from? Was it from a chinese ROM?
Click to expand...
Click to collapse
To the best of my ability utilizing search there is no reference to the link or the executable in any initflashfiles.dat/app.dat/.reg/.rgu/.*xml. Even the hex coded .dat entries still refer to a "normal" name.lnk, so my search should uncover those.
I pulled the MP3 Trimmer from the Rhodium 2.07 EXT latest packages, which is from an asian ROM at least judging from the links in the original app.dat.
No autoshortcut.exe exists in the ROM. The MP3 Trimmer and a bunch of other packages create an AutoShortcut key, but there's nothing under that so I'm not sure exactly how it's used (and it would therefore be present even if I deleted it from the trimmer package).
My guess is that it has to be either the start menu initial creation process some Manila initialization process that is creating the initial link. How it gets into a state where it remains in the start menu but no information exists to delete it is the 2nd question -- where is that information??
I've verified if I delete \Windows\Start Menu\Programs, then copy the directory structure back in the link goes away. This could be a solution long term, but I was trying to stick to the automatic creation process as much as possible.
Thanks to those who have responded and provided input so far.
Looking at a stock rom dump for the raphael, the autoshortcut operations are in a .provxml in the 0409 folders, like this:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="\Windows\Start Menu\Programs\Streaming Media.lnk" value="\Windows\Streaming Media.lnk" datatype="string" translation="install"/>
<parm name="\Windows\Help\Streaming Media.lnk" value="\Windows\Help_Streaming Media.lnk" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
The autoshortcut.exe is in oemdrivers. I really don't even know what the point of it is; I guess it's for book-keeping, to keep track in the registry of all the shortcuts being moved around. It could just be done by a provxml file operation instead of by autoshortcut during customization, but whatever, that's how it's done. Just try deleting the autoshortcut references. Heck, delete or rename the shortcut in the kitchen and send it to the start menu a different way (like by renaming it while copying it with an app.dat file).
Farmer Ted said:
Heck, delete or rename the shortcut in the kitchen and send it to the start menu a different way (like by renaming it while copying it with an app.dat file).
Click to expand...
Click to collapse
OK, I'm going to modify the orignal post as solved, because this simple idea (which of course didn't occur to me) is the ticket. I renamed the .lnk to .link in the kitchen and it's renamed back to .lnk when copied by the app.dat. Presto change-o, no MP3 Trimmer.lnk file in \Windows. Works like a charm.

[SOLVED] Setting time to 24 hour by default on first boot

EDIT: I now have the reg keys I need and am to set both the main screen and start menu. I now just looking to set the time at first boot.
[HKEY_LOCAL_MACHINE\nls\overrides]
"STFmt"="HH:mm:ss"
"ITime"=dword:00000001
The above keys will work after first boot, but not during first boot process.
Any help would be appreciated.
Many thanks
GhostXSeries
EDIT2: Solved issue thanks to caliban2 for giving me the idea!
Found you need all the following reg keys to make it work!
[HKEY_LOCAL_MACHINE\NLS]
"DefaultLCID"=dword:00000809
"SystemLCID"=dword:00000409 - I assume this points to your region?
"LegacyLocaleMode"=dword:00000001
[HKEY_LOCAL_MACHINE\NLS\overrides]
"ITMPN"=dword:00000009
"ITLZr"=dword:00000001
"ITime"=dword:00000001
"STFmt"="HH:mm:ss"
"STime"=":"
Thanks again for your help!
Both backgrounds are set in their corresponding *.cpr file(s). You can either change it there and re-direct it to your image or simply rename your image and over-write the stock WM image.
Reg key for 24 hour:
Code:
[HKEY_LOCAL_MACHINE\nls\overrides]
"STFmt"="HH:mm:ss"
jmart518 said:
Both backgrounds are set in their corresponding *.cpr file(s). You can either change it there and re-direct it to your image or simply rename your image and over-write the stock WM image.
Reg key for 24 hour:
Code:
[HKEY_LOCAL_MACHINE\nls\overrides]
"STFmt"="HH:mm:ss"
Click to expand...
Click to collapse
Thanks for getting back to me so quickly. had a brain wave and renamed one of the wallpapers and then did a search through the registery for that new file name. Found it under
HKEYCU\controlpanel\desktop\wallpaer!
I have been looking for the 24 hour key for ages! Cheers
When I cooked both registery keys into the rom neither worked. Time is still 12 hour and the background screen is still default. Even though when I go in to the desktop registery key the entry is the one I entered
for the time format ...
HkLM\nls\overrides:
12h am-pm
ITime = 0
S1159= AM
S2359= PM
STFmt = h:mm:ss tt
Click to expand...
Click to collapse
24h:
ITime=1
STFmt = HH:mm:ss
Click to expand...
Click to collapse
I'm sorry, I miss understood what you were looking for originally. Are you trying to set a wallpaper for the first boot? If so, I simply just save my wallpaper as a .gif and name it "Default_stwater_480_800.gif" this will vary depending or device resolution.
As far as the clock settings not sticking, make sure that your reg isn't being over-written later in the cooking process.
Edit:
Thanks Poy, I forgot about "ITime"=dword:00000001
jmart518 said:
I'm sorry, I miss understood what you were looking for originally. Are you trying to set a wallpaper for the first boot? If so, I simply just save my wallpaper as a .gif and name it "Default_stwater_480_800.gif" this will vary depending or device resolution.
As far as the clock settings not sticking, make sure that your reg isn't being over-written later in the cooking process.
Edit:
Thanks Poy, I forgot about "ITime"=dword:00000001
Click to expand...
Click to collapse
You were close with the filename. I found out it was HTC_stwater_480_800.jpg. Once I changed that it then set the default background for me. I simply created an ext package and added the new wallpaper with the same name into a files folder and then set the app.dat file to copy it to the windows directory.
Still working setting the time to 24h
GhostXSeries said:
You were close with the filename. I found out it was HTC_stwater_480_800.jpg. Once I changed that it then set the default background for me. I simply created an ext package and added the new wallpaper with the same name into a files folder and then set the app.dat file to copy it to the windows directory.
Still working setting the time to 24h
Click to expand...
Click to collapse
You also can customize (Don´t remember if Titanium or Start Menu´s background) overwritting files "Default_stwater_480_800.gif" & "Default_stwater_800_480.gif" (depends of resolution).
Is not necessary add an app.dat to the package, because all archives inside "files" folder go to windows folder. If you want a copy of these archives in other folders, then you can set app.dat
Greetings
Grand,
Got start menu background working. Now just looking to set the time to 24 hour format. If I make the changes suggested above after I flash the rom it changes, but If I cook reg changes into the rom and flash it stays at 12 hour.
Something must be overwriting your time settings either later in the cooking process or a provxml. OSB has the ability to preview reg, but I am not sure about OSK (it's just been too long)
manila world clock has the option to change time format 24h/12h so maybe something has to be also changed there ...
I think you could be right. There is definitly something on the initial startup is overriding the cooked registery keys.
try cooking without adding any keys to nls, make your changes in regional settings (winmo-settings) and then export complete nls-key, using it in your kitchen next time.
according to osbuilder, nothing in nls-key is set via provxml, only by boot.rgu and the rgu from base_lang_0xxx (in sys). adding your own reg later in cooking-process should overwrite them just fine.
the important part during 1st boot is LCID (=region), which also defines a standard timeformat for the region.
GhostXSeries said:
EDIT2: Solved issue thanks to caliban2 for giving me the idea!
Found you need all the following reg keys to make it work!
[HKEY_LOCAL_MACHINE\NLS]
"DefaultLCID"=dword:00000809
"SystemLCID"=dword:00000409 - I assume this points to your region?
"LegacyLocaleMode"=dword:00000001
[HKEY_LOCAL_MACHINE\NLS\overrides]
"ITMPN"=dword:00000009
"ITLZr"=dword:00000001
"ITime"=dword:00000001
"STFmt"="HH:mm:ss"
"STime"=":"
Thanks again for your help!
Click to expand...
Click to collapse
the stuff in \overrides shouldn't be necessary. i set my region to english (uk) and here is what i get:
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\nls]
"DefaultACP"=dword:000004e4
"DefaultLCID"=dword:00000809
"DefaultOCP"=dword:00000352
"LegacyLocaleMode"=dword:00000001
"SystemLCID"=dword:00000409
[HKEY_LOCAL_MACHINE\nls\overrides]
"LCID"=dword:00000809
"SSDte"="dd.MM.yyyy"
this gives me 24hr-clock and the crazy date-format you guys use on your island.
while playing with this i noticed that region-settings in manila add lot's of keys in \overrides, while winmo-settings does it's stuff in \nls (except the LCID in overrides).
(nevermind the "SSDte", that key i use for setting date-format on lockscreen.)
[QUOTE
[HKEY_LOCAL_MACHINE\NLS]
"DefaultLCID"=dword:00000809
"SystemLCID"=dword:00000409 - I assume this points to your region?
"LegacyLocaleMode"=dword:00000001
[/QUOTE]
Hello mate,
just to correct you:
"DefaultLCID" points to the region, not "SystemLCID"
Best Regards!
Skyguar

Categories

Resources