我为某些ROM应用程序设置了隐私警卫，现在GUI崩溃时，我甚至试图在锁定屏幕上获取引脚输入字段。 我的手机扎根了，我可以通过adb或恢复尝试。 如何禁用隐私后卫或将其重置为根壳？
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"> xe2x80xa6 </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.