Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save QuantumGhost/92a43d8b6284a4d1215219fc3e56c2f4 to your computer and use it in GitHub Desktop.
Save QuantumGhost/92a43d8b6284a4d1215219fc3e56c2f4 to your computer and use it in GitHub Desktop.
adb shell appops set com.tencent.mm OP_READ_PHONE_STATE ignore
adb shell appops set com.tencent.mm COARSE_LOCATION ignore
adb shell appops set com.tencent.mm FINE_LOCATION ignore
adb shell appops set com.tencent.mm RUN_IN_BACKGROUND ignore
@QuantumGhost
Copy link
Author

Some additional permission to ignore (maybe Android O only?)

adb shell appops set com.tencent.mm MONITOR_LOCATION ignore
adb shell appops set com.tencent.mm MONITOR_HIGH_POWER_LOCATION ignore

Note when you run adb shell appops get com.tencent.mm, you may still see the permission as allow, but I can confirm on my phone that once I ignore MONITOR_LOCATION and MONITOR_HIGH_POWER_LOCATION, you see the permission allow but have rejectTime=+xxs ago, a proof that it actually works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment