[automerge] Disallow privileged apps to bypass location restriction 2p: 807f4cfc80

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18200760

Bug: 230861324
Bug: 231496105
Change-Id: Icf7d838571ecd02a866d0180b034fc1aeb2ea0ac
Merged-In: Ib34c0b56ef52f5ee2deceb84b02cd0ff73d8181d
This commit is contained in:
Presubmit Automerger Backend
2022-05-19 22:30:39 +00:00

View File

@@ -2463,8 +2463,8 @@ public class AppOpsManager {
* restriction} for a certain app-op.
*/
private static RestrictionBypass[] sOpAllowSystemRestrictionBypass = new RestrictionBypass[] {
new RestrictionBypass(true, false), //COARSE_LOCATION
new RestrictionBypass(true, false), //FINE_LOCATION
null, //COARSE_LOCATION
null, //FINE_LOCATION
null, //GPS
null, //VIBRATE
null, //READ_CONTACTS