Update Cyanogenmod and Retain XPrivacy Settings

This is a step-by-step guide that lays out the process for upgrading to the latest version of Cyanogenmod on a Nexus 5, while retaining your XPrivacy settings. It incorporates instructions from XPrivacy’s Github page:

Flash the new Cyanogenmod ROM along with Gapps and the Xposed Privacy module.

Enable zip signature verification (TWRP)

Reboot. Android will take some time to optimize the installed apps.

If your phone does not boot after flashing CM, Gapps, Xposed, check the latest posts on the Xposed thread at XDA developers. There may been an updated version which you need to install to get the phone to boot properly. Reboot the phone into recovery mode and re-flash with the updated version.

Verify that XPrivacy is still enabled under modules in Xposed Framework

If you receive a notification that “XPrivacy is not enabled in the Xposed installer”, try rebooting the phone one more time

Import XPrivacy settings

Xprivacy Menu -> Operations -> Import

Reboot the phone so that the Xprivacy settings take affect

Disable airplane mode

As per XPrivacy’s Github instructions:

“If you skip the export, clear, or import steps above, some system applications can end up with the wrong restrictions because the ROM update might have changed these applications’ UID’s.