Update Cyanogenmod and Retain XPrivacy Settings

By | October 13, 2015

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:

  1. Get the latest nightly (or stable) ROM for your phone make/model from Cyanogenmod’s (CM) site
  2. Verify the sha1 hash of the download. Compare the result to the sha1 hash provided on CM’s website. For example:
    sha1sum cm-12.1-date-NIGHTLY-hammerhead.zip
  3. Copy the ROM file to the internal storage of your phone
  4. Check for updated versions of the Xposed module and Gapps package and copy them to internal storage if you wish to update them as well.
  5. Export your XPrivacy settings
    • Xprivacy Menu -> Operations -> Export
  6. Enable airplane/flight mode
  7. Use the menu option in XPrivacy to clear all data
    • Xprivacy Menu -> Operations -> Select All
    • Xprivacy Menu -> Operations -> Toggle Restrictions -> Clear
  8. Reboot into recovery mode (Ex: TWRP)
  9. (Optional) Make an encrypted backup of the data partition.
  10. Flash the new Cyanogenmod ROM along with Gapps and the Xposed Privacy module.
    • Enable zip signature verification (TWRP)
  11. 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.
  12. 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
  13. Import XPrivacy settings
    • Xprivacy Menu -> Operations -> Import
  14. Reboot the phone so that the Xprivacy settings take affect
  15. 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.

To import and export XPrivacy’s data, you need a pro license.”

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*