Merge "Add documents for isOem/Vendor/Product" am: 67b816def6 am: 1593239f22 am: 055f044724
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1657399 Change-Id: I919cb5686b00247e8b3f158b2a881fb21f87651b
This commit is contained in:
@@ -2268,7 +2268,10 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
return (flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) == 0;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
/**
|
||||
* True if the application is pre-installed on the OEM partition of the system image.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean isOem() {
|
||||
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_OEM) != 0;
|
||||
@@ -2316,13 +2319,19 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
|
||||
return (flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
/**
|
||||
* True if the application is pre-installed on the vendor partition of the system image.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean isVendor() {
|
||||
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_VENDOR) != 0;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
/**
|
||||
* True if the application is pre-installed on the product partition of the system image.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean isProduct() {
|
||||
return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PRODUCT) != 0;
|
||||
|
||||
Reference in New Issue
Block a user