3.2.0 VoiceCommand provisioning for BT? - Mogul, XV6800 ROM Development

This is a question for DCD or anyone who's cooked VoiceCommand into their 3.2.0 ROM and has tried it with Bluetooth. In version 3.1.6, BTAGExtModule in registry key HKLM\Software\Microsoft\Bluetooth\AudioGateway was not properly set to \Windows\vcbthag.dll during the installation, requiring a registry edit later. If this is still the case with 3.2.0, I want to know in order to edit this into the kitchen provisioning so that I can forget about it and not worry about fixing the registry upon future hard reset (UC or Sashimi makes this a non-issue for me, but I am also flashing my fiancee's phone and want her to retain BT VC dialing functionality even if she needs to hard reset "in the field" without my being around to help her).
Thanks!

I'd look for the following entry in the *.rgu file
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\AudioGateway]
"BTAGExtModule" = "\\windows\\vcbthag.dll"
"Capability" = dword:00000065
Click to expand...
Click to collapse
Should be in something like the:
KITCHEN\SYS\Voice Command\410788f1-acd5-457b-b9ea-df86ac7f990e.rgu
file ...

boggsie said:
I'd look for the following entry in the *.rgu file
Click to expand...
Click to collapse
Thanks for the hints. I'd tried looking around a bit before posting but was encouraged to look again. Unfortunately, I find only a few .rgu files in the SYS subfolder of the kitchen and none contain the right key. The Voice Command folders (base program and language) don't even contain an .rgu file at all. At the same time, I've discovered the .rgu file that DCD uses to set up basic phone parameters, which may be a good place to transfer some registry tweaks instead of doing them in my UC provisioning. This .rgu file sets a "Capabilities" value in the AudioGateway key and might be the place to add the VC tweak, too (assuming it's not already in another, undiscovered .rgu file).

Related

Creating Own .cab files for settings etc...

Ive been messing about with my TyTN lately and just find it a right royal pain to put my settings back in etc...
...what im asking is is there any way to make a .cab installer that will let me reinstate all my GPRS/MMS/EMAIL settings etc... and copy a few files to the windows folders etc...(ringtones and sounds)???
Just in the event of needing to do a hard reset away from the PC a .cab installer on my SD card would be a godsend!
anyone?
yes, WINCAB CE is a 15 use free application that lets you create and view .cab files. If you search the forums there a numerus threads that contain registry keys for your setings etc
If you download the .cab files for your network provider again from the threads on this forum you can then import them into your own custom cab file using this software.
attached is a file that i use to set name, brightness levels, pIE homepage, and a couple of other tweaks, just edit this one and/or add your own. this should work on all WM2005 devices as it uses the same program language. hope this helps....
I spent the first 3 days after having my tytn making a cab of all my programs and settings cos I hard reset quite a lot, I made a big cab file with everything i like to install on internal storage and with all the settings of the programs I keep in the storage card. I think it is worth to spend the time initially.
What i found most useful was RegDiff to generate .reg files out of two exported registry dumps, registry workshop to browse / export the registry on the PocketPC from the computer and compare current regitry settings on PocketPC with a previously dumped registry file and WinCE Cab Manager to combine the cabs of all the programs I install, set the registry settings, and put shorcuts to all applications into the right places.
Forgive me for digging up an old thread, but this is exactly what I need, a tool that can make a backup of my MMS, GPRS and Email settings. I just got my X01HT yesterday and I've been playing around with different WM6 ROMs and it seriously is a pain to manually enter all my MMS, GPRS, and email settings for every ROM install I do. I also plan on doing the keyboard layout registry fix for the slide out keyboard, and I would but a lot easier to have that registry fix backed up.
pof posted how to do it with three seperate programs, I'm just wondering if there is a program that can do it all in one? I know it's been over six months since this thread was started and I'm just hoping that a simpler way has been made to do this. Any input and help on this matter is appreciated, thanks
Does anybody have the Wincab ce program that they can upload, it seems that the download site is having problems, I am unable to download from them and I can't seem to find it anywhere else, googled and it brings up very little.
Thanks
Lurch3559 said:
Does anybody have the Wincab ce program that they can upload, it seems that the download site is having problems, I am unable to download from them and I can't seem to find it anywhere else, googled and it brings up very little.
Thanks
Click to expand...
Click to collapse
Here is this great app at Megaupload
http://www.megaupload.com/?d=FHNS3KUA
Thank you for the site.
Thanks for posting it.
Can anybody direct me to a thread or WIKI to get more on this. I tried searching but returned nothing helpful. I just want to create a simple cab file with my operator settings.
Thanks
Lurch3559 said:
Does anybody have the Wincab ce program that they can upload, it seems that the download site is having problems, I am unable to download from them and I can't seem to find it anywhere else, googled and it brings up very little.
Thanks
Click to expand...
Click to collapse
Another alternative here:
http://teksoftco.com/index.php?section=airwizard
Sniper258 said:
Can anybody direct me to a thread or WIKI to get more on this. I tried searching but returned nothing helpful. I just want to create a simple cab file with my operator settings.
Thanks
Click to expand...
Click to collapse
I have posted this under http://forum.xda-developers.com/showthread.php?t=299023&page=14
I found this one usefull too: http://forum.xda-developers.com/showthread.php?t=295889
good luck!
what i did is google for wap-provisioningdoc gprs and got this
http://msdn2.microsoft.com/en-us/library/aa456052.aspx and around that area.
Further searches in the forum got me to look&browse in the other files already made; helped a lot in doing mine! credits to wpbear who lend me a hand!
It should get you to a xml file that can be tranformed into a cab.
A bit of warning: is a lot of trial&error and frustrations - took me about two weeks to make it from scratch. I am not specialist so a bit of luck is needed also. It is best to try on a fresh OS install or after a HR.
Hope it helps.
cheers,
dan
__________________
Thanks Dan for the info.
I'll look through it and repotr back.
Has anyone tried the airinstaller?
I saw this a while ago and dl the trial. You can only make one file in the trial and have not done it.
I will try it and post but just curious if anyone already has.
Hey Mr. Pof:
I used Registry Workshop 2.61 to export the following keys (for T-mobile US/Rogers Canada settings):
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Comm\RasBook\ROGERS GPRS] (and subkeys)
[HKEY_CURRENT_USER\Comm\RasBook\ROGERS MMS] (and subkeys)
[HKEY_CURRENT_USER\Comm\RasBook\T-mobile GPRS] (and subkeys)
[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Destinations] (and subkeys)
[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner] (and subkeys)
[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections] (and subkeys, since below this had the 3 names of GPRS/MMS/GPRS as listed above).
[HKEY_LOCAL_MACHINE\Software\Arcsoft\ArcSoft MMS UA\Config\mm1\MMSCSetting] (and subkeys)
Are there other registry keys that need to be exported via Registry Workshop regarding the settings for my 2 providers?
Assuming I have all the settings I need from the registry so that when I import them into a new ROM, the configuation is correct. How do I convert the .REG file from Registry Workshop 2.61 into some form that is or leads to a CAB?
Thanks.
pof said:
I spent the first 3 days after having my tytn making a cab of all my programs and settings cos I hard reset quite a lot, I made a big cab file with everything i like to install on internal storage and with all the settings of the programs I keep in the storage card. I think it is worth to spend the time initially.
What i found most useful was RegDiff to generate .reg files out of two exported registry dumps, registry workshop to browse / export the registry on the PocketPC from the computer and compare current regitry settings on PocketPC with a previously dumped registry file and WinCE Cab Manager to combine the cabs of all the programs I install, set the registry settings, and put shorcuts to all applications into the right places.
Click to expand...
Click to collapse
i found this tool was awesome .................................
crazyut said:
How do I convert the .REG file from Registry Workshop 2.61 into some form that is or leads to a CAB?
Click to expand...
Click to collapse
use wince cab manager.
pof said:
use wince cab manager.
Click to expand...
Click to collapse
this program does not run using vista period i tried
every setting i could such as run as admin and also run as XP nothing seemed to work. does anyone know a cab maker that will run with Vista?
Hi POF
When I click on File, Import, Import from REG, it says 'The Data Is Invalid' then 'The .REG file could not be imported'
I tried it with the Windows Registry Editor Version 5.00 line at the top of the .REG file and also without. Same results. I believe the files are saved in UTF-8 format.
The files contain numerous settings as one file instead of many separate files.
Any ideas, suggestions?
pof said:
use wince cab manager.
Click to expand...
Click to collapse
Okay, I was able to add other .CAB files and my registry edits. Do I need to fill out anything regarding provisioning in order to run the .CAB file on a new ROM?
I don't quite understand what provisioning is for (Pre XML/Post XML).
Thanks again.
pof said:
use wince cab manager.
Click to expand...
Click to collapse
This is how to create a CAB for your WIFI settings
Okay, so after fiddling about all day with various sample xml codes from MSDN, I was finally able to create a CAB to configure my WIFI connection to my home router (including WPA passkey), so that I can just run the CAB every time I flash / hard-reset.
STEP 1. Open Notepad and copy the code below to it
Code:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="[B]SSID: REPLACE_WITH_YOUR_SSID[/B]">
<parm name="DestID" value="[B]Destination GUID: SEE NOTE 1 BELOW[/B]"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="[B]CONNECTION TYPE: SEE NOTE 2 BELOW[/B]">
<characteristic type="[B]SSID: REPLACE_WITH_YOUR_SSID[/B]">
<parm name="DestId" value="[B]GUID: SEE NOTE 1 BELOW[/B]"/>
<parm name="Encryption" value="[B]SEE NOTE 3 BELOW[/B]"/>
<parm name="Authentication" value="[B]SEE NOTE 4 BELOW[/B]"/>
<parm name="NetworkKey" value="[B]REPLACE WITH YOUR NETWORK KEY, SEE NOTE 5[/B]"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
STEP 2. Replace the parameters in the sample code depending on the connection you want to configure:
SSID: Self-explanatory
Note 1
Destination GUID
For a connection to "The Internet", use this GUID
{436EF144-B4FB-4863-A041-8F905A62C572}
For a connection to "Work", use this GUID
{A1182988-0D73-439e-87AD-2A5B369F808B}
Note 2
Connection Type
"access-point" for infrastructure connection
"ad-hoc" for computer-to-computer
Note 3
Encryption
0 = WEP
1 = No encryption
4 = TKIP
Note 4
Authentication
0 = Open authentication mode
1 = Shared authentication mode
3 = Specifies Wi-Fi Protected Access (WPA) authentication
4 = Specifies WPA-PSK authentication
5 = Specifies WPA-NONE
Note 5
Network Key
Put your WPA or WEP network key here, just as you would enter in the settings screen. However, make sure that the key does not contain either the ",< or > characters, since this will screw up the XML code.
STEP 3. Save the Notepad file as .provxml.xml
Choose "ALL FILES" in the "SAVE AS TYPE" box and "UNICODE" in the "ENCODING" dialog box
STEP 4. Open a command-line window, go to the folder where you saved the xml file and type:
makecab /D COMPRESS=OFF .provxml.xml wifi.cab
STEP 5. Copy the CAB file to your device and run it. You should now see your Wifi connection under the settings Wi-Fi control Panel
You will have to manually check the "Hidden Network" box if your router is hiding the SSID (I have not figured out the parameter to do this automatically yet)
Voilá!
Note: If you use WEP, you need some additional lines of code to specify things like the KeyIndex. See these pages for more info:
http://msdn2.microsoft.com/en-us/library/aa455986.aspx
http://msdn2.microsoft.com/en-us/library/aa456208.aspx
By way of example, below is a sample code for an access-point connection connection to the internet, using WPA-PSK authentication.
Code:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="My_SSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="4"/>
<parm name="Authentication" value="4"/>
<parm name="NetworkKey" value="My_Network_Key"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I hope this works for you. Let me know if you have any problems / questions.

[Beta 0.1.4][25-Mar-09] UCMe2 - Selective backup and SDConfig tool for reflashing

Premise is that there are many backup utilities that will backup/restore either dirs or the whole ROM, but not just for a specific apps settings. There are many ways that dev could use to store their settings for a given app, but getting them all to do the same way is "difficult". However, if program A had it's settings in a settings.ini (or whatever name) and that specific file could be backed up and restored later after a hard reset or new ROM installed, it would make the flashing a ROM even easier since UC came out.
My idea is for an app that works sort of like AppToDate, in that it will parse a collection of ini files in a directory to determine what a given progam uses for it's configuation (files or reg keys) and will backup/restore them.
Basically all that someone needs to do is:
- Extract the UMCe2.zip to a folder on their Storage Card
- Register Mortscript (just click on it once, from this point on you can just click on a script and it will run.)
- Place the INI files that define the files or keys of the app that you'd like to backup/restore into the \Storage Card\UCMe2\ini folder. I have posted a small collection of some INI files as examples
- If you'd like startmenu shortcuts, I attached a few dummy.exe files that you can put into the UCMe2 folder so you can make shortcuts.
- Run the UCMe2_Backup and it will read every INI file in the ini folder and store the backup files in \Storage Card\UCMe2\Backup
- Run the UCMe2_Restore and it will read every INI file in the ini folder are restore the backups
I want the app do do a few things:
* to run start to finish unattended... start the program and it just runs, with no questions asked. (for scheduling purposes)
* the config ini for apps need to be simple to read/edit, so user community can post/share them, or be created by the original app devs
Feel free to create your own INI files and post them here for others to share
I have updated the scripts to include the SDConfigCE tool, to create a new SDConfig.txt based on the files that you have placed in the CABS subfolder.
Additionally, I have included XCopyCE support in the created SDConfig.txt file to copy files placed in the Files subfolder to the device.
(added test sdconfigce.zip to attempt to detect devices with internal storage vs. storage card and SHOULD manage other ROM languages)
Todo list:
add ProcKill and SuggestReboot options to ini file
-optional kill process before backup/restore
-optional suggest reboot after restore if suggested in ini file
add optional Disable parameter to ini file to "turn it off"
add section to backup/restore individual reg values (instead of entire subKey)
-[RegValues]
-Value1= root, subkey, value, data, type
Build in Restore script to run during UC to further automate UC
Provide bulk REG file import, over and above the scripted reg key values provided by INI files
Click to expand...
Click to collapse
Bug List:
Validation key in ini files do not like LONG reg root names, workaround is to change them to HKLM or HKCU as necessary
- change: Validate = HKEY_LOCAL_MACHINE,Software\Apps\Google Maps
- to: Validate = HKLM,Software\Apps\Google Maps
Click to expand...
Click to collapse
Updates in version 0.1.4:
updated bug in restoring of backup files. Now it will create missing directories and actually copy in the files :-0
Click to expand...
Click to collapse
Updates in version 0.1.3:
updated bug in validation logic on the restoring of backup.
Modified Backup script to automatically generate new SDConfig to make that "last minute" backup into a 1 step process.
Click to expand...
Click to collapse
Updates in version 0.1.2:
Created tool to create SDConfig.txt file automatically based on the presence of CAB or XML files in the CABs subfolder
Provided XCopyCE support to do file copy of the contents of the Files subfolder to the device during UC
Updated Menu applet to call the SDConfigCE tool
Click to expand...
Click to collapse
Updates in version 0.1.1:
Replaced dependancy of SKTools with DotFred Taskmanager for reg functions (it is even smaller and faster and freeware)
Changed display of progress in GUI
Added Version numbers in script and GUI
Click to expand...
Click to collapse
Initial release 0.1.0
How to make your own INI file:
The ini file is a very simple thing to make as it is basically just a text file with a few bracketed headers (sections) and values in them.
The easiest way to do so, is to place a copy of the template on your PC desktop and open it with notepad.
Then use the freeware tool CERegEditor ( http://ceregeditor.mdsoft.pl/ ) to read your device's registry... MOST apps save their customization in:
HKEY_CURRENT_USER\Software\ (App Publisher) \ (App Name)
There are plenty of sample files to use as references. If you need help, I'm certain that someone in this community can help.
PocketBreeze.ini
[UCMe2]
appname=PocketBreeze
subdir=PocketBreeze
Validate = HKLM,Software\Apps\SBSH.net PocketBreeze
[regkey]
key1=HKEY_CURRENT_USER\Software\SBSH\PocketBreeze
Click to expand...
Click to collapse
OwnerSettings.ini
[UCMe2]
appname=Owner
subdir=Owner
[regkey]
key1=HKEY_CURRENT_USER\ControlPanel\Owner
Key2=HKEY_LOCAL_MACHINE\Ident
key3=HKEY_CURRENT_USER\Software\Microsoft\Bluetooth\Settings
Click to expand...
Click to collapse
GoogleMaps.ini
[UCMe2]
appname=GoogleMaps
subdir=GoogleMaps
Validate=HKLM,Software\Apps\Google Maps
[Files]
cache-GLM.dat=\Application Data\GoogleMaps\cache-GLM.dat
index-GLM.dat=\Application Data\GoogleMaps\index-GLM.dat
prefs.dat=\Application Data\GoogleMaps\prefs.dat
prefsext.dat=\Application Data\GoogleMaps\prefsext.dat
prefsext2.dat=\Application Data\GoogleMaps\prefsext2.dat
prefsfriends.dat=\Application Data\GoogleMaps\prefsfriends.dat
prefsfriendsmini.dat=\Application Data\GoogleMaps\prefsfriendsmini.dat
strings-all.zlb=\Application Data\GoogleMaps\strings-all.zlb
Click to expand...
Click to collapse
Format of ini file is:
[UCMe2]
AppName = Friendly name for future use
subdir = subfolder to store the files
Validate = condition to look for before restoring (either a filepath and name or reg key... Reg key must be formatted like ROOT,KEY)
[regkey]
filename1 = regkey to backup
filename2= other regkey
[Files]
destinationfilename1.ext = source filename with full path
destinationfilename2.ext = source filename with full path
Just create an ini file for each app to backup
**** Reserved for suggestions or requests
I'm thinking of adding a switch to the ini files as a block to prevent backing up certain apps...
It would be used to "install" an app that only needs file copy like an exe or shortcuts or similar... no sense of copying back those files for backup, as they would never change.
an entry in the ini like:
[UCMe2]
RestoreOnly = 1
Would it make a difference to anyone if I CREATED new app shortcuts, or just copied the old ones for backup/restore?
Another optional ini setting should be:
[UCMe2]
Validate = <fullpath\file> or Reg key
Which would only restore the backups of the appropriate reg key or path\file exists. No sense restoring data for an app if it isn't yet installed.
hmmm...
I've added a bit of a GUI to the backup process, just to see something while it runs. I'll get around to doing the same to the restore mode...
UCMe2.mscr
Code:
ScriptDir = SystemPath("ScriptPath")
IniFiles = ScriptDir \ '*.ini'
StatusType(ST_LIST)
StatusInfo("UCMe2 Backup", "Backup process running")
ForEach F in files (IniFiles)
AppName = IniRead(F,"UCMe2","appname")
SD = IniRead(F,"UCMe2","subdir")
RestoreOnly = IniRead(F,"UCMe2","RestoreOnly")
StatusShow()
StatusMessage( AppName, ST_LIST, TRUE )
If (RestoreOnly = False)
MkDir(ScriptDir \ SD)
ForEach K, V in iniKeys (F,"regkey")
RunWait(Scriptdir\"SKTools.exe","#REXP(" & V & ") #FNAME(" & ScriptDir \ SD \ K & ".reg)")
StatusMessageAppend( "." )
EndForEach
ForEach K, SettingsFile in iniKeys (F,"Files")
copy (SettingsFile, ScriptDir \ SD \ K ,TRUE)
StatusMessageAppend( "." )
EndForEach
StatusMessageAppend( "OK" )
ElseIF
StatusMessageAppend( " - Skipped by RestoreOnly value" )
EndIf
EndForEach
StatusMessage( "Backup Complete" )
WriteStatusHistory( Scriptdir \ "BackupLog.txt" )
StatusMessage( "Window closing in 5 seconds" )
Sleep( 5000 )
StatusType(ST_HIDDEN)
Updated the scripts a bit and made a GUI menu... but that has limited value, beyond my playing with MortScript
here is a template of the current ini entires, but most of them aren't necessary... see the examples I already have in the zip.
Code:
[UCMe2]
appname = (descriptive Name)
subdir = (subfolder name)
RestoreOnly = 0/1 (1 = do not back up this app)
Validate = <fullpath\file> or Regkey HKLM,Software\appname\key (NOTE the comma in the reg key)
[regkey]
key1="HKEY_CURRENT_USER\Software\AppName\etc"
key2="HKEY_LOCAL_MACHINE\Software\AppName\etc"
[Files]
backupFilename.ext=Fullpath to sourcefilename.ext
anotherbackupFilename.ext=Fullpath to sourcefilename.ext
andanotherFilename.ext=Fullpath to sourcefilename.ext
rilphone2.ini
[UCMe2]
appname=Rilphone2
subdir=Rilphone2
[regkey]
key1=HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RIL
[Files]
rilphone2.dll=\WINDOWS\rilphone2.dll
Click to expand...
Click to collapse
PocketBreeze.ini
[UCMe2]
appname=PocketBreeze
subdir=PocketBreeze
RestoreOnlyIfRegExists = 1
Validate = HKLM\Software\Apps\SBSH.net PocketBreeze
[regkey]
key1=HKEY_CURRENT_USER\Software\SBSH\PocketBreeze
Click to expand...
Click to collapse
I see where I should make a subdir to hold the INI files, and another to hold the backup folders... the prog dir is getting cluttered
I can see another mini app for this process... one to enable or disable individual ini files... (probably just move them to a different folder instead of deleting the ini file)
I don't think Mortscript has that kind of support for forms, so it might remain a manual process for a while. Lemme see how clever I can be
attached pics to post 1
there is a minor issue in the restore script... I have to re-think my logic for the validation determination, but I'll get that
I fixed the restore mode problem. as well are eliminated 2 unnecessary fields from the INI files.. the RestoreIfRegExists (or file)... now it just examines the content of the validate field... if it has a comma in it, it assumes it is a reg entry.
I still need to put in error handling, but I have to figure out how that all works in MortScript.
I also am considering having it backup/restore specific reg values, in addition to the whole key, but much of will be based on MortScript... it is lacking in reg features and I'm currently dependant on SKTools to do the reg functions... I'd much prefer to do it internally, but MS doesn't have a way of determining the regtype that it is reading, so I can't store that so I can restore it to the correct type.
fixed a simple issue of the reg export grabbing the level higher and exporting from there.
let me be the first one to reply the app looks nice, isent it nice that MortScript can be used in many ways?
This is great, I will be watching on this
that's funny how this is like a 2-page OP
but this is a fantastic idea and crazy useful if it comes to fruition. between this and UC or sashimi, flashing roms would have so little downtime..wow....

[Question] Cooking a personal Rom

Is it possible for me to cook a personal ROM? I have tried alot of ROMs here but ever since HTC's new official ROM was out (asia) , I find it really good for me. One thing i hate from the ROM compared to cooked roms are that everything is disorganised. Everything is in 1 program file. In cooked Roms, the chefs have already taken the liberty to assign each app to their appropriate folders (apps,connection,multimedia, etc)
I would like to do the same , however it takes alot of time for me to do so but I can manage that. What i really want to do is, after organising the apps to their respected folders, and installing all of my needed softwares on the phone, how do i make a complete backup of the ROM, and then save it on my computer perhaps. So then i could flash my phone with the backup ROM and the next time i were to flash my phone, everything would be there (my apps, my organised folder).
Will it be possible (i'm sure it's possible, i just need the right software / app to do it)
You're going to need a Kitchen to cook your own ROM; assuming you have a Raphael device, have a look at this thread:
Useful Links Thread
http://forum.xda-developers.com/showthread.php?t=439783
Many folks use Da_G's Kitchen ... but there are other great Chefs that have made their Kitchens avalaible.
HTH,
Thank you for the link hilaireg. It's very helpful.
After reading the available tutorials, i have a question. Most of the kitchens are using pre-existing ROMS.
I would like to use a new official HTC ROM to start with. "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship"
I noticed that all the tutorial require a .nb file which they say comes in the package. However, when i extracted the .exe file , a few files were extracted alongside a .nbh file. But there is no .nb file. What do i do?
arvin2212 said:
Thank you for the link hilaireg. It's very helpful.
After reading the available tutorials, i have a question. Most of the kitchens are using pre-existing ROMS.
I would like to use a new official HTC ROM to start with. "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship"
I noticed that all the tutorial require a .nb file which they say comes in the package. However, when i extracted the .exe file , a few files were extracted alongside a .nbh file. But there is no .nb file. What do i do?
Click to expand...
Click to collapse
You need to have NBHextract Tool it will be in include in kitchen...me too trying to cook on same build with no results. It's no easy try try that's it...
krish_nank, Is this your first time building a ROM?
If so, we're on the same boat...
I tried using NBHextract Tool but when i run the .exe a pop up cmd window comes out and then dissappears. I added the program manually in cmd, and here is what it says , but it doesn't do anything although i have place my .nbh file in the same folder with it.
"
C:\Users\xda>C:\Users\xda\NBHextract.exe
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts
Usage: C:\Users\xda\NBHextract.exe <nbh file> [-v]
C:\Users\xda>
"
arvin2212 said:
organising the apps to their respected folders, and installing all of my needed softwares on the phone
Click to expand...
Click to collapse
If you just want to organize your existing app then all you have to do is go to this folder,
\\\Windows\Start Menu
This folder has all the icons for the programs. So now you can arrange/ rearrange icons, create folder and move the links to the respective folders as you see fit. Total Commander can be used for this.
If you want a way to install apps after installing a new ROM, you can use UC you can read about it here
http://forum.xda-developers.com/showthread.php?t=366337
But if you just want to build custom ROM then the easiest kitchen is Da G's. If you want a fully loaded kitchen try At0mAng - Advance Kitchen - V2
nnkumar73 said:
If you just want to organize your existing app then all you have to do is go to this folder,
\\\Windows\Start Menu
This folder has all the icons for the programs. So now you can arrange/ rearrange icons, create folder and move the links to the respective folders as you see fit. Total Commander can be used for this.
If you want a way to install apps after installing a new ROM, you can use UC you can read about it here
http://forum.xda-developers.com/showthread.php?t=366337
But if you just want to build custom ROM then the easiest kitchen is Da G's. If you want a fully loaded kitchen try At0mAng - Advance Kitchen - V2
Click to expand...
Click to collapse
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
krish_nank said:
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
Click to expand...
Click to collapse
okay, my bad. Then I am sure you have seen the ROM reconstruct thread. Hope that thread helps you.
Have a look at the first three posts in the following thread:
[TUT] Sous-Chef's Guide to Da_G's Simple Kitchen
http://forum.xda-developers.com/showthread.php?t=490787
Essentially, once you unpack the "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_R aphael_52.58.25.30_1.11.25.01_Ship" executable, you run a script that performs the actions required to prepare the NBH file for custom cooking.
That should get you started.
HTH,
krish_nank said:
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
Click to expand...
Click to collapse
With my kitchen do this...
Backup the OEM and SYS folder...
If you have the NBH file already place it in the BaseROM folder
If you do not have the NBH file then run the EXE downloaded from HTC, let it go all the way to the first install screen and dont do anything yet, go to your temp folder on the computer, dig around the folders if there are many, you will see ruu_signed.NBH, copy and paste into the BaseROM folder of kitchen.
Once NBH is in the baserom folder start my kitchen
Select 2, 1, 1 and let it do its thing
When extraction is completed and you are back at main menu select option 8, move dumped OEM/SYS from Temp
When that is done select option 6 Copy Extracted ROM XIP from Temp
When that is done your new dumped ROM is ready to be built.
Delete or do not select any duplicate packages
Clean out the new OEM/SYS folders. There is a lot of junk in there that can be removed, welcome folder, do a search in the OEM/SYS folders for *.3gp and remove the welcome movie and blah blah blah...
If you take the time to look at the folder structure of the OEM and SYS folder you should be able to figure it out pretty quickly.
If you need further help you may ask in my kitchen thread.
Hope this is a start for you guys...
nnkumar73, Thank you for your suggestion but i already known about manually doing it from the start menu folder. However it's not practical as , i would have to do it everytime i reflash my phone. If there is a new rom available, and i were to try it and somehow wanted to go back with my older ROM, i would have to do all the moving etc all again.
hilaireg once again, thank you for the link..
At0mAng, Thank you very much as well. I will follow your steps and see how it goes. I appreciate your effort of posting the right steps for it. Thank you.
DELETED.......................
Just an addition to previous posts
arvin2212 said:
C:\Users\xda>C:\Users\xda\NBHextract.exe
Click to expand...
Click to collapse
I can see u missed out the command : nbhextract ruu_signed.nbh
arvin2212 said:
3.If you do not have the NBH file then run the EXE downloaded from HTC, let it go all the way to the first install screen and dont do anything yet, go to your temp folder on the computer, dig around the folders if there are many, you will see ruu_signed.NBH, copy and paste into the BaseROM folder of kitchen.
Click to expand...
Click to collapse
The easiest way is to use any packer apps like winrar. u can extract the nbh directly. if u r using total commander will be a lot easier. just press ctrl+pg dn & u can extract the file instantly.
Thanks to everyone's help especially At0mAng,
I finally extracted the ROM. I can see aloto of files in SYS and OEM folder.
What i would like to know now is, how do i create folders (icons are not neccessary for the folders) so that i can group installed apps in them according to category? Example is, A multimedia, navigation and games folder is created and , my apps are stored in the folders according to their functions. Like GPS tool goes into navigation and so on..
To simply copy files from \Windows to another directory, you can use an initflashfiles.txt in the OEM. Syntax is:
Directory("\Windows\Start Menu\Programs\Tools"):-File("Enable Proxy.lnk","\Windows\Enable Proxy.lnk")
If you are trying to just place Start Menu items in different folders, it's a bit more complicated. There are many places that this can happen.
1) In \OEM\OEM_Lang_0409\initflashfiles.dat
You can edit this file in Notepad if you remove the ReadOnly bit in Windows. Once you've edited it in Notepad and saved it, you need to re-open it in a Hex editor and delete the first 2 bytes "ff fe". Once you delete those first 2 bytes, save the file and reset the ReadOnly flag. In this file is where I define the Folders I want to use in my "Start Menu" folder like this:
; Start Menu contents
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu\Programs"):-Directory("Games")
Directory("\Windows\Start Menu\Programs"):-Directory("Navigation")
Directory("\Windows\Start Menu\Programs"):-Directory("Internet")
Directory("\Windows\Start Menu\Programs"):-Directory("Multimedia")
Directory("\Windows\Start Menu\Programs"):-Directory("Office")
Directory("\Windows\Start Menu\Programs"):-Directory("Phone")
Directory("\Windows\Start Menu\Programs"):-Directory("Tweaks")
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")​2) *.provxml files
You need to edit these files with a unicode editor. Personally I use EmEditor. You'll notice that in mose packages in \OEM and \SYS there is a _Lang_0409 dir that goes along with it. It's "usually" in this folder where you'll see a *.provxml file. If you open these in EmEditor you'll see that there are lots of file operations. You want to seach or the line containing the *.lnk. In that line you can set the patch of where you'd like the icon installed.
There may be other places that this happens as well, but that's just off the top of my head.
Good Luck!
-e
eras2r said:
To simply copy files from \Windows to another directory, you can use an initflashfiles.txt in the OEM. Syntax is:
Directory("\Windows\Start Menu\Programs\Tools"):-File("Enable Proxy.lnk","\Windows\Enable Proxy.lnk")
If you are trying to just place Start Menu items in different folders, it's a bit more complicated. There are many places that this can happen.
1) In \OEM\OEM_Lang_0409\initflashfiles.dat
You can edit this file in Notepad if you remove the ReadOnly bit in Windows. Once you've edited it in Notepad and saved it, you need to re-open it in a Hex editor and delete the first 2 bytes "ff fe". Once you delete those first 2 bytes, save the file and reset the ReadOnly flag. In this file is where I define the Folders I want to use in my "Start Menu" folder like this:
; Start Menu contents
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu\Programs"):-Directory("Games")
Directory("\Windows\Start Menu\Programs"):-Directory("Navigation")
Directory("\Windows\Start Menu\Programs"):-Directory("Internet")
Directory("\Windows\Start Menu\Programs"):-Directory("Multimedia")
Directory("\Windows\Start Menu\Programs"):-Directory("Office")
Directory("\Windows\Start Menu\Programs"):-Directory("Phone")
Directory("\Windows\Start Menu\Programs"):-Directory("Tweaks")
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")​2) *.provxml files
You need to edit these files with a unicode editor. Personally I use EmEditor. You'll notice that in mose packages in \OEM and \SYS there is a _Lang_0409 dir that goes along with it. It's "usually" in this folder where you'll see a *.provxml file. If you open these in EmEditor you'll see that there are lots of file operations. You want to seach or the line containing the *.lnk. In that line you can set the patch of where you'd like the icon installed.
There may be other places that this happens as well, but that's just off the top of my head.
Good Luck!
-e
Click to expand...
Click to collapse
Somehow, i am not able to find this file , initflashfiles.dat in my OEM_Lang_0409 folder. :?
Do you have Windows Explorer setup to view all system/hidden files? (Tools->Folder Options-->View)
If using a kitchen that supports it (mine does for sure) you can create a new, blank text file in a package folder, initflashfiles.txt
it uses the same format eras2r posted above, but gets appended to initflashfiles.dat during the cooking process
in this manner you can have initflashfiles.dat changed on a per-package basis, it's also easier because you don't have to worry about the first 2 bytes etc.
e.g. \Packages\beer\initflashfiles.txt
When cooking rom check box next to package "beer"
now the contents of \Packages\beer\initflashfiles.txt get appended to initflashfiles.dat automatically during cooking, don't get applied if box is not checked
similarly this initflashfiles.txt can go in any folder in \OEM and \SYS as well
eras2r, yes , it has already been configured to show hidden files & folders
Da_G, i get what you mean, roughly. What you're saying basically is that i can manually create a txt file for initflashfiles and leave it in the packages folder?
Also i am not sure about the syntax that eras2r posted. I find it alittle well above my level of knowledge. Maybe someone can guide / explain to me regarding this?
Right right, an initflashfiles.txt can go in any subfolder under \OEM \SYS or \Packages
You can create the file with notepad, no need to worry about removing things with a hex editor or otherwise using anything other than notepad.
The syntax is as follows:
using this example to create a directory:
Code:
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")
Directory("\Path\to\create\directory\in\goes\here"):-Directory("Name_Of_Directory_To_create_in_path") - essentially you're saying "Switch to the folder named \Path\to\create\directory\in\goes\here and create a new folder named Name_Of_Directory_To_create_in_path inside of it.
similar syntax to copy a file from one directory to another:
Code:
Directory("\Windows\Start Menu\Programs\Tools\"):-File("Fieldtest.lnk","\Windows\Fieldtest.lnk")
Directory("\Path\to\copy\file\in\goes\here"):-File("destination_file_name.ext","\source\path\to\filename.ext") - here you're saying "navigate to \Path\to\copy\file\in\goes\here, copy file from source \source\path\to\filename.ext, rename it to destination_file_name.ext when copying (you can use the same filename here if you don't want it renamed, renaming is useful for files that might be indexed by windows media player, or the windows help system, etc.
That should clear it up a bit, let me know if it doesnt

.RGU skipped during compilation (PkgToolsBuildOs 6.x-5.3)

I know most chefs have moved on to the Visual Kitchen, but I would greatly appreciate some insight on a problem I'm having with the old'style kitchen.
I moved the GSensorCalibrator & GSensor SDK from the OEM folder to the PACKAGES folder. I added a supporting OPTION.XML (Unicode, like the others) and collapsed the contents of 0409 folder to the respective package folder, removed the 0409 folders, and then renamed the packages as follows:
.\Packages\02_PACKAGE_Raphael_GSensorCalibrator_1_0_18192126_0
.\Packages\02_PACKAGE_Raphael_SensorSDK_3_3_18182326_1
The ROM loads up fine from the BuilOS tab of PkgToolsBuildOs 6.x-5.3 and the output of the log pertaining to the package above shows the following:
Code:
Processing: Packages\02_PACKAGE_Raphael_GSensorCalibrator_1_0_18192126_0
Processing: Packages\02_PACKAGE_Raphael_GSensorCalibrator_1_0_18192126_0... Searching for dsm file
Dsm = Packages\02_PACKAGE_Raphael_GSensorCalibrator_1_0_18192126_0\9f517713-bb2d-4e77-8de8-e0638bf94c40.dsm
Processing: Packages\02_PACKAGE_Raphael_SensorSDK_3_3_18182326_1
Processing: Packages\02_PACKAGE_Raphael_SensorSDK_3_3_18182326_1... Searching for dsm file
Dsm = Packages\02_PACKAGE_Raphael_SensorSDK_3_3_18182326_1\c7a71384-f73c-47ac-bd20-610e0dfb3b11.dsm
The Cabinet Tool section of the log shows this:
Code:
-- adding packages\9f517713-bb2d-4e77-8de8-e0638bf94c40.rgu
-- adding packages\c7a71384-f73c-47ac-bd20-610e0dfb3b11.dsm
-- adding packages\c7a71384-f73c-47ac-bd20-610e0dfb3b11.rgu
Notice that the .DSM for the GSensorCalibrator is missing - not sure why. I've even tried recreating the file and using BUILDDSM.
The RGU Comp section of the log shows this:
Code:
package "02_PACKAGE_Raphael_GSensorCalibrator_1_0_18192126_0" does not contain .rgu file "8f517713-bb2d-4e77-8de8-e0638bf94c40.rgu"
importing registry file ".\Registry\c7a71384-f73c-47ac-bd20-610e0dfb3b11.rgu"...
I checked the usual stuff: .RGU file format (Unicode, like others), .PROVXML format (same like others, although irrelevant at this point), duplicate .DSM/.RGU, multiple .RGU/.DSM in the package folder.
I'm completely stumped; I'm sure it's something I'm overlooking but for the life of me, I can't figure out why PkgToolsBuildOs 6.x-5.3 is not "picking" up the GSensorCalibrator .RGU file.
* UPDATE *
Deleting the .DSM files and creating blank empty ones seem to solve the problem ... which still has me confused as I started off with empty .DSM to begin with.
As I suspected, if the Cabinet Tool section does not show a .DSM for an .RGU expect problem with the package in question.
Need to use BuildDSM.exe to add the rgu to the package for the old kitchen.
Also make sure the rgu is read only.
That's how I assumed it was supposed to function - the .DSM essentially provided a folder contents list of sorts.
That said, it appears that the version of PkgToolsBuildOs I'm using will search for the .RGU file in the folder ... when the .DSM file is empty (0 byte).
Cheers,
GSLEON3 said:
Need to use BuildDSM.exe to add the rgu to the package for the old kitchen.
Also make sure the rgu is read only.
Click to expand...
Click to collapse
The RGU does NOT need to be read only...
Is that the extent of YOUR helpful commentary?

WM6 Kitchen ENG/GER for Hurricane (incl. cooked ROM)

Well, at least one is interested and dared to ask, so here it comes:
an old style batch file kitchen
that only deals with application add/remove
has a fixed XIP
and a fixed OS Version
and it cannot dump an existing ROM
If you want to port another OS Version you are on your own, no support in the kitchen, neither for SYS nor for XIP. So basically it is just an end-user "cook your meal" kitchen with fixed ingredients and not a whole chef cuisine.
The folder with all the files you need (and one ready cooked ROM if you want to try that first) is located at mediafire.
It has the same ingredients as my Tornado kitchen (which is based on that of NitroGenious). The OEM parts are picked from the ROMs that exist already and all of these are largely identical in that part. Some special treatment was done in these ROMs on the backlight and the battery driver. You may wish to find the differences yourself - I picked the backlight driver that best fits my needs. Some more changes to the Tornado Kitchen are (as far I remember):
The batch file handling is not caring any longer where you unpack the kitchen, it can work anywhere in the path.
replaced G'reloc (that was not regularly run) with WMreloc that now runs at each build on the dump folder, so you can basically do whatever you like also on the modules part, wmreloc will align the memory slots always in an optimal way.
The template (source) BINFS is now minimized and there are two flavors of it, one with LZX and another with XPR compression. Just copy either one over the 82040000.bin file. The used imgfsfromdump.exe could also take this from the commandline but I like copying files more than editing the batch file.
almost all parts dealing with WIFI have been removed, the ones that are left in the kitchen will do no harm.
Please also see my post on the shortcomings of the Hurricane compared to the Tornado when announcing the kitchen.
You may also want to learn some basics about Windows Mobile to arm yourself for what you intend, have a look at my Beginners Guide to Windows Mobile (prepare for cooking)
So what to do to get ready cooking?
SuperCID your device -> look in the Tornado Kitchen thread where the process of getting that done is explicitly described. Please take special care about backing up the files from that process! Skip that if you did it already.
Put the patched SPL 1.00.100 on the device. This will allow the BIN file to upload correctly later and it will enable your device to get charged from any USB charger. Skip that if you did it already.
Unpack the kitchen to any folder that you like. It should be a dedicated folder for just that purpose but it can be on any disk and at any place in the directory tree (not too deep to stay below the 255 char path limit, I suspect).
(you start from here for subsequent cooking) Run the batch "BuildOS-all-steps.bat" and follow the instructions that the batch file writes to the command window.
After building the ROM is done (XPR builds much faster than LZX but makes 20% bigger ROM files), you find the result in \Flash as OS.BIN
in \Flash you run as.exe and kill active sync (you may have to push the kill button twice)
connect your device in bootloader mode with UI = yes
run mtty and select the "USB" button
press enter to see the command prompt
enter "info 2" (no quotes)
You must read "HTC CuperCID" at the end of the information to continue (step 1. did that)
(you can skip that for subsequent cooking) Now you can load the OS.BIN to the device. Note that there is a handy feature in MTTY to save you from typing the whole path of the OS.BIN over and over again:
Push the "F" Button (3 from right)
enter "l" (no quotes) for the "download" command
enter the full path to the OS.BIN file in the "first time downloaded file name" field
leave the rest as is
Confirm
Push the "1" botton (second from right) and see the action start
You should see progress per loaded block of the BIN file until it is finished loading to RAM. It then takes as much time to load the RAM copy to the ROM onboard the device - this is the crucial part - be patient until the command prompt comes back.
Enter "ResetDevice"
Close the Terminal window in MTTY (Ctrl-F4 or Ctrl-W) - you can keep MTTY open - to avoid the USB polling for the no more connected device to eat all your CPU.
Wait for the device to start up. This will take some minutes - and if you activate the option "Startup and Shutdown Sounds + Animation" you should see the HTC Boot animation after ~30 seconds. Then you will notice that the screen turns white after some time, don't bother. With the red button you get the normal content back. It may happen during that time of first boot that you feel "locked" out of the device - just wait until the screen gets a little "dim" and press the red botton then.
After you passed the initial Welcome screens the device is ready to use. Reboot is very fast (40-50 seconds) and memory is plenty (35MB RAM).
Finally you may want to check out the German localization (100% for all settings and OS parts) or the nice home-screen that I have added.
Thanks to sniper304, a replacement for the ddi.dll is available in the shared folder at mediafire. Replace the content of "<your-kitchenpath>\WORK\OEM\OEMDrivers\ddi.dll" with the archive content. This removes the scrollbar quirk after a new cooking cycle.
reserved for even more future updates
Thank you!!!
P.S. Hello again!I have a problem with kitchen.
An error no file msvcr71.dll. I copied it from the internet but all the kitchen so as not working!
or
4 Make OS.nb
Very emergence \ OUT
and did'n make ROM.
sniper304 said:
Thank you!!!
P.S. Hello again!I have a problem with kitchen.
An error no file msvcr71.dll. I copied it from the internet but all the kitchen so as not working!
or
4 Make OS.nb
Very emergence \ OUT
and did'n make ROM.
Click to expand...
Click to collapse
You try to copy the files msvcr71.dll to Windows \ system32 direktoris and don't forget to install the Visiual Studio Redistributable Package 2008( requirment of windows to run C++ Programs) on your own computer
Thanks to all!!!Kitchen is working!!!Z have add russian language to my hurricane!!!!
Tobbbie THANKS!!!It's good!
I have not created a file OS.nb.
In order to create, I removed from BuildOS-all-steps.bat line
IF EXIST% kitchenpath% \ OUT (rd / s / q% kitchenpath% \ OUT)
And only then works!
Tobbbie THANKS!!!

Categories

Resources