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

Commit 8854a3d5 authored by Przemyslaw Szczepaniak's avatar Przemyslaw Szczepaniak Committed by Gerrit Code Review
Browse files

Merge changes from topic "nnapi_ext_restrict"

* changes:
  Remove PRODUCT_SERVICES from PackageManagerNative.getLocation.
  Add getLocationFlags getter to PackageManagerNative.
parents 6fea53e6 68657b43
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -54,4 +54,18 @@ interface IPackageManagerNative {

    long getVersionCodeForPackage(in String packageName);

    /*  ApplicationInfo.isSystemApp() == true */
    const int LOCATION_SYSTEM = 0x1;
    /*  ApplicationInfo.isVendor() == true */
    const int LOCATION_VENDOR = 0x2;
    /*  ApplicationInfo.isProduct() == true */
    const int LOCATION_PRODUCT = 0x4;

    /**
     * Returns a set of bitflags about package location.
     * LOCATION_SYSTEM: getApplicationInfo(packageName).isSystemApp()
     * LOCATION_VENDOR: getApplicationInfo(packageName).isVendor()
     * LOCATION_PRODUCT: getApplicationInfo(packageName).isProduct()
     */
    int getLocationFlags(in @utf8InCpp String packageName);
}