[Location Accuracy] Add a new flag for location permissions.

The new flag indicates if the location permission is selected as the
level of granularity of location accuracy.

Test: m build.

Bug: 178646267

Change-Id: Ieccff38072789791da2b32cecf179d3f1106b54e
This commit is contained in:
Guojing Yuan
2021-01-26 19:45:08 +00:00
parent d23e082711
commit b5798a374c
2 changed files with 10 additions and 0 deletions

View File

@@ -2370,6 +2370,7 @@ package android.content.pm {
field public static final int FLAG_PERMISSION_REVIEW_REQUIRED = 64; // 0x40
field public static final int FLAG_PERMISSION_REVOKED_COMPAT = 8; // 0x8
field @Deprecated public static final int FLAG_PERMISSION_REVOKE_ON_UPGRADE = 8; // 0x8
field public static final int FLAG_PERMISSION_SELECTED_LOCATION_ACCURACY = 524288; // 0x80000
field public static final int FLAG_PERMISSION_SYSTEM_FIXED = 16; // 0x10
field public static final int FLAG_PERMISSION_USER_FIXED = 2; // 0x2
field public static final int FLAG_PERMISSION_USER_SENSITIVE_WHEN_DENIED = 512; // 0x200

View File

@@ -3970,6 +3970,15 @@ public abstract class PackageManager {
@SystemApi
public static final int FLAG_PERMISSION_RESTRICTION_ROLE_EXEMPT = 1 << 18;
/**
* Permission flag: This location permission is selected as the level of granularity of
* location accuracy.
*
* @hide
*/
@SystemApi
public static final int FLAG_PERMISSION_SELECTED_LOCATION_ACCURACY = 1 << 19;
/**
* Permission flags: Reserved for use by the permission controller. The platform and any
* packages besides the permission controller should not assume any definition about these