Skip to content

Instantly share code, notes, and snippets.

@codexss
Created September 20, 2016 05:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codexss/bc39918bc56818f2786dbe03b0419fd9 to your computer and use it in GitHub Desktop.
Save codexss/bc39918bc56818f2786dbe03b0419fd9 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
@yegle
Copy link

yegle commented Nov 15, 2017

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