summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-01-11 19:57:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-01-11 19:57:48 +0000
commite433ab6ee8dc4ca3e1fea76cc3f19aacfd45dde7 (patch)
tree1b404aea3b7edcba618d7db4a0857147893a65b7
parentac2a03b9ebf56caf3295b873cb383bc5f94265d8 (diff)
parent14ea9efdfefa3bac070260802afb9f68fbd43b23 (diff)
Merge "Add ApplicationInfo.isEncrpytionAware() as a system API."
-rw-r--r--api/system-current.txt1
-rw-r--r--core/java/android/content/pm/ApplicationInfo.java10
2 files changed, 10 insertions, 1 deletions
diff --git a/api/system-current.txt b/api/system-current.txt
index d61c2f1544cf..3ffaac9686e5 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -1149,6 +1149,7 @@ package android.content {
package android.content.pm {
public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
+ method public boolean isEncryptionAware();
method public boolean isInstantApp();
field public java.lang.String credentialProtectedDataDir;
field public int targetSandboxVersion;
diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java
index 2978058b2848..576466f21bcb 100644
--- a/core/java/android/content/pm/ApplicationInfo.java
+++ b/core/java/android/content/pm/ApplicationInfo.java
@@ -1866,7 +1866,15 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_DIRECT_BOOT_AWARE) != 0;
}
- /** @hide */
+ /**
+ * Check whether the application is encryption aware.
+ *
+ * @see #isDirectBootAware()
+ * @see #isPartiallyDirectBootAware()
+ *
+ * @hide
+ */
+ @SystemApi
public boolean isEncryptionAware() {
return isDirectBootAware() || isPartiallyDirectBootAware();
}