Share via


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!

Comments

  • Anonymous
    November 27, 2007
    Bonjour, Mon pb se situe en amont, car je n'arrive pas à compiler (il s'agit de TCPMP) pour smartphone. En effet, Visual me signale que signtool génère une erreur lorsque que la valeur "authenticode signature" (option du projet) est à YES. En l'occurence : "SignTool Error: No certificates were found that met all the given criteria." Lorsqu'elle est à FALSE, j'arrive à compiler, mais il ne s'exécute pas sur mon terminal (un SPV C600). Que faut-il faire pour arriver à compiler avec certificat, et quel certificat ?? Merci d'avance.

  • Anonymous
    November 29, 2007
    Bonjour Il m est impossible d installer PHM regedit j' ai wm6. Apparement il n'existe que la version 0.70 de 2002! Que faire j ai un message me disnat que cette version nest pas destine a wm6. merci pour ta reponse

  • Anonymous
    November 30, 2007
    Il y a un moyen d'installer PHM Regedit sur WM 5 et WM 6 avec ce workaround : http://www.mydigitallife.info/2007/11/27/workaround-to-install-phm-registry-editor-in-windows-mobile-5-and-6-wm5-and-wm6/ Sinon il existe d'autres utilitaires gratuits pour l'édition de la base de registre comme celui-ci : http://www.smartphone-freeware.com/download-mobile-registry-editor-v1-1.html