diff --git a/api/system-current.txt b/api/system-current.txt index 8345980bf46d5..a500cd11c5443 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -10283,6 +10283,7 @@ package android.content.pm { field public static final android.os.Parcelable.Creator CREATOR; field public static final int FLAG_COSTS_MONEY = 1; // 0x1 field public static final int FLAG_INSTALLED = 1073741824; // 0x40000000 + field public static final int FLAG_REMOVED = 2; // 0x2 field public static final int PROTECTION_DANGEROUS = 1; // 0x1 field public static final int PROTECTION_FLAG_APPOP = 64; // 0x40 field public static final int PROTECTION_FLAG_DEVELOPMENT = 32; // 0x20 diff --git a/core/java/android/content/pm/PermissionInfo.java b/core/java/android/content/pm/PermissionInfo.java index 9da2ba9ce59db..984a960b5308e 100644 --- a/core/java/android/content/pm/PermissionInfo.java +++ b/core/java/android/content/pm/PermissionInfo.java @@ -16,6 +16,7 @@ package android.content.pm; +import android.annotation.SystemApi; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; @@ -145,11 +146,12 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { public static final int FLAG_COSTS_MONEY = 1<<0; /** - * Flag for {@link #flags}, corresponding to hidden + * Flag for {@link #flags}, corresponding to removed * value of {@link android.R.attr#permissionFlags}. * @hide */ - public static final int FLAG_HIDDEN = 1<<1; + @SystemApi + public static final int FLAG_REMOVED = 1<<1; /** * Flag for {@link #flags}, indicating that this permission has been diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 78cca583b79ce..30d6f29297743 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -889,77 +889,77 @@ + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> + android:permissionFlags="removed"/> diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml index 4b81987f353eb..d0d1d5a0b6946 100644 --- a/core/res/res/values/attrs_manifest.xml +++ b/core/res/res/values/attrs_manifest.xml @@ -248,9 +248,12 @@ may cost the user money. Such permissions may be highlighted when shown to the user with this additional information. --> - - + +