[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: Id9ef42373dcafb8a751c7002ba08df49dca87ace
Merged-In: Ib34c0b56ef52f5ee2deceb84b02cd0ff73d8181d
This commit is contained in:
Evan Severson
2022-05-19 22:30:39 +00:00
committed by Presubmit Automerger Backend

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