PDA

View Full Version : [Updated 10/29] Extended ROM Knowledge Consolitaion


mattk_r
10-10-2007, 10:59 PM
This is a work in progress - please post info / corrections as necessary - and supporting detail!!!

Browsing through the Wiki and not finding what I needed, I hoped to pool together the common knowledge floating around and put together a process for working with the extended rom on our Hermes.

While unlocking/viewing the extended rom is well documented - opening, editing, and launching the extended rom image contents are not - or so my searching has reveiled (or not reveiled ;)).

So far, this is what I have got together / know:

The extended rom, extracted from a dump, is an .nb image. It contains the following files:

AutoRun.exe 'installs the applications
Config.txt 'determines what gets installed / path to file
Assorted cabs to be installed per the Config.txt

Here is an example of an extended rom Config.txt:

LOCK:Enabled
CAB: \Extended_ROM\C_Cingular_GoodEmail_081606.sa.CAB
CAB: \Extended_ROM\C_getmail.htc8525.cab
CAB: \Extended_ROM\C_HSDPA_Wirelss_Modem_Stall.cab
CAB: \Extended_ROM\C_GetTeleNav.CAB
CAB: \Extended_ROM\MT_PC_Hermes_PTT_REG_070129.CAB
CAB: \Extended_ROM\PP_PIE_Default.CAB
CAB: \Extended_ROM\ShortString_Keypad_XML.CAB
CAB: \Extended_ROM\SMS_Setting_07Jun06.CAB
CAB: \Extended_ROM\SPM_Fix_ITS#2990.cab
CAB: \Extended_ROM\PP_XpressMail_launchCamera.cab
CAB: \Extended_ROM\ppcquickstart_QVGA.PPC_Draft_11-17.CAB
CAB: \Extended_ROM\ST_Audio216Patch_20070409.CAB
CAB: \Storage Card\ExtROM\Adobe_Flash_Lite_2.1.cab
CAB: \Storage Card\ExtROM\MsPacMan.cab
LOCK: Disabled 'space added to display properly
RST: Reset

Note that I'm running installs from both the extended rom and the storage card. This prevents the installation file (cab) from staying in the windows directory after installation. In theory, you could move everything to the storage card if you wanted to use the extended rom space for main storage as in the Big Storage ROM that bepe put out.

Here is a PreConfig file for comparison:

LOCK:Enabled
EXEC:\Windows\SetHSDPA.exe /Enable
CAB: \Windows\CM_Mapping_1.29.502.2.CAB
CAB: \Windows\A2DPFix.CAB
CAB: \Windows\ATIFix.cab
CAB: \Windows\restoreHiddenProxy4CWS_0522.cab
XML: \Windows\MP_MMS3.5_CWS_Hermes_070328.xml
XML: \Windows\PP_Generic_ConnSetting_Hermes_CWS.xml
XML: \Windows\PP_Other_Conn_Hermes_CWS.xml
XML: \Windows\PP_UXC_HermesCWS.xml
XML: \Windows\PP_Generic_UI_Hermes_CWS.xml
XML: \Windows\PP_Other_reg.xml
LOCK: Disabled 'space added to display properly
RST: Reset

Note the file path reference, otherwise the format is identical. PreConfig can run any file type - xml, cab, or exe. I need to verify if Config.txt can do the same.

In the Pandora Kitchen v9.2 and beyond, the PreConfig AT&T w/Extended ROM Launch contains the format to do both. Here is a sample PreConfig.txt from it which does both:

LOCK:Enabled
EXEC:\Windows\SetHSDPA.exe /Enable
XML: \Windows\MP_MMS3.5_CWS_Hermes_070328.xml
XML: \Windows\PP_Generic_ConnSetting_Hermes_CWS.xml
XML: \Windows\PP_Other_Conn_Hermes_CWS.xml
XML: \Windows\PP_UXC_HermesCWS.xml
XML: \Windows\PP_Generic_UI_Hermes_CWS.xml
XML: \Windows\PP_Other_reg.xml
Hide:Enabled
EXEC:\Extended_ROM\autorun.exe
LOCK: Disabled 'space added to display properly
RST: Reset

Note that it runs the PreConfig items first, then calls the Extended ROM to run it's Config.txt items.

To create a new extended rom image or look at what's in yours, I attached the exe's provided by Shamanix and ChunkyMonkey which was developed by AnDim: (his thread (http://forum.xda-developers.com/showthread.php?t=303049))

Here is a sample folder of files that would be used to build a functional extended rom: RapidShare Link (http://rapidshare.com/files/61838929/Extended_ROM_Files.zip.html)

Here is the compiled Extended ROM image: RapidShare Link (http://rapidshare.com/files/61841450/Text_ExtROM.zip.html)

A few notes on building the image:

Before adding files to the extended rom, be sure to set them to READ ONLY. While I have not verifed this on the Hermes, the Wizard would not install files which were not saved as read only first.

It's been said that only cabs which have been signed can be used. Using existing cabs from the carrier's extended rom should be fine. I've also successfully installed a number of others from the extended rom, including the Windows Live 33.0600 and Sleuth's ATI and A2DP Fix.

Warning!! If you reference a file that does not exist, the installation progress will stop and you are forced to reset (and everything after the missing file will not be installed).

Warning!! Your total extended rom image size cannot exceed 10 meg (exact value to follow)!!! I do not know (yet) what the tool will do if you exceed this size, but that is the size limit of the extended rom memory allocation.

More info yet to be asymilated: http://forum.xda-developers.com/showpost.php?p=759609&postcount=131

Here's some commands from the previous link:

CAB - run a cab files
EXEC - execute a program or application
CPY1 - Source of the File to be copy
CPY2 - Destination of the File to be copy as stated in CPY1
RST - Make a soft reset

More content to follow... :)

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

Reasons to use the AutoRun for installing rather than storage:

1. Automating customization after a hard reset/flash
2. Installing from the extended rom/SD helps reduce Windows folder "bloat" by keeping the installation CAB and installed files out of the windows directory.
3. SD Memory is cheap. I'd rather install from there and have more storage on the phone.
4. ...
5. ...

Unless the big storage rom is being used, extended rom space is a terrible thing to waste :cool:

austinsnyc
11-10-2007, 12:14 AM
If I am not mistaken there an EXT_Rom builder that was posted some time ago in the Hermes forum. It was able to create EXT_Roms that you could flash on your Hermes there are also several threads about instructions on how to do this it probably got buried some place since it was a few months ago. Just make sure that the files are read only and the Config.txt is correct

Shamanix
11-10-2007, 12:25 AM
You could give these tools a go and see if they work properly..

http://rapidshare.com/files/60718018/HTC_EXTROM_EDITORS.rar.html

You must rename the nb file to _ExtROM.nb in order v901 to see the file...

intrglctcrevfnk
11-10-2007, 12:33 AM
No doubt! Ive been pouring over the wiki and this site and it all seems so scattered...

Tried the viewer from above post (file too large error; dumped extrom from att 3.62)

I would like to try and cook one up but I cant seem to find the info consolidated...

One of these days I'll get it figured out.. Maybe there's a magic answer out there that a member could give us, but I feel like its search, trial, brick (hopefully not :), answer....

chunkymonkey
11-10-2007, 12:40 AM
ExtROM editor.

Earlier version could only extract, this one's great. Don't know if there are any more recent editions but this does do the trick as it stands.

It's this I started using when keeping a couple of my own OEMs up to date got too much bother. You make things too easy for us matt - I've got lazy!

mattk_r
11-10-2007, 12:43 AM
ExtROM editor.

Earlier version could only extract, this one's great. Don't know if there are any more recent editions but this does do the trick as it stands.

It's this I started using when keeping a couple of my own OEMs up to date got too much bother. You make things too easy for us matt - I've got lazy!

nice - I had seen this one referenced, but couldn't find the download (new image creation version).

Whoohoo! Off to a good start :)

Thanks!

mattk_r
11-10-2007, 01:16 AM
You could give these tools a go and see if they work properly..

http://rapidshare.com/files/60718018/HTC_EXTROM_EDITORS.rar.html

You must rename the nb file to _ExtROM.nb in order v901 to see the file...

these worked for me - and has both! Thanks!

ai6908
11-10-2007, 05:23 AM
Good thread for new members....been wondering how to edit and create my own ext ROM...THANKS!!!

vp3G
11-10-2007, 06:21 AM
This is AnDim's stuff (http://forum.xda-developers.com/showthread.php?t=303049), to credit the original author. Guess he never got around to creating the read/write v1.0. :(

mattk_r
11-10-2007, 07:21 AM
This is AnDim's stuff (http://forum.xda-developers.com/showthread.php?t=303049), to credit the original author. Guess he never got around to creating the read/write v1.0. :(

Thanks - happy to update!

dan1967
11-10-2007, 02:50 PM
XML's WORK from extended_rom and many other things, like copy PIM.VOL (backup) from storage card to restore contacts, calendar, call hystory..., call cab's from storage card.

Extended_ROM can be launched from Preconfig also with CFG:\Extended_ROM\Config.txt

here's mine:

LOCK:Enabled
EXEC:\Windows\SetHSDPA.exe /Enable
XML: \Extended_ROM\Dan.xml
XML: \Extended_ROM\Dan_regs.xml
XML: \Extended_ROM\Dan_apps.xml
XML: \Extended_ROM\comm_3g_regs.xml
CAB: \Extended_ROM\dan_files_1.cab
CAB: \Extended_ROM\dan_files_2.cab
CAB: \Extended_ROM\EffComm.CAB
CAB: \Storage Card\My Documents\Programe\HTC\Touch_6_dan.cab
CAB: \Storage Card\My Documents\Programe\HTC\clock_fonts.cab
CAB: \Storage Card\My Documents\Programe\HTC\Dialer_touch.cab
CAB: \Extended_ROM\sdkcerts.cab
CAB: \Extended_ROM\ColorBatteryClean3G.cab
CPY1:\Storage Card\PIM.VOL
CPY2:\PIM.VOL
LOCK: Disabled
RST: Reset

thefunkygibbon
11-10-2007, 05:53 PM
so using the htc extended rom builder.. adding all me cab files, does the app auto create the config.txt file based on what files you have added or do you need to manually create your own one and add it to the "package" as such. (along with autorun.exe)

mattk_r
11-10-2007, 06:08 PM
so using the htc extended rom builder.. adding all me cab files, does the app auto create the config.txt file based on what files you have added or do you need to manually create your own one and add it to the "package" as such. (along with autorun.exe)

Manually...

Dan - I loaded all of the xml files from the PreConfig into the Extended ROM and setup the Config file.

I had no settings installed from these files, and during the the loading process they didn't show up while processing - and I verified the Config.txt was correct.

I moved them back to PreConfig - and they worked fine.

That's my base for assuming the XML files don't run from the Extended ROM. Hard to establish a trend from one data point - but it was very convincing.

dan1967
11-10-2007, 06:20 PM
Manually...

Dan - I loaded all of the xml files from the PreConfig into the Extended ROM and setup the Config file.

I had no settings installed from these files, and during the the loading process they didn't show up while processing - and I verified the Config.txt was correct.

I moved them back to PreConfig - and they worked fine.

That's my base for assuming the XML files don't run from the Extended ROM. Hard to establish a trend from one data point - but it was very convincing.


matt,
the config I posted works flawlessly for me (progress shown+they install ok) since at least 3 months with several ROMs. maybe because I use in Preconfig this CFG:\Extended_ROM\Config.txt to make a difference?
to be tested.
ciao,
dan

mattk_r
11-10-2007, 07:16 PM
matt,
the config I posted works flawlessly for me (progress shown+they install ok) since at least 3 months with several ROMs. maybe because I use in Preconfig this CFG:\Extended_ROM\Config.txt to make a difference?
to be tested.
ciao,
dan

Interesting. I would suspect that the system already knows about the Config.txt because of the registry setting in the OEMDrivers .rgu file:

[HKEY_LOCAL_MACHINE\Comm]
"AutoRun"="\\Extended_ROM\\autorun.exe"
"AutoRunCFG"="\\Extended_ROM\\config.txt"
"AutoRunType"=dword:00000000
"TurnRadioFlag"=dword:00000000

Plus, if it didn't know about it - the cabs should not be getting installed in any case.

I'd really like to understand this further. Moving the xml files isn't a huge savings (compared to moving things like Windows Live or Office), be every bit helps.

DvTonder
11-10-2007, 08:02 PM
Matt,

I also tried with the XML's from Extended Rom and they did not load. Fortunately I had a cab file with the same settings so I just executed that.

This is amazing:

I am now installing ALL my extra apps including Office 2007 and WinLive from the ExtROM - saves me a lot of time whenever I flash and keeps my device \windows nice and clean.

Thank you for starting this thread and doing such an amazing job with Pandora!

dan1967
11-10-2007, 08:35 PM
To start with I am not using your kitchen at all, haven't really tried. I should try maybe. I am using tadzio's for the moment only.
What I do:
Normally I strip the ROM of that I want out (a couple of .bat files), put a couple of files (2) in dump and re-build and re-flash.

This mxipupdate_zzPIED_101.provxml is one of them that I always replace

<wap-provisioningdoc>
<!-- move lnk to StartUp -->
<characteristic type="FileOperation">
<characteristic type="%CE4%\CheckAutoRun.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\CheckAutoRun.lnk" translation="install"/>
</characteristic>
</characteristic>
</characteristic>

<characteristic type="Registry">
<characteristic type="HKLM\Comm" >
<parm name="AutoRunCFG" value="\windows\Config.txt" datatype="string" />
<parm name="AutoRun" value="\windows\AutoRun.exe" datatype="string" />
<parm name="EnableNewMailAccount" value="0" datatype="integer" />
</characteristic>
</characteristic>

<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Welcome" translation="filesystem" >
<parm name="Disable" datatype="integer" value="188" />
</characteristic>
</characteristic>

</wap-provisioningdoc>

Than I put my preconfig.txt

LOCK:Enabled
CFG: \Extended_ROM\Config.txt
LOCK:Disabled
RST: Reset

As almost everything else is pre-installed in extrom (I only add some shortcuts, settings or apps regs) or installed from storage card I do not need to do more. After re-flash or HR I have a ready-to-use phone with nothing else to do than test.

I see as difference that I do not have anything in the registry related to the autostart of extrom. To be that?

mattk_r
11-10-2007, 08:41 PM
Matt,

I also tried with the XML's from Extended Rom and they did not load. Fortunately I had a cab file with the same settings so I just executed that.

This is amazing:

I am now installing ALL my extra apps including Office 2007 and WinLive from the ExtROM - saves me a lot of time whenever I flash and keeps my device \windows nice and clean.

Thank you for starting this thread and doing such an amazing job with Pandora!

Glad it working well for you! Can you point me to a dowload of Office - if it has OneNotes with it?

dan1967
11-10-2007, 08:51 PM
Bottom line is that once you "open" a ROM" you may live very well with the XML's installed from Preconfig.
But you may not want to change the ROM when need to do something simple (i.e. upgrade a program) and therefore changing some things&files on extrom are much easier to do and you keep your system updated.
That's one of the reasons I prefer to use XML's as they can be edited and changed with Notepad while for cab's, well you do not have WinCE available everywhere and you are dependent on your home computer.

mattk_r
11-10-2007, 08:52 PM
...

I see as difference that I do not have anything in the registry related to the autostart of extrom. To be that?

Hmmmm... Noting the registry points to the AutoRun.exe and Config.txt in the Windows directory rather than on the extended rom - but the preconfig.txt points to the Config.txt on the extended rom. I wonder if that has any effect...

Do you have a copy of the Config.txt from Windows as well?

dan1967
11-10-2007, 09:17 PM
do not have that; strange I realize now

mattk_r
11-10-2007, 09:23 PM
I do not have that. Strange indeed I realize now.

Ok, thanks though.

I hope to get a clear definition for how to do this. I think you have some great stuff in your setup that will really make using the extended rom very flexable. I'll keep playing from my end - first will be to move the AutoRun to the Windows folder and mimic your setup.

I also like how you install from your SD card. While it makes your setup very customized, it allows you to extend past the 10 meg limit and still keep the installation files out of the base rom - and automating its installation.

Good stuff!

DvTonder
11-10-2007, 09:23 PM
Glad it working well for you! Can you point me to a dowload of Office - if it has OneNotes with it?

I don't have the link any more but if you PM me your email address I can email the .cab file to you.

dan1967
11-10-2007, 09:52 PM
I checked in the registry and I realized now that the link to extrom was existing in default.hv already. I hate that to edit/change default.hv and I stay out of it. Just being lazy and missed that part.
What happened very probably is that I did this copy paste automatically without thinking (?!) and I changed from cooked ROM's which had auto-configuration disabled (changed some of the txt's also?! hard to remember now) to official ROM with extrom enabled by default. My bad.
But as a fact the CFG line in Preconfig exists as extra (?!). Mine is in fact a stripped version of the original Preconfig that come in official ROM.

dan1967
11-10-2007, 10:34 PM
Here's a link that have a lot of info on extrom and learned a lot out of it:
http://forum.xda-developers.com/showthread.php?t=233702&page=14
or
http://forum.xda-developers.com/showthread.php?t=254476

mattk_r
11-10-2007, 10:38 PM
Here's a link that have a lot of info on extrom and learned a lot out of it:
http://forum.xda-developers.com/showthread.php?t=233702&page=14

nice one - thanks!

dan1967
12-10-2007, 12:35 PM
For some possible reference here are the regs values I have in HKLM\Comm:
The bold one should have some different values for different scenarios maybe, I haven't looked for it myself.

[HKEY_LOCAL_MACHINE\Comm]
"BootCount"=dword:0000000a
"PreAutoRunFlag"=dword:00000001
"AutoRunFlag"=dword:00000001
"PreAutoRun"="\\windows\\PreAutoRun.exe"
"PreAutoRunCFG"="\\windows\\PreConfig.txt"
"TurnRadioFlag"=dword:00000000
"AutoRunType"=dword:00000000
"AutoRunCFG"="\\Extended_ROM\\config.txt"
"AutoRun"="\\Extended_ROM\\autorun.exe"

Grumps
24-10-2007, 10:10 AM
Can someone please show an example of what inside the xml is if I want to execute apps from an SD card but not via the config.txt file via calling the xml file from within the config.txt file...if this makes sence

Thanx

nateshuntsvegas
24-10-2007, 12:22 PM
Ok this is a little off subject but still relivant and seeing how this is the newest thread for an ext. rom figured it wouldnt hurt.

In file explorer you can see that when you open the ext. rom that it is now above the storage card as I believe because it starts with "e" and storage starts with "s".

What I am trying to do is edit the registery so that the exe. rom is below the storage card. The reason being is if you try to download a email attachment it auto tries to stick it in the first available storage area. Now I know I can easily just rehide the exe. rom but this hinders me working with it with ease. Now is there away to either change the location of the exe. rom or where email attachments auto go to?

thanx in advanced

chunkymonkey
26-10-2007, 04:13 PM
I think it would be easier to edit the registry of your PIM/Email manager.

arcquisumbing
10-11-2007, 01:20 PM
hi, i've been playing around with Preconfig. I can now install all my cabs and other things from the storage card. however, i have one question, is there a way to controll the sequence/order of executed commands? as i have noticed, it does not execute commands as sequenced in the preconfig.

for example, i have a certain app to install, and after installation, i need to change the setting from default to the way i like. AND, SINCE MATTK_R's KITCHEN GOT ME ADDICTED TO CONSTANT REFLASHING, i have to redo all the customization for at least once a week (means that's how often i flash and how much i got addicted with the kitchen).

if possible, i can make my preconfig.txt install all the apps first, then install one cab with all registry tweaks for all those apps overwriting the default configurations.

thanks.

mattk_r
16-11-2007, 07:45 AM
Comments inline...

hi, i've been playing around with Preconfig. I can now install all my cabs and other things from the storage card. however, i have one question, is there a way to controll the sequence/order of executed commands? as i have noticed, it does not execute commands as sequenced in the preconfig.

That's strange. I never really paid that much attention... I'll pay more attention when I reload again.

for example, i have a certain app to install, and after installation, i need to change the setting from default to the way i like. AND, SINCE MATTK_R's KITCHEN GOT ME ADDICTED TO CONSTANT REFLASHING, i have to redo all the customization for at least once a week (means that's how often i flash and how much i got addicted with the kitchen).

if possible, i can make my preconfig.txt install all the apps first, then install one cab with all registry tweaks for all those apps overwriting the default configurations.

That's an interesting idea. One way would be to install your apps via the preconfig.txt - from either the extended rom space or the SD - doesn't matter, then point it to run the autorun.exe on the extended rom and in the config.txt define your non setting critial apps and your customization cab for the reg settings. Just a though, since we do know the preconfig runs first.

For example:

PreConfig.txt file:

LOCK:Enabled
'Run all my apps, including the apps that I will customize later
Hide:Enabled
EXEC:\Extended_ROM\autorun.exe 'goes to the extended rom and run it and reads the config.txt file
LOCK:Disabled
RST: Reset

Config.txt file:

LOCK:Enabled
'Run my custom cab to customize my programs
LOCK:Disabled
RST: Reset

Now thinking out loud, I wonder if you can have the autorun.exe and config.txt in Windows (example: EXEC:\Windows\autorun.exe) and launch it from the Preconfig.txt file by updating the path. this way, you'll get a split installation, and you can run a big storage rom and not need the extended rom physically present... You'll need to update the registry as well, as the PreConfig package .rgu defines this setting also.



thanks.

Sorry for the long delay in response, as I must have overlooked the post.

arcquisumbing
17-11-2007, 11:19 AM
Sorry for the long delay in response, as I must have overlooked the post.



it's ok. i know you're very busy.

however, based on the info i read on the first post, just tried to play around with the preconfig.txt and autorun+config.txt, i was able to make it work.

now, your other idea would be better if it would be possible. in that case, we can make use of the extra storage space.

once again, THANK YOU VERY MUCH for your efforts.

twist
15-12-2007, 12:53 PM
So whenever I try to launch the the autorun from the preconfig file to go to the storage card it crashes out cause of the space between storage and card ? Am I a complete moron or am I missing something ?

mattk_r
15-12-2007, 04:30 PM
So whenever I try to launch the the autorun from the preconfig file to go to the storage card it crashes out cause of the space between storage and card ? Am I a complete moron or am I missing something ?

Do you have a tweak to put temp files on the storage card? If so, this would make sense. Otherwise, I wouldn't think so.

Try running your preconfig with only one entry to run, and verify you've got the syntax correct. Do it on something tiny - like the Cinglular WAP cab. It that works, change it over to a larger cab and test again to see if size matters (in come cases it does :)). Them move on from there, adding in additional line entries as you go along to see where the issue is.

If you can't get past the first line item, try re-addressing it to your /Windows folder (include the cab in your build). If that works, we'll need to look at your SD closer.

One note to point out. A long time ago I wondered if there would be an issue in using the SD card in this way because the SD drivers may not have been loaded. I've found that only while the kernal loads (as this is where the drivers are registerd) is the crutial time, but I still wonder if it could be the case if nothing else works???

chunkymonkey
19-12-2007, 04:11 AM
Suggestion:

The idea in the post between matt and arcquisumbing is spot on. Let preconfig set up your preferred settings for your installed programs by xml.

Much easier than trying to rejig the cabs with your settings in from the start. I'd put your owner name in via a reg file in your rom though to make sure your registrations of your purchased cabs go through properly. They might need that in place before your xml file pops in your codes or whatever.

danik_iceman
19-12-2007, 06:05 AM
Ok this is a little off subject but still relivant and seeing how this is the newest thread for an ext. rom figured it wouldnt hurt.

In file explorer you can see that when you open the ext. rom that it is now above the storage card as I believe because it starts with "e" and storage starts with "s".

What I am trying to do is edit the registery so that the exe. rom is below the storage card. The reason being is if you try to download a email attachment it auto tries to stick it in the first available storage area. Now I know I can easily just rehide the exe. rom but this hinders me working with it with ease. Now is there away to either change the location of the exe. rom or where email attachments auto go to?

thanx in advanced

I don't remember how, but I am pretty sure that there was a way of renaming ext rom in Wizard. And you should most likely be able to do that with Hermes. Search the Wizard forum for the thread...
It was a long time ago when I saw it...

danik_iceman
19-12-2007, 06:38 AM
It's great to have this topic back.
It's been long time since I haven't messed with ext rom, since back in the days(wizard days), most of the custom roms had ext. rom, so there it was kinda useless to have custom ext rom, but now things changed. Noone cooks rom with ext rom anymore. So, it will be very helpful to develop this thread, and have some kind of fancy instructions for all us...

Now, there is one thing that would make ext rom much more usefull, but I don't know if that can be done or not.
It would be great if we could somehow have all our shareware programs registered using ext. rom by make cabs of serial numbers or somehow else. But I don't know if that is possible, since most of the programs use different form of registration.

CRCinAU
29-12-2007, 07:44 AM
I'm posting this in the hope that someone has come across this before and managed to find a solution.

My extended ROM layout is as follows:
\windows\preconfig.txt
LOCK:Enabled
CPY1:\Extended_ROM\Ring-Scooter_Keyser_Soze.wma
CPY2:\My Documents\My Ringtones\Ring-Scooter_Keyser_Soze.wma
EXEC:\Extended_ROM\cusTSK.exe \windows\blgloss.tsk
XML: \Extended_ROM\DeviceSetup.xml
XML: \Extended_ROM\SetRingtone.xml
XML: \Extended_ROM\SetLocale.xml
XML: \Extended_ROM\radiobandreset.xml
EXEC:\Windows\SetHSDPA.exe /Enable
CAB: \Extended_ROM\CVC-705142.CAB
CAB: \Extended_ROM\Windows_Live_10.6.33.0600.cab
CAB: \Extended_ROM\Office2007.CAB
LOCK:Disabled
RST: Reset

Extended ROM contents:
10/07/2007 08:16 AM 5,624 cusTSK.exe
28/12/2007 03:32 PM 1,983,649 CVC-705142.CAB
29/12/2007 04:10 AM 1,303 DeviceSetup.xml
01/06/2007 12:04 AM 3,928,302 Office2007.CAB
28/12/2007 06:14 PM 331 radiobandreset.xml
29/12/2007 02:52 AM 454,956 Ring-Scooter_Keyser_Soze.wma
29/12/2007 04:04 PM 429 SetLocale.xml
29/12/2007 04:02 PM 490 SetRingtone.xml
29/12/2007 05:49 AM 2,108,896 Windows_Live_10.6.33.0600.cab

Now to the problems:

1) the cusTSK.exe file sets the theme colours on the top/bottom bars, but does not set the background image. Start -> Settings -> Today shows the blgloss.tsk as being selected, however the background is just black.

1) has been solved. See post 46 (http://forum.xda-developers.com/showpost.php?p=1770511&postcount=46) for the solution.

2) The Ringtone (Ring-Scooter_Keyser_Soze.wma) is correctly copied to \My Documents\My Ringtones, however the XML file that is supposed to set it as the active ringtone does not work. The XML is:
<wap-provisioningdoc>
<!--1. Set the Ringtone to the one we copied across -->
<characteristic type="Registry">
<characteristic type="HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0">
<param name="Category" datatype="string" value="Ring" />
<param name="Script" datatype="string" value="av0pw3r" />
<param name="Sound" datatype="string" value="\My Documents\My Ringtones\Ring-Scooter_Keyser_Soze.wma" />
</characteristic>
</characteristic>

</wap-provisioningdoc>


The rest seems to work correctly...

CRCinAU
29-12-2007, 07:51 AM
To add more info to this thread too, you can set the Locale (Regional Settings) via XML too.

setlocale.xml:
<wap-provisioningdoc>
<!--Region-->
<characteristic type="Locale">
<parm name="Locale" value="3081" />
</characteristic>

<!--Regional settings -->
<characteristic type="Registry">
<!--Set Region to English (Australia)-->
<characteristic type="HKLM\nls" translation="filesystem">
<parm name="DefaultLCID" datatype="integer" value="3081"/>
</characteristic>
</characteristic>

</wap-provisioningdoc>

The value 3081 is for "English (Australian)" (real english - not the mis-spelt US version). A full list of these values can be found at:
http://www.microsoft.com/globaldev/reference/lcid-all.mspx

dan1967
29-12-2007, 08:44 AM
2) The Ringtone (Ring-Scooter_Keyser_Soze.wma) is correctly copied to \My Documents\My Ringtones, however the XML file that is supposed to set it as the active ringtone does not work. The XML is:

The rest seems to work correctly...


2. Here is my syntax (the only difference I see) that works. Plus I do not understand why you copy the ringtone while you can use it from there:

<characteristic type="HKCU\ControlPanel\Sounds\RingTone0">
<parm name="Script" value="av0pw3r" datatype="string" />
<parm name="Sound" value="\Extended_ROM\My Ringtones\OldPhone-US.wma" datatype="string" />
<parm name="Category" value="Ring" datatype="string" />
</characteristic>

cheers,

CRCinAU
29-12-2007, 10:32 AM
2. Here is my syntax (the only difference I see) that works. Plus I do not understand why you copy the ringtone while you can use it from there:

<characteristic type="HKCU\ControlPanel\Sounds\RingTone0">
<parm name="Script" value="av0pw3r" datatype="string" />
<parm name="Sound" value="\Extended_ROM\My Ringtones\OldPhone-US.wma" datatype="string" />
<parm name="Category" value="Ring" datatype="string" />
</characteristic>

cheers,

Does it still work even if the Extended_ROM is hidden?

dan1967
29-12-2007, 11:43 AM
have no clue as mine is always unhidden

CRCinAU
29-12-2007, 06:47 PM
have no clue as mine is always unhidden

I doubt it would - as the underlying OS wouldn't know what \Extended_ROM\* is due to it being hidden... I still can't understand why it isn't being set as a ringtone however - as our XMLs are identical...

I originally thought it was the HKCU vs HKEY_CURRENT_USER that I had - however that didn't make a difference when I changed and reflashed.

Edit: I wonder if it's something as stupid as the order of the XML elements - ie your name value datatype vs my name datatype value... *edits and tries*

Edit2: Nope. didn't make a difference... That's the only difference I can see between our XML files for setting ringtones... I'm at a loss to explain it now.

CRCinAU
29-12-2007, 07:14 PM
Is it possible to call \Extended_ROM\preconfig.txt from \windows\preconfig.txt?

I tried having just a simple \windows\preconfig.txt as such:

LOCK:Enabled
CFG: \Extended_ROM\preconfig.txt
LOCK:Disabled


I then had this in \Extended_ROM\preconfig.txt:
LOCK:Enabled
CPY1:\Extended_ROM\Ring-Scooter_Keyser_Soze.wma
CPY2:\My Documents\My Ringtones\Ring-Scooter_Keyser_Soze.wma
EXEC:\Extended_ROM\cusTSK.exe \windows\blgloss.tsk
XML: \Extended_ROM\DeviceSetup.xml
XML: \Extended_ROM\SetRingtone.xml
XML: \Extended_ROM\SetLocale.xml
XML: \Extended_ROM\radiobandreset.xml
EXEC:\Windows\SetHSDPA.exe /Enable
CAB: \Extended_ROM\CVC-705142.CAB
CAB: \Extended_ROM\Windows_Live_10.6.33.0600.cab
CAB: \Extended_ROM\Office2007.CAB
LOCK:Disabled
RST: Reset

however the preconfig.txt in \Extended_ROM didn't get run. Do I need anything else in there to make this happen?

Files in \Extended_ROM are:
01/08/2006 08:13 PM 5,496 cusTSK.exe
28/12/2007 03:32 PM 1,983,649 CVC-705142.CAB
29/12/2007 04:10 AM 1,303 DeviceSetup.xml
01/06/2007 12:04 AM 3,928,302 Office2007.CAB
28/12/2007 06:14 PM 331 radiobandreset.xml
29/12/2007 02:52 AM 454,956 Ring-Scooter_Keyser_Soze.wma
29/12/2007 04:04 PM 429 SetLocale.xml
30/12/2007 03:52 AM 417 SetRingtone.xml
29/12/2007 05:49 AM 2,108,896 Windows_Live_10.6.33.0600.cab

CRCinAU
29-12-2007, 08:41 PM
Now to the problems:

1) the cusTSK.exe file sets the theme colours on the top/bottom bars, but does not set the background image. Start -> Settings -> Today shows the blgloss.tsk as being selected, however the background is just black.


I have managed to solve this issue. It seems that the .tsk file was not 100% complete - I pulled the .tsk file apart, by opening it in WinCE CAB Manager and rebuilt it. There wasn't a _setup.xml in the original .tsk file which seemed to make the image part of the theme application fail. Now that WinCE CAB Manager has created a _setup.xml, it seems to be fine. And there's me thinking the preconfig or custsk.exe was to blame ;)

I am still unable to explain the RingTone issue though...

dan1967
29-12-2007, 08:59 PM
I am still unable to explain the RingTone issue though...

I remember from the past, while playing with this sounds thingy, that messing with HKEY_CURRENT_USER\ControlPanel\SoundCategories\Rin g
"Directory"="......\......" would have the same result as you are having.
Check maybe you changed something there or somewhere else.... Otherwise I am clueless.

For any relevant info it might have, my Extended_Rom is called from \windows\config.txt like this:

LOCK:Enabled
CFG: \Extended_ROM\Config.txt
LOCK:Disabled
RST: Reset

It would depend very much on how it is set up (check the early posts).

CRCinAU
30-12-2007, 07:27 PM
I figured out what it was. After stepping away from the computer for a while, having a snooze, and a walk, I came back to it and found the problem straight away.

Behold, my flawed XML:
<wap-provisioningdoc>
<!--1. Set the Ringtone to the one we copied across -->
<characteristic type="Registry">
<characteristic type="HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0">
<param name="Category" datatype="string" value="Ring" />
<param name="Script" datatype="string" value="av0pw3r" />
<param name="Sound" datatype="string" value="\My Documents\My Ringtones\Ring-Scooter_Keyser_Soze.wma" />
</characteristic>
</characteristic>

</wap-provisioningdoc>

Note how on the registry entries I use "param name=blah blah". It's be real smart if I used the correct "parm name=blah blah" in the XML so that it actually knew what I was talking about instead of using rubbish ;)

So yeah - now I feel stupid... :)