Déverrouiller son smartphone pour développer dessus - unlock your smartphone to develop on it.

Si vous avez essayé de développer une application pour votre smartphone Windows Mobile, vous avez certainement dû faire face à des problèmes de certificat empêchant le déploiement et l'éxécution de votre application. Le principe est d'installer sur le smartphone les certificats adéquates et la procédure n'est pas forcément évidente. Voici les étapes à suivre.

Première étape, supprimer la protection empêchant l'éxécution de code non signé sur le device : pour cela, il faut modifier la base de registre. Vous trouverez sur le web des éditeurs de base de registre pour Windows Mobile (tel que PHM Regedit). Il faut alors modifier les valeurs suivantes :

  • [HKLM\Security\Policies\Policies]
    • "00001001" = 1 (decimal)
    • "00001005" = 40 (decimal)

Rebooter le device.

L'étape suivante consiste à installer les certificats avec lesquels les applications sont signées dans Visual Studio. Pour cela, il faut télécharger et installer le SDK pour Smartphone Windows Mobile 5 ou Windows Mobile 6 suivant votre cible.

Copiez ensuite le fichier C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Tools\SDKCerts.cab ou C:\Program Files\Windows Mobile 6 SDK\Tools\Security\SDK Development Certificates\Certs.cab sur le terminal et le lancer.

Rebooter le device.

Il est au final préférable pour des raisons de sécurité de réactiver la protection à l'éxécution dans la base de registre en remodifiant les valeurs suivantes :

  • [HKLM\Security\Policies\Policies]
    • "00001001" = 2 (decimal)
    • "00001005" = 16 (decimal)*

Rebooter le device et... développez !

 

If you tried to develop and application for your Windows Mobile smartphone, you might have faced problems with missing certificates forbidding your application to be deployed and run. You will have to install the right certificates on your smartphone and the procedure might not be easy. Here are the steps.

First step consists in removing the protection enabling only signed applications to run on the device. To do so, get a registry editor on the Web like PHM Regedit and modify these registry values on the device :

  • [HKLM\Security\Policies\Policies]
    • "00001001" = 1 (decimal)
    • "00001005" = 40 (decimal)

Reboot the device.

Nest step consists in installing SDK certificates used to sign applications within Visual Studio. To do that, you have to download and install the SDK for Windows Mobile 5 Smartphone or Windows Mobile 6 standard edition.

Copy the file C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Tools\SDKCerts.cab or C:\Program Files\Windows Mobile 6 SDK\Tools\Security\SDK Development Certificates\Certs.cab on the device and launch it.

Reboot the device.

It is recommanded to finally reactivate the signature check protection by restoring resgistry settings:

  • [HKLM\Security\Policies\Policies]
    • "00001001" = 2 (decimal)
    • "00001005" = 16 (decimal)*

Reboot the device and ... develop!