PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > Windows Mobile Software
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2009, 01:51 PM
elephant007's Avatar
domo arigato mr roboto
Offline
Pocket PC: Samsung Moment
Carrier: Sprint since Feb 11, 2002
 
Join Date: Jan 2007
Posts: 1,248
Reputation: 3584
elephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Cool HOW TO: Auto Accept Exchange Policy (HTC Only?)

I finally figured out how to get my phone to auto accept exchange policies (Toast) without having to press OK after reflashing my phone, below is the proceedure

1. Download the attached filed labled "Elephant007PolicyToastAccept.cab"
2. Copy the following code to notepad and change the entries that are all capitols to your information
The code below will automatically download entire message and attachements... I've also scheduled peak times when to sync and excluded syncing tasks... if you wish to sync tasks change from 0 to 1
Code:
<?xml version="1.0"?>
<wap-provisioningdoc>
<!--  *** Start Personalized Exchange/ActiveSync Settings ***--> 
<!--  *** Start Exchange Settings *** --> 
<characteristic type="Sync">
<characteristic type="Connection">
  <parm name="Server" value="EXTERNAL-EXCHANGE-SERVER-ADDRESS" /> 
  <parm name="AllowSSLOption" value="1" /> 
  <parm name="User" value="COMPLETE-EMAIL-ADDRESS" /> 
  <parm name="Domain" value="" /> 
  <parm name="Password" value="PASSWORD" /> 
  <parm name="SavePassword" value="1" /> 
  </characteristic>
<!--  *** Start Configure Peak Times, M-F 8:00AM-5:00PM ***--> 
<characteristic type="Settings">
  <parm name="PeakStartTime" value="0800" /> 
  <parm name="PeakEndTime" value="1700" /> 
  <parm name="PeakFrequency" value="-1" /> 
  <parm name="BodyTruncation" value="-1" /> 
<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>
<!--  *** End Configure Peak Times ***--> 
<characteristic type="Mail">
  <parm name="Enabled" value="1" /> 
  <parm name="MailBodyTruncation" value="-1" /> 
  <parm name="MailFileAttachments" value="-1" /> 
  </characteristic>
<characteristic type="Calendar">
  <parm name="Enabled" value="1" /> 
  </characteristic>
<characteristic type="Contacts">
  <parm name="Enabled" value="1" /> 
  </characteristic>
<characteristic type="Tasks">
  <parm name="Enabled" value="0" /> 
  </characteristic>
  </characteristic>
<!--  *** End Personalized Exchange/ActiveSync Settings ***--> 
  </wap-provisioningdoc>
Now after making all your changes in NOTEPAD, copy and then go to this site http://supware.net/CabGen/, remove their code and paste yours in, I named mine Exchange.cab... save it to your computer

Now store your two cab files on your SDCard so you can use UC to call them up...

3. Copy this script and put on your SDCard, I've named mine Tweak01.mscr
MORTSCRIPT
Code:
Call ("SilentInstall", "\Storage Card\Config\Cabs\Exchange.cab")
Sub SilentInstall
  fd=argv[1]
  runwait("\Windows\wceload.exe", """" & fd & """ /noui /nodelete")
EndSub
Delete("Windows\Startup\Tweak01.mscr")
Add this to your SDCONFIG.TXT for use with UC
Here is a snippet of my SDConfig.txt code
Code:
CAB: \Storage Card\Config\Cabs\Elephant007PolicyToastAccept.cab
CPY1:\Storage Card\Config\Files\Tweak01.mscr
CPY2:\Windows\StartUp\Tweak01.mscr
Basically what this does is installs HTCApplication Service on your device which must be installed and running before your device will auto accept the policies pushed down from your Exchange Server. The phone will reboot before installing the Exchange.cab file which configures your exchange account on the phone. Since the phone reboots first, it gives HTCApplication the opportunity to start thus causing everything to work!!

It took me a while to finally figure this out, here you have it in a short thread!!



edit:
Test on HTC Touch Pro device
Attached Files
File Type: cab Elephant007PolicyToastAccept.cab (126.9 KB, 1 views) Click for barcode!

Last edited by elephant007; 08-13-2009 at 02:13 PM.
Reply With Quote
This post has been thanked 2 times.
  #2 (permalink)  
Old 08-13-2009, 03:56 PM
nydriek's Avatar
N00b
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: Jun 2007
Posts: 43
Reputation: 10
nydriek is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: HOW TO: Auto Accept Exchange Policy (HTC Only?)

Nice write up, I've been toying with this for awhile as well.
Reply With Quote
  #3 (permalink)  
Old 08-13-2009, 07:54 PM
elephant007's Avatar
domo arigato mr roboto
Offline
Pocket PC: Samsung Moment
Carrier: Sprint since Feb 11, 2002
Threadstarter
 
Join Date: Jan 2007
Posts: 1,248
Reputation: 3584
elephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIPelephant007 is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: HOW TO: Auto Accept Exchange Policy (HTC Only?)

excellent, let me know how it works out for you
you're able to do a dry run test without having to flash your phone
install the Elephant007PolicyToastAccept.cab, then move the MortScript File to \Windows\Startup\ and reboot your phone.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > Windows Mobile Software


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 01:57 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com