Merge "Update some in-procss APIs to system APIs"
This commit is contained in:
@@ -1874,6 +1874,9 @@ package android.content.pm {
|
|||||||
public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
|
public class ApplicationInfo extends android.content.pm.PackageItemInfo implements android.os.Parcelable {
|
||||||
method public boolean isEncryptionAware();
|
method public boolean isEncryptionAware();
|
||||||
method public boolean isInstantApp();
|
method public boolean isInstantApp();
|
||||||
|
method public boolean isOem();
|
||||||
|
method public boolean isProduct();
|
||||||
|
method public boolean isVendor();
|
||||||
field public String credentialProtectedDataDir;
|
field public String credentialProtectedDataDir;
|
||||||
field public int targetSandboxVersion;
|
field public int targetSandboxVersion;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2101,7 +2101,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
|
@SystemApi
|
||||||
public boolean isOem() {
|
public boolean isOem() {
|
||||||
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_OEM) != 0;
|
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_OEM) != 0;
|
||||||
}
|
}
|
||||||
@@ -2149,13 +2149,13 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
|
@SystemApi
|
||||||
public boolean isVendor() {
|
public boolean isVendor() {
|
||||||
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_VENDOR) != 0;
|
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_VENDOR) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
|
@SystemApi
|
||||||
public boolean isProduct() {
|
public boolean isProduct() {
|
||||||
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PRODUCT) != 0;
|
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PRODUCT) != 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user