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

Commit 5753a34e authored by Paul Hu's avatar Paul Hu Committed by Gerrit Code Review
Browse files

Merge "Expose some ApplicationInfo#is* methods as in-process API"

parents aeab3f7d cc8b163d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2101,6 +2101,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
    }

    /** @hide */
    @SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
    public boolean isOem() {
        return (privateFlags & ApplicationInfo.PRIVATE_FLAG_OEM) != 0;
    }
@@ -2148,11 +2149,13 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
    }

    /** @hide */
    @SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
    public boolean isVendor() {
        return (privateFlags & ApplicationInfo.PRIVATE_FLAG_VENDOR) != 0;
    }

    /** @hide */
    @SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
    public boolean isProduct() {
        return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PRODUCT) != 0;
    }