Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 695cf2c3 authored by Paul Hu's avatar Paul Hu Committed by Automerger Merge Worker
Browse files

Merge "Add documents for isOem/Vendor/Product" am: 67b816de am: 1593239f...

Merge "Add documents for isOem/Vendor/Product" am: 67b816de am: 1593239f am: 055f0447 am: dbb6403a

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1657399

Change-Id: I068e0abd2c9a190e682b84eb4e628cefb8fb6060
parents f622c62b dbb6403a
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -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;