I setup privacy guard for some of the ROM-Apps and now the GUI crashes when i even try to get the pin entry field on the lockscreen. My phone is rooted and i can try via adb or recovery. How can i disable the privacy guard or reset it from a root shell?
Instead of removing
/data/system/appops.xml you can also edit it, at least if only the permissions to "Google Play Services" are the problem.
As I didn't want to re-configure all the app permissions, I downloaded
appops.xml through adb (
adb pull /data/system/appops.xml) and removed the section
<pkg n="com.google.android.gms"> … </pkg>
This just removes all settings for Google Play Services.
After that I uploaded the edited file again (
adb push appops.xml /data/system/appops.xml) and everything works after restart.