1
, WinCE smartphone 5 online debugging
I-mate SP5 smartphone (Windows Mobile 5.0) is developer locked by default
Tonight I had my first opportunity to try out Visual Studio 2005 and the Windows Mobile 5.0 SDK to see what I cocould tinker with on my I-mate sp5. I can only say my first experience was disappointment and a real waste of an evening-I thought it was meant to be easier to develop for these devices than before? Apparently not.
After loading the SDK and creating a new "Windows Mobile 5.0 smartphone" project, I was a bit stunned to see that on pressing F5 that I couldn't deploy to my device, with the following error:
The device security configuration disallowed the connection. ensure that you have the appropriate certificates on your device for development. Review Your SDK documentation for proper security settings for connecting to this device.
After looking at this document http://msdn.microsoft.com/smartclient/default.aspx? Pull =/library/en-US/dnppcgen/html/wmsecurity. ASP-it suggested that my device was application locked. simple I thought, I'll just install the certificates from the sdkcerts. cab file in the SDK and off we go. unfortunately not-I got an error:
"Installation was unsuccessful. The program or setting cannot be installed because it does not have sufficient system permissions ".
So I tried the rapiconfig tool, also in the SDK:
C:/program files/Windows CE tools/wce500/Windows Mobile 5.0 smartphone SDK/tools> rapiconfig/P sdkcerts. xml
Config failed (0x80070005): access is denied.
It turns out that the phone is application locked by default, and the only way to unlock it is to edit the policy by editing the registry.
1. Enable rapi and user provided certificates:
You must use a Registry Editor signed by something the phone trusts already! Regeditstg http://blogs.conchango.com/stuartpreston/files/regeditSTG.zip will do the trick as it is already signed by HTC.
Copy the EXE onto the device, launch it and change the operating ies as follows:
Navigate to HKLM/security/policies/
Click "values" Soft-Key
Change "00001001" value to 1 (decimal) (recovery Note: default is 2)
Change "00001005" value to 40 (decimal) (recovery Note: default is 16)
Reboot device.
At this point, you cocould probably import the certificates as abve and deploy applications from Visual Studio 2005. However, I decided to go the whole way and completely unlock my device.
2. Run SDA Security unlocker to trust all applications (Use this with caution ):
Available from http://blogs.conchango.com/stuartpreston/files/SDA_ApplicationUnlock.zip
With the device connected by ActiveSync, run the program on your desktop machine.
Click Remove-lock.
Reboot device.
Now you shoshould be able to deploy successfully directly from within Visual Studio 2005.
2. wince4 sp4.2 mobile phone online debugging
Note the following when connecting to the device:
The security features of smartphone devices make it necessary to sign
Certain files that are used to support the development and debugging
Process. During the installation of the smartphone SDK, this process is
Specified med automatically for the files that the device emulator uses.
However, when you want to enable a real smartphone device for testing and
Debugging, you will need to complete this file-signing process manually.
For smartphone 2002 the "sp2002dps.exe", found on standard path:
"C:/Windows CE tools/wce300/Smartphone 2002/tools/sp2002dps.exe"/create
/Device
Or for Smartphone 2003 SDK spdps.exe, maybe under:
"C:/programme/Windows CE tools/wce420/Smartphone 2003/tools/spdps.exe"
/Create/device (only do this once)