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

Commit 7aa40b64 authored by Brian Stack's avatar Brian Stack
Browse files

Add support for retrieving targetSdkVersion

Adds support for retrieving the targetSdkVersion through the
IPackageManagerNative interface.

Bug: 130640415
Test: Builds, verified applications targetSdkVersion is returned
      properly.

Change-Id: I15251404b51f7d6d0476ab396028a188bda10ef6
parent d076fdd5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -74,4 +74,11 @@ interface IPackageManagerNative {
     * LOCATION_PRODUCT: getApplicationInfo(packageName).isProduct()
     */
    int getLocationFlags(in @utf8InCpp String packageName);

    /**
     * Returns the target SDK version for the given package.
     * Unknown packages will cause the call to fail. The caller must check the
     * returned Status before using the result of this function.
     */
    int getTargetSdkVersionForPackage(in String packageName);
}