cab file for gprs connection - JAMin, XDA Neo, S200 General

Hi All,
I found nice way to automate gprs connection settings creation and I believe that I have to share this with community. Probably for most of you it is not something new- sorry for these that are knowledgable, but for me it was real progress ... so three steps:
1. Create simple txt file like shown bellow and rename it to _setup.xml. Make changes to suit your operator - APN, usename, password and connection name
---------begin of file-------------------------------
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="AppName" value="CAB Provisioning File" />
<parm name="NoUninstall" value="1" />
<parm name="NumDirs" value="1" />
<parm name="NumFiles" value="1" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="0" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="CM_GPRSEntries">
<characteristic type="NAME-OF-CONNECTION">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoAccessPointName" value="PUT.YOUR.APN.NAME.HERE" />
</characteristic>
<parm name="UserName" value="USERNAME" />
<parm name="Password" value="PASSWORD" />
<parm name="Enabled" value="1" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
---------end of file-------------------------------
2. Download the following util from MS Site
http://support.microsoft.com/kb/310618
3. do the following
makecab /D COMPRESS=OFF _setup.xml gprs.cab
4. Move the gprs.cab to your device and execute it ... and the magic works.
What I'm looking for is how to install certificate on device - issued from my internal CA....
Regards,
BB.

I take it that you are looking for a way to install a certificate with a CAB and not just copy the certificate to the device and 'run' it?
If so, have a look here: http://www.microsoft.com/technet/itsolutions/mobile/deploy/msfp_b.mspx

Related

Mail provisioning in a cab file?

I'm getting tired of entering my exchange info every time I update my device... I've already got a cab with the settings for my provider, but does anyone know if I can provision my phone for my exchange server with a cab file?
Nevermind... I found it already...
I'm a happy guy now... One cab file configures MMS, my EDGE connection AND my exchange settings...
Great thread. How about linking to where you found the solution for the rest of us lazy suckers.
liquidsilver said:
Great thread. How about linking to where you found the solution for the rest of us lazy suckers.
Click to expand...
Click to collapse
Sure...
1) I found the xml file that provisions the server:
Code:
<wap-provisioningdoc>
<characteristic type="Sync">
- <characteristic type="Connection">
<parm name="Server" value="EXCHANGE SERVER NAME HERE" />
<parm name="Password" value="EXCHANGE PASSWORD HERE" />
<parm name="User" value="USERNAME HERE" />
<parm name="Domain" value="EXCHANGE DOMAIN NAME HERE" />
<parm name="SavePassword" value="1" />
<parm name="UseSSL" value="1" />
<parm name="AllowSSLOption" value="1" />
<parm name="URI" value="Microsoft-Server-ActiveSync" />
</characteristic>
- <characteristic type="Settings">
<parm name="PeakStartTime" value="0800" />
<parm name="PeakEndTime" value="1600" />
<parm name="PeakFrequency" value="30" />
<parm name="OffPeakFrequency" value="120" />
- <characteristic type="PeakDays">
<parm name="Sun" value="0" />
<parm name="Mon" value="1" />
<parm name="Tue" value="1" />
<parm name="Wed" value="1" />
<parm name="Thr" value="1" />
<parm name="Fri" value="1" />
<parm name="Sat" value="0" />
</characteristic>
</characteristic>
- <characteristic type="Calendar">
<parm name="Enabled" value="1" />
<parm name="SyncSwitchPurge" value="3" />
</characteristic>
- <characteristic type="Contacts">
<parm name="Enabled" value="1" />
<parm name="SyncSwitchPurge" value="3" />
</characteristic>
- <characteristic type="Mail">
<parm name="Enabled" value="1" />
</characteristic>
- <characteristic type="Tasks">
<parm name="Enabled" value="1" />
</characteristic>
</wap-provisioningdoc>
2) Save this as _setup.xml
3) Convert it to a CAB with Makecab (found in any windows install). Type
Code:
makecab _setup.xml mailsetup.cab
Then just run the file on your device. In my case I added the Exchange settings to the end of the provider setup xml found here on xda developers.
This is excellent. But I wonder if you could make the MMS and GPRS settings available as well ?
I tried to use this to set up my exchange information on my phone but when I run the cab on my phone, I get installation unsuccessful. I followed the instructions, but apparently didn't do something right. Any suggestions?
Alien: I actually created a program that will setup your exchange and wifi setting and make a cab.
http://forum.xda-developers.com/showthread.php?t=315853
I hope that helps, generally when making the XML and it gives an error its something very small and easily overlookable (I know it was for me).

Using XML for phone set up

Ok, so im a chronic flasher and have to set up my phone alot. Now Im no expert but have learned a few tricks in my day and wanted to share them with everyone and also hopefully have other people contribute so we can all learn a little more.
It seems that you can do alot with xml, from registry settings to email set up, etc... With Wince Cab manager you manually put in registry settings, but some of them cant be installed, they need to be provisioned. For example:
ghisler's Total Commander has the ability to do FTP which for me comes in really handy. However the FTP info is stored in the registry, when you try to put this info in wince and try to install the cab it will fail everytime (could have been the format of the password, but regardless xml is more fun). So in order to get the registry settings in i had to use this format:
Code:
<characteristic type="Registry">
<characteristic type="HKCU\SOFTWARE\Ghisler\ftp\servers\Connection name" translation="filesystem">
<parm name="firewall" datatype="string" value="" />
<parm name="password" datatype="string" value="password" />
<parm name="remotedir" datatype="string" value="" />
<parm name="sendcmds" datatype="string" value="" />
<parm name="server" datatype="string" value=[URL="ftp://ftp.server.com/"]ftp.server.com[/URL] />
<parm name="servertype" datatype="string" value="" />
<parm name="username" datatype="string" value="username" />
</characteristic>
</characteristic>
My next pet peeve was email setup..
I use Gmail IMAP and mail2web for push mail.
Gmail imap:
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="my name" />
<parm name="AUTHNAME" value=[EMAIL="[email protected]"][email protected][/EMAIL] />
<parm name="AUTHSECRET" value="password" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="testme[EMAIL="[email protected]"]@gmail.com[/EMAIL]" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="2048" />
<parm name="KEEPMAX" value="25" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="testme[EMAIL="[email protected]"]@gmail.com[/EMAIL]" />
<parm name="SMTPALTPASSWORD" value="password" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I havent had to set up a pop3 account yet, but according to M$ here is the xml code for it:
Code:
<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{GUID}">
<parm name="SERVICENAME" value="example.com"/>
<parm name="SERVICETYPE" value="POP3"/>
<parm name="INSERVER" value="myemail.example.com"/>
<parm name="OUTSERVER" value="myemail.example.com"/>
<parm name="AUTHREQUIRED" value="1"/>
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="1"/>
</characteristic>
<parm name="AUTHNAME" value="[email protected]"/>
<parm name="AUTHSECRET" value="password"/>
<parm name="REPLYADDR" value="[email protected]"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Then Mail2web push mail through activesync and also calendar and contacts:
Code:
<characteristic type="Sync">
<characteristic type="Settings">
<parm name="BodyTruncation" value="1024" />
</characteristic>
<characteristic type="Connection">
<parm name="Domain" value="DOMAIN" />
<parm name="Password" value="password" />
<parm name="SavePassword" value="1" />
<parm name="Server" value="mobile.exchange.mail2web.com" />
<parm name="User" value="myemail_mail2web_" />
<parm name="URI" value="Microsoft-Server-ActiveSync" />
</characteristic>
<characteristic type="Mail">
<parm name="Enabled" value="1" />
<parm name="MailBodyTruncation" value="1024" />
<parm name="MailFileAttachments" value="1024" />
</characteristic>
<characteristic type="Calendar">
<parm name="Enabled" value="1" />
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1" />
</characteristic>
</characteristic>
So i hope some of this helps everyone... im no expert on this and its pretty new territory but will answer what i can. Would also appreciate hints, tips, etc from the pro's..
I've started doing this as well, even created a little application to help install them... can be found below, if you find bugs or have feature requests, please post in the thread below so I can track them all in one location
http://forum.ppcgeeks.com/showthread.php?t=15977
Thanks for posting you guys, Complete noob to this,
1. So I install vinny's app ( Storage Card )
2. Copy & Paste Shogunmarks files to pc
3. Edit xml files to include my info
4. Copy to same folder as 1. on ppc.
5. After Hard reset just run Vinnys app.
Sounds to easy when you write it down . Thanks again.
Alot of this info can be found over at M$ if you know what to search for, plus you can utilize xml for lots of different commands. For example this script below will create a folder "test folder" in the "programs" directory, then after it creates it then it copies "test.exe" from the cab file and places it in the "test folder".
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE1%\test folder" translation="install">
<characteristic type="MakeDir" />
<characteristic type="test.exe" translation="install">
<characteristic type="Extract">
<parm name="Source" value="CE1\test folder\test.exe" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Just an FYI i am a noob to the xml stuff, but have picked up most of it pretty quick... what i post in this thread is the things i am picking up along the way. Its kinda like my personal notepad that can be displayed publicly
Great thread; very useful information. Would you say the best way to "import" these settings is to create a cab with them inside of the provisioning xml, or would you use the other method described in this post (using that program someone else posted)?
arexben said:
Great thread; very useful information. Would you say the best way to "import" these settings is to create a cab with them inside of the provisioning xml, or would you use the other method described in this post (using that program someone else posted)?
Click to expand...
Click to collapse
i would say it depends on your needs... what prompted this is that i created cab to install all my settings since i flash alot. So i use a cab, then i can import my ringtones, etc... however i am also interested in the other method as i should be able to pretty much accomplish the same function... i would say play around with it and see what works best for you. I personally like using OCP's wince cab manager which does allow xml files for provisioning.
shogunmark said:
Gmail imap:
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="my name" />
<parm name="AUTHNAME" value=[EMAIL="[email protected]"][email protected][/EMAIL] />
<parm name="AUTHSECRET" value="password" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="testme[EMAIL="[email protected]"]@gmail.com[/EMAIL]" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="2048" />
<parm name="KEEPMAX" value="25" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="testme[EMAIL="[email protected]"]@gmail.com[/EMAIL]" />
<parm name="SMTPALTPASSWORD" value="password" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
I have followed this example to the T and its still not working. I have tried making it into a cab, and i have tried loading the xml file using Slueth's UC....any idea what i am doing wrong. When i make a cab file from it, it either does nothing or says installation fails. Im not sure if the xml file has to be name something special or if im missing a step, but any insight is greatly appreficated. Thank you.
elosogrande7076 said:
I have followed this example to the T and its still not working. I have tried making it into a cab, and i have tried loading the xml file using Slueth's UC....any idea what i am doing wrong. When i make a cab file from it, it either does nothing or says installation fails. Im not sure if the xml file has to be name something special or if im missing a step, but any insight is greatly appreficated. Thank you.
Click to expand...
Click to collapse
you could also try oemizer, which generates the files for you:
www.tiermann.net
What's the value for domain? When I enter my login name manually the field for domain becomes grey-highlighted! :-?
A few short words: it isn't working for me too at the moment!
Hi elosogrande7076
I had the same problem and found a error in the xml file.
doublecheck that all emailadresses are in this format "[email protected]" and do not forget the ".
In the example is a emailadresse without the " and this makes your installation fail.
<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="my name" />
<parm name="AUTHNAME" [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="2048" />
<parm name="KEEPMAX" value="25" />
<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>
</wap-provisioningdoc>
Still having the same issue as well Gmail. Do I have to generate my own
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
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="First Last" />
<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>
</wap-provisioningdoc>
the exchange directpush XML was missing a parameter
Code:
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Connection">
<parm name="Domain" value="DOMAIN" />
<parm name="Password" value="PASSWORD" />
<parm name="SavePassword" value="1" />
<parm name="Server" value="EXCHANGE.SERVER.COM" />
<parm name="User" value="USERNAME" />
</characteristic>
<characteristic type="Settings">
<parm name="PeakStartTime" value="0600"/>
<parm name="PeakEndTime" value="1800"/>
<parm name="PeakFrequency" value="0"/>
<parm name="BodyTruncation" value="5120"/>
<characteristic type="PeakDays">
<parm name="Sun" value="0"/>
<parm name="Mon" value="1"/>
<parm name="Tue" value="1"/>
<parm name="Wed" value="1"/>
<parm name="Thr" value="1"/>
<parm name="Fri" value="1"/>
<parm name="Sat" value="0"/>
</characteristic>
</characteristic>
<characteristic type="Calendar">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Mail">
<parm name="Enabled" value="1"/>
<parm name="MailBodyTruncation" value="1024" />
<parm name="MailFileAttachments" value="1024" />
</characteristic>
<characteristic type="Tasks">
<parm name="Enabled" value="1" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
elosogrande7076 said:
I have followed this example to the T and its still not working. I have tried making it into a cab, and i have tried loading the xml file using Slueth's UC....any idea what i am doing wrong. When i make a cab file from it, it either does nothing or says installation fails. Im not sure if the xml file has to be name something special or if im missing a step, but any insight is greatly appreficated. Thank you.
Click to expand...
Click to collapse
You have to convert your XML file to UTF-8 format. ANSI files don't work. You can use Notepad++ for this.
Hello, I'm able to create my own cab to config my email account, but I still need two parameters:
1. What is the parameter for 'delete mails from server ' / 'leave mails on server'
2. what is the parameter for 'click on send to send/receive'
Info: I found the parameter 'FORMAT' to set the mailformat as plain text or html
Is there a parameter for the Mail2Web XML to set it to download just today's messages? It always defaults to 3 days. I can set it to one day for my Gmail account, but don't see anything similar for my Exchange Server settings.
Orbitter2 said:
Hello, I'm able to create my own cab to config my email account, but I still need two parameters:
1. What is the parameter for 'delete mails from server ' / 'leave mails on server'
2. what is the parameter for 'click on send to send/receive'
Info: I found the parameter 'FORMAT' to set the mailformat as plain text or html
Click to expand...
Click to collapse
Maybe this two parameters are stored in the registry? Where? Am I the only one who want to config his emailaccount completely?
I am kind of retarded when it comes to this. Has anyone ever created a "template" cab for email and we just edit the xml file inside? I'm definitely tired of setting my gmail up after each rom I try out....tia
I have created the cab files but they still won't install. (one for my gmail and one for my wifi)
Ok. I was able to make a successful cab from shogunmark's xml file for my gmail. Now, I tried to do the same thing for my wifi settings and make a cab file but I get installation unsuccessful. Any ideas from the gurus????

Creating installation cab (file ops) with registry tweaks

Hi, after looking for long time on this forum and on google, I'm stuck
I'm looking a way, with tools MAKECAB, to create an autoinstall file with registry tweak.
The goal is to purpose an addons for TF3D Config, and auto apply all tweaks during installation process.
So
I already have this :
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\System\GDI\GLYPHCACHE">
<parm name="limit" value="131072" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\SIM_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\MMC_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\NAND_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="ACResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="BattResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P6">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P8">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P9">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\Phone">
<parm name="Vol" value="34952" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockEnable" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockTimeout" value="5" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I just want to copy a file name tweaks_custom.xml to TF3D Install directory
Here my try :
Code:
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="OSVersionMin" value="4.0" />
<parm name="OSVersionMax" value="6.99" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="-536870912" />
<parm name="AppName" value="Celogeek TF3D Custom Tweaks" />
<parm name="InstallDir" value="%CE1%\Diamond TF3D Config" translation="install" />
<parm name="NumDirs" value="1" />
<parm name="NumFiles" value="1" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="14" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%CE1%\Diamond TF3D Config" translation="install">
<characteristic type="MakeDir" />
<characteristic type="tweaks_custom.xml" translation="install">
<characteristic type="Extract">
<parm name="Source" value="ctweaks.001" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKLM\System\GDI\GLYPHCACHE">
<parm name="limit" value="131072" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\SIM_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\MMC_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\NAND_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="ACResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="BattResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P6">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P8">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P9">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\Phone">
<parm name="Vol" value="34952" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockEnable" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockTimeout" value="5" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
How can I pack it to a cab, and make it work ?
rename it _setup.xml
use makecab.exe like this from command line:
makecab.exe _setup.xml cabfilename.cab
your second xml doesn't look wellformed to me, it should begin like the first one with <wap-provisioningdoc> among other things.
geistteufel said:
How can I pack it to a cab, and make it work ?
Click to expand...
Click to collapse
Take a look in this thread...
http://forum.xda-developers.com/showthread.php?t=409306
ok thanks
its for registry tweak only
I know how to do that
I was looking for a free and easy way (no installing visual studio or big soft), to make installer with local file in cab and registry tweaks
for registry I have found makecab, work fine, under windows.
for copie file with local resource (in the cab), I have found pocketpc-cab (on linux)
I'm not really happy to go and back, and make 2 soft ...
WinCE Cab was my better solution, but it's not free.
how can I make it for free ?

GPRS provisioning XML

Hi there,
this makes me crazy, I was trying to make a xml provisioning file for my GPRS settings (O2 UK pay as you go) as the settings from connection setup are not correct...
The correct one is:
APN: payandgo.o2.co.uk
Name: payandgo
Password: password
Proxy:
HTTP: 193.113.200.195:8080
WAP: 193.113.200.195:9201
SOCKS: 193.113.200.195:1080
After spending a lot of times on:
http://forum.xda-developers.com/showthread.php?t=414566
http://wiki.xda-developers.com/index.php?pagename=How to Create a GPRS Connections CAB: XML Method
I came up with the file below:
Code:
<wap-provisioningdoc>
<characteristic type="CM_Networks">
<characteristic type="O2 Prepaid Settings">
<parm name="DestId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
</characteristic>
</characteristic>
<characteristic type="CM_GPRSEntries">
<characteristic type="O2 Prepaid">
<parm name="DestId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
<parm name="Enabled" value="1" />
<parm name="UserName" value="payandgo" />
<parm name="Password" value="password" />
<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="GPRSInfoValid" value="1" />
<parm name="GPRSInfoAccessPointName" value="payandgo.o2.co.uk" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="CM_ ProxyEntries">
<characteristic type="null-corp-{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}">
<parm name="SrcId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
<parm name="DestId" value="{A1182988-0D73-439E-87AD-2A5B369F808B}" />
<parm name="Proxy" value="new-corp:1118" />
<parm name="Type" value="0" />
<parm name="Enable" value="1" />
</characteristic>
<characteristic type="HTTP-{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}">
<parm name="SrcId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="Proxy" value="193.113.200.195:8080" />
<parm name="Type" value="1" />
<parm name="Enable" value="1" />
</characteristic>
<characteristic type="WAP-{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}">
<parm name="SrcId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
<parm name="DestId" value="{7022E968-5A97-4051-BC1C-C578E2FBA5D9}" />
<parm name="Proxy" value="193.113.200.195:9201" />
<parm name="Type" value="2" />
<parm name="Enable" value="1" />
</characteristic>
<characteristic type="WTLS-{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}">
<parm name="SrcId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
<parm name="DestId" value="{F28D1F74-72BE-4394-A4A7-4E296219390C}" />
<parm name="Proxy" value="193.113.200.195:9203" />
<parm name="Type" value="3" />
<parm name="Enable" value="1" />
</characteristic>
<characteristic type="SOCKS-{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}">
<parm name="SrcId" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" />
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="Proxy" value="193.113.200.195:1080" />
<parm name="Type" value="4" />
<parm name="Enable" value="1" />
</characteristic>
</characteristic>
<characteristic type="CM_Planner">
<characteristic type="PreferredConnections">
<parm name="{436EF144-B4FB-4863-A041-8F905A62C572}" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}"/>
<parm name="{A1182988-0D73-439e-87AD-2A5B369F808B}" value=""/>
<parm name="{7022E968-5A97-4051-BC1C-C578E2FBA5D9}" value=""/>
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\mm1">
<parm name="DefaultSetting" value="SampleMMSC" datatype="string"/>
</characteristic>
<characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\mm1\MMSCSetting\SampleMMSC">
<parm name="Name" value="O2 MMS" datatype="string"/>
<parm name="MmscURI" value="http://mmsc.mms.o2.co.uk:8002" datatype="string"/>
<parm name="Gateway" value="193.113.200.195" datatype="string"/>
<parm name="GatewayPort" value="9201" datatype="integer"/>
<parm name="waptype" value="0" datatype="integer"/>
<parm name="SendDefault" value="307200" datatype="integer"/>
<parm name="ConnectionVia" value="{0112BB3C-ECF5-4dc5-A26D-51A4558CF756}" datatype="string"/>
<parm name="WAP1SendDefaultSize" value="307200" datatype="integer"/>
<parm name="WAP2SendDefaultSize" value="307200" datatype="integer"/>
<parm name="ISP" value="SampleMMSC" datatype="string"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I use SASHIMI to provision the file...it did go thru.. the MMS part is ok...GPRS is partly ok with the APN, user name and password went to the right place..
But nothing goes to the Proxy part, there is a check in the "this network connects to the Internet" under the new setting but "this network uses a proxy server to connect to the Internet" is unchecked and nothing in the proxy server field..
and also, the <characteristic type="CM_Planner"> doesn't seem to work as well, under network management, "auto connect to the internet" part still stays with the default "My ISP" but not the new setting..
btw, I'm on a wm 6.5 ROM (Topix 3.3)
Can anyone help me to check my code and shine some light on me plz!!! thanks a lot and happy new year
bump, anyone reading this??
You have a typo. Use "CM_ProxyEntries" instead of "CM_ ProxyEntries".

[Q][Solved]Is there any way to make a provxml for WiFi that sets WPA 2 + AES?

Topic says it all. I have WPA2 AES on my network, and I can't find any way to make a provxml that makes that. Does anybody know of such a tool?
Here you have:
Code:
<characteristic type="CM_WiFiEntries">
<characteristic type="mywireless">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}" datatype="string"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="mywireless">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" datatype="string"/>
<parm name="Encryption" value="6" datatype="integer"/>
<parm name="Authentication" value="7" datatype="integer"/>
<parm name="Hidden" value="1" datatype="boolean"/>
<parm name="AdHoc" value="0" datatype="integer"/>
<parm name="KeyProvided" value="0" datatype="integer"/>
<parm name="NetworkKey" value="xxxxxxxxxxxxxx"/>
<parm name="KeyIndex" value="1" datatype="integer"/>
<parm name="Use8021x" value="0" datatype="boolean"/>
<parm name="EAPType" value="13" datatype="integer"/>
<parm name="KeyProvided" value="0" datatype="integer"/>
<parm name="KeyIndex" value="1" datatype="integer"/>
</characteristic>
</characteristic>
</characteristic>
Adjust your wifi name, password if it is hidden...
Thanks! That was almost, but it gave me an error a page long, starting with :
Code:
System.XmlException: There are multiple root elements. Line 6, position 2.
And a bunch of "throw" and "parse". But using your values for encryption and authentication I was able to build one that worked, so now I'm all good! This is what it became:
Code:
<wap-provisioningdoc><characteristic type="CM_WiFiEntries">
<characteristic type="MyWifi">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="MyWifi">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Hidden" value="0" />
<parm name="Encryption" value="6" />
<parm name="Authentication" value="7" />
<parm name="KeyIndex" value="1" />
<parm name="NetworkKey" value="**********" />
<parm name="KeyProvided" value="0" />
<parm name="Use8021x" value="0" />
<parm name="EAPType" value="0" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
And in case you wonder: No, my WiFi password is not **********...
Mastiff said:
Thanks! That was almost, but it gave me an error a page long, starting with :
Code:
System.XmlException: There are multiple root elements. Line 6, position 2.
And a bunch of "throw" and "parse". But using your values for encryption and authentication I was able to build one that worked, so now I'm all good! This is what it became:
Code:
<wap-provisioningdoc><characteristic type="CM_WiFiEntries">
<characteristic type="MyWifi">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="MyWifi">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Hidden" value="0" />
<parm name="Encryption" value="6" />
<parm name="Authentication" value="7" />
<parm name="KeyIndex" value="1" />
<parm name="NetworkKey" value="**********" />
<parm name="KeyProvided" value="0" />
<parm name="Use8021x" value="0" />
<parm name="EAPType" value="0" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
And in case you wonder: No, my WiFi password is not **********...
Click to expand...
Click to collapse
Yeah, sorry it wasn't a full xml, it was a fragment of my provision xml. (It configure UMTS, operator, Wifi, bluetooth...)
Glad you figured out
I'm glad to!
Hello,
When I found this tread I was very happy. I tried your xml file but without result. I can connect to the wireless router from my PC but cannot from my HD2. Here are the steps that I done:
1. Create a _setup.xml file with exact your data, except network name and password
2. I created a .cab with "makecab _setup.xml config.cab" and instaled on my HD2
I always get incorrect password.
This is the content of my _setup.xml file.
<wap-provisioningdoc><characteristic type="CM_WiFiEntries">
<characteristic type="[email protected]">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="[email protected]">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Hidden" value="0" />
<parm name="Encryption" value="6" />
<parm name="Authentication" value="7" />
<parm name="KeyIndex" value="1" />
<parm name="NetworkKey" value="~1qaz2345" />
<parm name="KeyProvided" value="0" />
<parm name="Use8021x" value="0" />
<parm name="EAPType" value="0" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
The encryption of the router is WPA2-PSK with AES.
Any ideas? Can be the sing ~ from the password the source of my problem?
I cannot change the router password if you think about this.
Thank you.
I had similar problems connecting myself the first time, but that turned out to be that you have to turn on wifi N manually, at least with the ROM I have. Any chance that's your problem too? If not I can't think of any other possibilites than the ~ in your password, and you're probably SOL if you can't get that changed. Sorry.
starbucks2010 said:
Hello,
When I found this tread I was very happy. I tried your xml file but without result. I can connect to the wireless router from my PC but cannot from my HD2. Here are the steps that I done:
1. Create a _setup.xml file with exact your data, except network name and password
2. I created a .cab with "makecab _setup.xml config.cab" and instaled on my HD2
I always get incorrect password.
This is the content of my _setup.xml file.
<wap-provisioningdoc><characteristic type="CM_WiFiEntries">
<characteristic type="[email protected]">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="[email protected]">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Hidden" value="0" />
<parm name="Encryption" value="6" />
<parm name="Authentication" value="7" />
<parm name="KeyIndex" value="1" />
<parm name="NetworkKey" value="~1qaz2345" />
<parm name="KeyProvided" value="0" />
<parm name="Use8021x" value="0" />
<parm name="EAPType" value="0" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
The encryption of the router is WPA2-PSK with AES.
Any ideas? Can be the sing ~ from the password the source of my problem?
I cannot change the router password if you think about this.
Thank you.
Click to expand...
Click to collapse
Take care of the encoding of the file... And obvisuly, of the xml header
Asking a novice question:
I see this is something to have advance security in WiFi.
But still can you please explain what is this all about and where this file should go during cooking?
I use Linksys E2000 WiFi router with a "2.4 GHz" settings and when I set that to "5 GHz" I cant access internet from Mobile (Topaz), but both way PC can have internet without issue.
May be I should do some basic homework here
Thanks.

Categories

Resources