Disable Privacy Guard from Shell on Android, Replicant or LineageOS

Removing /data/system/appops.xml or instead of removing /data/system/appops.xml you can also edit it.

adb pull /data/system/appops.xml

Then edit:

<pkg n="com.google.android.gms">
…
</pkg> 

Then:

adb push appops.xml /data/system/appops.xml

Related hyperdocument tags

android removing settings privacy-guard lineageos replicant