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

Commit 33c79ae1 authored by Amy Zhang's avatar Amy Zhang
Browse files

Add hasSystemFeature API in native PackageManager

Test: local test with TunerService on Cuttlefish
Bug: 181602702
Change-Id: Ie1416746322914d26e1be5daf94279de1c13afb4
parent dde1abd1
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -114,4 +114,13 @@ interface IPackageManagerNative {
     * Unknown packages will cause the call to fail.
     * Unknown packages will cause the call to fail.
     */
     */
    boolean isPackageDebuggable(in String packageName);
    boolean isPackageDebuggable(in String packageName);

    /**
     * Check whether the given feature name and version is one of the available
     * features as returned by {@link PackageManager#getSystemAvailableFeatures()}. Since
     * features are defined to always be backwards compatible, this returns true
     * if the available feature version is greater than or equal to the
     * requested version.
     */
    boolean hasSystemFeature(in String featureName, in int version);
}
}