diff options
Diffstat (limited to 'libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl')
-rw-r--r-- | libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl index dc8d74c052..c20d9f6645 100644 --- a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +++ b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl @@ -101,4 +101,26 @@ interface IPackageManagerNative { * This does nothing if this observer was not already registered. */ void unregisterPackageChangeObserver(in IPackageChangeObserver observer); + + /** + * Returns true if the package has the SHA 256 version of the signing certificate. + * @see PackageManager#hasSigningCertificate(String, byte[], int), where type + * has been set to {@link PackageManager#CERT_INPUT_SHA256}. + */ + boolean hasSha256SigningCertificate(in @utf8InCpp String packageName, in byte[] certificate); + + /** + * Returns the debug flag for the given package. + * Unknown packages will cause the call to fail. + */ + 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); } |