Kitkat

Saturday, December 6 2014

Hacking Android/Cyanogen Email in KitKat and Lollipop
[17:51:38] matt [wronka.org]/Psi.cor Work switched from Zimbra to MicroSoft Exchange some time back, and I've stopped synchronizing my calendar with my Nexus 4 since then (instead using my Handspring Visor Edge). The reason was straight forward: the MicroSoft server wanted the ability to wipe my entire device.

This seemed like overreach, and after talking with people in IT, it wasn't intentional, it was just the default. The changes in the AOSP code are pretty straightforward to disable this. I've posted diffs for both KitKat and Lollipop: http://matt.wronka.org/stuff/projects/icpp/android/cyanogenmod/

The KitKat changes also include some clean-up of CM code I didn't find useful (CMUpdater, CMAccounts), these aren't in CM12 yet. If you'd rather cherry-pick the changes for CM11 or AOSP 4.4 there are two AOSP applications to patch: http://matt.wronka.org/stuff/projects/icpp/android/aosp/4.4/

It looks like a lot of refactoring went into the Exchange services in 5.0, the patchset is smaller, but there's a new issue as reported to horde: https://bugs.horde.org/ticket/13702
I can confirm that this is an issue with Android 5.0—the effect is that the device appears to sync, but when it is about to complete it removes all data it received. I have not looked into fixing this yet but appears unrelated to Horde itself.

For now, full builds are at:
http://hume.matt.wronka.org/~matt/tmp/cm-12-20141204-SNAPSHOT-CNJ-mako.zip (Nexus 4, Android 5.0/CM12/Lollipop)
http://hume.matt.wronka.org/~matt/tmp/cm-11-20141122-SNAPSHOT-CNJ-mako.zip (Nexus 4, Android 4.4/CM11/KitKat)
http://hume.matt.wronka.org/~matt/tmp/cm-11-20141114-SNAPSHOT-CNJ-crespo.zip (Nexus S, Android 4.4/CM11/KitKat)