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
android removing settings privacy-guard lineageos replicant