diff options
| author | 2020-12-17 01:40:52 +0000 | |
|---|---|---|
| committer | 2020-12-17 01:40:52 +0000 | |
| commit | a7f149d86d16461ade3b4d902ae6882dbe65fd62 (patch) | |
| tree | 51b2e234b65c81ee7afc932f2e97dc30fb2ab2f9 | |
| parent | b47da175062152f7ebc10569b0c8b32b06eb2b4a (diff) | |
| parent | 32164bb807b758f0961ce346b26738254c7e9c9a (diff) | |
Merge "Update some in-procss APIs to system APIs"
| -rw-r--r-- | core/api/system-current.txt | 3 | ||||
| -rw-r--r-- | core/java/android/content/pm/ApplicationInfo.java | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 03257a0dc1a7..883f277bfa59 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -1874,6 +1874,9 @@ package android.content.pm { public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable { method public boolean isEncryptionAware(); method public boolean isInstantApp(); + method public boolean isOem(); + method public boolean isProduct(); + method public boolean isVendor(); field public 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 81d9b11bc644..e32068fe4b39 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -2101,7 +2101,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { } /** @hide */ - @SystemApi(client = SystemApi.Client.SYSTEM_SERVER) + @SystemApi public boolean isOem() { return (privateFlags & ApplicationInfo.PRIVATE_FLAG_OEM) != 0; } @@ -2149,13 +2149,13 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { } /** @hide */ - @SystemApi(client = SystemApi.Client.SYSTEM_SERVER) + @SystemApi public boolean isVendor() { return (privateFlags & ApplicationInfo.PRIVATE_FLAG_VENDOR) != 0; } /** @hide */ - @SystemApi(client = SystemApi.Client.SYSTEM_SERVER) + @SystemApi public boolean isProduct() { return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PRODUCT) != 0; } |