Merge "Add ApplicationInfo.isEncrpytionAware() as a system API."
This commit is contained in:
committed by
Android (Google) Code Review
commit
e433ab6ee8
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user