diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 2a2b799816c37..ca798b9aedbbd 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -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 diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index fcd573ea3b653..68792b2f47de0 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -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