CaCert and Android: Difference between revisions

From AAISP Support Site
(Created page with "Google and CACert don't really play nice togther making it impossible to add the CACert root cert on an Android phone that's not rooted and not exactly straightforward on one tha...")
(No difference)

Revision as of 12:00, 27 October 2010

Google and CACert don't really play nice togther making it impossible to add the CACert root cert on an Android phone that's not rooted and not exactly straightforward on one that is.

If you have a rooted Android phone with full root access to the /system Partition in normal use (ie Nexus One, HTC Hero) then the instructions on the CAcert Wiki are all you need [1]

But if you have a phone that doesn't have read/write access to /system in normal use (such as the HTC Desire) you can do steps 1-4 without problem meaning you now have the patched cacerts.bks file but you can't upload the file back in Step 5.

Instead the steps I followed to do this on my HTC Desire were to

  1. power off your Desire
  2. Power on your Desire holding the volume down key
  3. select recovery from menu
  4. when the read triangle shows, run the recovery script from the root package:

(recovery-linux.sh, recovery-mac.sh or recovery-windows.bat) depending on your OS (I'm using the r5-desire-root package from http://desire.modaco.com. The actual name of the script to run may vary depending on the root technique).

  1. mount the /system partition (# adb shell mount /system)
  2. copy your certificate to the system (#adb push cacerts.bks /system/etc/security)
  3. reboot your phone.