HTC Network Wizard and provision.zip - Tilt, TyTN II, MDA Vario III General

Basically what I am trying to do is provision the connections on my phone without having to first install HTC Network Wizard, Reboot, then run it and configure the connection and then reboot again.
I know that inside of HTC Network Wizard is the provision.zip file which I have unzipped and located the AT&T XMLs. They are formatted with what look like non-standard CSPs:
<characteristic type="CM_GPRSEntries">
<characteristic type="Cingular GPRS">
<parm name="DestId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}"/>
<parm name="UserName" value="[email protected]"/>
<parm name="Password" value="CINGULAR1"/>
<parm name="AlwaysOn" value="0"/>
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoValid" value="1"/>
<parm name="GPRSInfoAccessPointName" value="wap.cingular"/>
</characteristic>
</characteristic>
</characteristic>
Click to expand...
Click to collapse
If I try to import them like a normal provisioning XML I will get an error. My guess is because the CSPs are non-standard, like "CM_GPRSEntries" and that only HTC Network Wizard knows how to import them. I may be off base here...but that's my guess.
How can I import these to provision my network connections, or is there another way, or a particular set of reg keys I can just import to get everything setup?
thx.

comparing that provxml to the one in the at&t rom dump, they are similar.
Code:
<!-- MODEM[GPRS]: MEdia Net -->
<characteristic type="CM_GPRSEntries">
<characteristic type="MEdia Net">
<parm name="DestId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}"/>
<parm name="Enabled" value="1"/>
<parm name="UserName" value="[email protected]"/>
<parm name="Password" value="CINGULAR1"/>
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoAccessPointName" value="wap.cingular"/>
</characteristic>
</characteristic>
</characteristic>
instead of importing the provxml, why not use the att settings cab, i think u can probably find the cab for it in alltheway's 4shared folder

Thanks Xtreme...you're right the files look very much the same. I downloaded the .CAB, extracted the .XML and it imported just fine.
I then took a deeper look between the two and it seems that my original one was formatted different ASCII. You can't see the difference if you open the XML in a browser, but you can if you open them in notepad.
I converted my original to proper ASCII and it now imported!
I guess the HTC program can deal with different types of ASCII formatting, but the 3rd party XML imported cannot.
thx again.
BTW...I'm writing a generic script, which is why I don't want to just use the .CAB, and need to figure out how to import XML.

Related

Question: where is "provisioning" data stored?

Does anyone know where the provisioning values are stored?
For example, as part of the first-boot customization, several cab files write values to somewhere, getting entries from a xml file within the cab. Here's the partial contents of one such xml file:
<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4097" value="1"/>
<parm name="4101" value="16"/>
<parm name="4102" value="1"/>
<parm name="4103" value="64"/>
</characteristic>
</wap-provisioningdoc>

My own CAB with GPRS settings

Does anybody know how to create my own CAB or where can I find some guide. I mean, CAB which would contain GPRS connection settings (modem, access point, user name, password, internet connection flag, etc).
After each ROM upgrade I have to enter connection settings manually.
In my current EXTROM, there is CAB whoch contain such setting (part of them below). I would change some of values (access point name, userName, password), but how to determine DestID value ?
-------------------------------------------------------
<characteristic type="Era Internet">
<parm name="DestId" value="{FF445A54-ADF8-4fab-86B7-E31482BEE8BE}" />
<parm name="Enabled" value="1" />
<parm name="UserName" value="erainternet" />
<parm name="Password" value="erainternet" />
<parm name="Domain" value="" />
<parm name="SpecificIpAddr" value="0" />
<parm name="IpAddr" value="" />
<parm name="SpecificNameServers" value="0" />
<parm name="DnsAddr" value="" />
<parm name="AltDnsAddr" value="" />
<parm name="WinsAddr" value="" />
<parm name="AltWinsAddr" value="" />
<characteristic type="DevSpecificCellular">
<parm name="BearerInfoValid" value="1" />
<parm name="GPRSInfoValid" value="1" />
<parm name="GPRSInfoProtocolType" value="2" />
<parm name="GPRSInfoL2ProtocolType" value="PPP" />
<parm name="GPRSInfoAccessPointName" value="erainternet" />
<parm name="GPRSInfoAddress" value="" />
<parm name="GPRSInfoDataCompression" value="1" />
<parm name="GPRSInfoHeaderCompression" value="1" />
<parm name="GPRSInfoParameters" value="" />
</characteristic>
</characteristic>
----------------------------------
thanks
The only thing I have been able to find out so far is that you can create .cab files for mobile devices using Microsoft Visual Studio. There is an evaluation version in the Windows Mobile SDK that you can download here. I'm playing around with it at the moment to see what is possible.
I would be very interested to hear from Molski and others how they create their .cab files!
DestID is a unique created sequence. You can keep the destID same as given above. I have prepared the GPRS/MMs configuration cab file for BSNL(North) for INDIA. Only thing you have to change for customization are very few paramenters like access point, server address, gateway etc. You can easily make it. What you need is WinCE cab Manager for making the Cab. enjoy...
Turns out there is a page on the Wiki here that explains how to create your own .cab files. Didn't find it when I was browsing the Wiki, but it turned up in google when I searched for WinCE cab Manager
Bommie said:
The only thing I have been able to find out so far is that you can create .cab files for mobile devices using Microsoft Visual Studio. There is an evaluation version in the Windows Mobile SDK that you can download here. I'm playing around with it at the moment to see what is possible.
I would be very interested to hear from Molski and others how they create their .cab files!
Click to expand...
Click to collapse
I create my CAB files with WinCE Cab Manager.
I know it is possible in Visual Studio also, I got Visual Studio, but didn't had the time yet to see how it works.
So for know I use WinCE Cab Manager (v1.1) which works perfect in my opinion.
Bommie said:
The only thing I have been able to find out so far is that you can create .cab files for mobile devices using Microsoft Visual Studio. There is an evaluation version in the Windows Mobile SDK that you can download here. I'm playing around with it at the moment to see what is possible.
I would be very interested to hear from Molski and others how they create their .cab files!
Click to expand...
Click to collapse
I create my CAB files with WinCE Cab Manager.
I know it is possible in Visual Studio also, I got Visual Studio, but didn't had the time yet to see how it works.
So for know I use WinCE Cab Manager (v1.1) which works perfect in my opinion.

Way to Backup Connection and Email settings??

Hello,
Does anyone know a way not only to backup PIM, but also Email settings and COnnection/VPN settings/Exchangeserver settings?
It is quite annoying jotting them down everytime I try a new rom.
No tools for this? Must be some reg keys only aren't they?
Why not back the registry up using sprite or a reg tool?
New Roms have other Registry settings I guess?
Riel said:
New Roms have other Registry settings I guess?
Click to expand...
Click to collapse
This is what I would like to know too
I doubt it's in the registry: I searched for my account name and it wasn't found. Try looking into the "Documents and Settings" folder; that seems promising to me!
Ok, since you dont want to do the work, try exporting these hives:
wifi conn - HKCU\comm\EAPOL\Config
Sounds/notifications - HKCU\control panel\notifications
Exchange activesync settings - HKLM\system\activesync
To start off with.
Most of those keys should be fairly standard, roms should only change HTC and other software/hardware specific entries for tweaks.
This would really help! I have no idea where to look for those settings... Also I would like to save the settings about my favourites (people shoving up in manila) so that I dont have to add them every time I reflash. Thanks
Riel said:
Hello,
Does anyone know a way not only to backup PIM, but also Email settings and Connection/VPN settings/Exchangeserver settings?
It is quite annoying jotting them down everytime I try a new rom.
No tools for this? Must be some reg keys only aren't they?
Click to expand...
Click to collapse
Not in the Registry - It's WAP Provisioning.
For the Email definitely (and perhaps some of the other settings you want) you can use RapiConfig to export your email settings to Provisioning XML. See the UC thread - post #17 for details.
Use this option when exporting.
Code:
<wap-provisioningdoc>
<characteristic-query type="EMAIL2" recursive="true"/>
</wap-provisioningdoc>
Also it is not obvious until you think about it - but when you run the RapiConfig utility on your PC - you must have your phone connected via USB to said PC at this time so it can extract the info from it.
Oh and you could of course just write the ProvXML your self without extracting/creating it with RapiConfig.
You can then either just import the ProvXML with Regedit v3 or convert the ProvXML to a CAB so it will import standalone.
I have done the latter. So I can reinstall all four of my email accounts with a single click on a cab. The process is a little convoluted to create. But you only have to do it once and then you can just keep using it. I originally created mine on my Kaiser 6 months ago and it works perfectly on the Diamond.
Also same UC thread post #3 scroll to the EMAIL2 CSPs bit to see the syntax. which is like this..
Code:
<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
<parm name="SERVICENAME" value="Gmail" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Username" />
<parm name="AUTHNAME" value="[email protected]" />
<parm name="AUTHSECRET" value="password" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="[email protected]" />
<parm name="SMTPALTPASSWORD" value="password" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
<characteristic type="EMAIL2">
<characteristic type="{877e6100-cd6d-4a44-bd4c-3edf4b901480}">
<parm name="SERVICENAME" value="Gmail1" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Username" />
<parm name="AUTHNAME" value="[email protected]" />
<parm name="AUTHSECRET" value="password1" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="[email protected]" />
<parm name="SMTPALTPASSWORD" value="password1" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Developers
So will anyone look into this and create a tool which creates the ability to restore email settings after a ROM update? Highly appreciated.
use a back-up utility like spb backup. restore PIM and e-mail only! the registry and system of the new ROM is not the same with yr old one!!
i get not only my PIM and e-mail accounts but also my favorite ppl (pics), last calls and SMS and all my settings (password not included) for WIFI and Internet connection. all in under 1 min!
logger: Great guide, I managed to make an regout.xml, but I dont know how to make a cab out of it. Any help is appreciated!
logger said:
Not in the Registry - It's WAP Provisioning.
For the Email definitely (and perhaps some of the other settings you want) you can use RapiConfig to export your email settings to Provisioning XML. See the UC thread - post #17 for details.
Use this option when exporting.
Click to expand...
Click to collapse
thanks for this! what is this string of numbers:
Code:
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
like where do i get that from?
laser21 said:
logger: Great guide, I managed to make an regout.xml, but I dont know how to make a cab out of it. Any help is appreciated!
Click to expand...
Click to collapse
Use makecab. For info look more here. Makecab should already be on your WIN system
Syntax is
Code:
makecab _setup.xml Provisioning.cab
Make sure you either append "_setup.xml" to the end of, or rename your input XML to just _setup.xml as makecab needs that in the input filename. Output name can be whatever you want.
racerx_ said:
thanks for this! what is this string of numbers:
Code:
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
like where do i get that from?
Click to expand...
Click to collapse
It is the GUID that makes the email account unique (at least thats the way I understand it but my knowledge here is very limited). Go back and look at UC Thread Post #3 and in the EMAIL2 CSPs section read the second line which explains that you simply go to http://www.guidgen.com/ to create a new one that you can use.
thanks thanks thanks!
so i need a different one every time i restore this account, or just generating one that i use every time should be ok..
Thanks. I knew about the regular windows makecab...but wasnt sure if its the same for ppc
racerx_ said:
thanks thanks thanks!
so i need a different one every time i restore this account, or just generating one that i use every time should be ok..
Click to expand...
Click to collapse
Just create the GUID once for each account. I have probably used my "AllFourEmailAccs.cab" more than 50 times now, unchanged from day one and it works perfectly.
KukurikU said:
use a back-up utility like spb backup. restore PIM and e-mail only! the registry and system of the new ROM is not the same with yr old one!!
i get not only my PIM and e-mail accounts but also my favorite ppl (pics), last calls and SMS and all my settings (password not included) for WIFI and Internet connection. all in under 1 min!
Click to expand...
Click to collapse
Hello mate- by favourite ppl- do you mean it actually backs up the list of favourite people you've setup in TF3D??? I've been looking for something to back up my TF3D people list since ROM flashing became possible (which is now why way behind as we know )
Hi, I just tried my new cab, it does import the email settings, but doesnt import the password. Also it doesnt import the wifi password. Any suggestions?
PS it wrote after installing the cab, that the installation was unsuccessful.
Thanks for any tips
I also need a way to backup connections (wap & mms)...

noob trying to use provxml needs help.

I have been trying wrap my brain around .provxml files for several days now. But either I am missing the big picture or something is different about Wizard from other HTC devices.
Either way I could use some insight/help.
I am using the following:
An unlocked Cingular Wizard,
The HyperCore Kitchen,
Kitchen Files for XM6r5.
I am trying to learn, so for now the only thing I am trying to do is manipulate Tetris so that when the ROM is placed on the Wizard the Shortcut for Tetris is copied from the \Windows Folder to the \Windows\Start Menu\Programs\Games and then have the original deleted from the \Windows folder.
mxipcold_Tetris_100.provxml:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE14%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Tetris.lnk">
<characteristic type="Copy">
<parm name="Source" value="%CE2%\Tetris.lnk" translation="install"/>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="%CE2%\Tetris.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I have read a LOT about .provxml, I do not have less than 16 bookmarks devoted just to different discussions about these files. I have read most of what it out there but, respectfully, some of the discussions are quite lengthy an I have skimmed through them.
I have read that the .dsm should not be zero bytes so I followed the instructions and used BuildDSM.exe.
I read that the provxml needs to be UTF8, so I corrected this as well.
etc...
EVERY single test has been a COMPLETE failure. Not once has the .lnk been copied, deleted or both.
But there is not a lot of information about .provxml that is Wizard specific so I think I must just be missing some small step, or some error.
Does someone know what I need to do to make this work?
Drew
Additional:
If you are wondering why I am trying so hard to figure this out do the following:
1) Load up your kitchen of choice
2) With the cooking pack of your choice
3) Build a ROM that has every non-essential item removed.
4) Put this thing on your phone.
5) Notice how unbelievably fast your Wizard now boots
6) Use File Explorer to move around and check out how fast the Windows folder displays.
Do you know why the phone is so much faster now? It is because there are so few files in the Windows folder compared to before. An old trick to speed up windows on a PC years ago was to remove files you don't need from the Windows folder. It would take some doing because Windows was a dumping ground for all the programmers, some even just installed their programs into the Windows folder rather than bother with creating a folder of there own. We have a similar situation with the Wizard.
If we can create ROMs that install applications into different folders we can add applications while significantly reducing the impact on performance.
I trying to simply do what initflashfiles.dat does, but in a different way. initflashfiles.dat will always leave the original file in the Windows folder, by eliminating the duplication it may even be possible to squeeze in another small app or two.
There does not seem to be a way to build a ROM (ourselves) and just have files in the folders we want them in. But these .provxml files are supposed to get processed at a point when the ROM can be modified, like a hard reset. They have the commands to create folders, copy/move files and delete files for a reason, and I am looking to take advantage of it.
Accomplishing this could breath years of new life into these Wizards by keeping them fast enough and responsive enough.
Have you had any luck with this? I too, am trying to use provxml's to delete files while cooking. So far no luck. I've seen several instances of this being used by Microsoft in \SYS so I don't understand why it isn't working.
I have noticed some cooks put the provxml file in the same folder as the program in their kitchens. No need to add another folder or dsm file.
I can't comment on DrewYK's problem, but I was trying to use the forcedelete command to remove files (jbed graphics) and this is not possible once the files has been included in the ROM. There are instances of Microsoft using a provxml to remove files, but it is only used to remove shortcuts.
example:
Code:
<!-- ====== -->
<!-- BEGIN ==== Delete the OfficeMobile lnks from all possible locations other than start-menu -->
<!-- ====== -->
<characteristic type="%CE11%\Office Mobile\PowerPoint Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE11%\Office Mobile\Word Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE11%\Office Mobile\Excel Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE11%\Office Mobile\icon.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE11%\Office Mobile" translation="install">
<characteristic type="RemoveDir" />
</characteristic>
<characteristic type="%CE11%\PowerPoint Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE11%\Word Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE11%\Excel Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE17%\PowerPoint Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE17%\Word Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<characteristic type="%CE17%\Excel Mobile.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
<!-- ====== -->
<!-- END ==== Delete the OfficeMobile lnks from all possible locations other than start-menu -->
<!-- ====== -->

XML Code help for BrowserFavs

Hi, please could someone point me in the right direction or tell me where I am going wrong.
I am trying to produce a cab that contains amongst other things the addition of some Browser Favourites and the removal of the default ones. I am using WinCE CAB Manager and currently trying to edit the PREXML Code.
I can add new Browser Favourites using the following code
<characteristic type="BrowserFavorite">
<characteristic type="Test URL">
<parm name="URL" value="URL Test" />
</characteristic>
When I try to remove the current ones such as Windows Live, HTC etc I use this code
<characteristic type="BrowserFavorite">
<nocharacteristic type="Explore Windows Mobile" />
</characteristic>
<characteristic type="BrowserFavorite">
<nocharacteristic type="HTC" />
</characteristic>
<characteristic type="BrowserFavorite">
<nocharacteristic type="Google" />
</characteristic>
<characteristic type="BrowserFavorite">
<nocharacteristic type="AccuWeather.com" />
</characteristic>
<characteristic type="BrowserFavorite">
<nocharacteristic type="Windows Live" />
</characteristic>
So I use the nocharactristic type which then allows me to save code but then the CAB file will not install. They refuse to go. Where am I going wrong?! Thanks

Categories

Resources