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?
/data/system/appops.xml from TWRP (recovery) helped.
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.
A solution that worked for me was to simply boot into safe mode, and then revert to my previous settings.