diff options
author | Ray Essick <essick@google.com> | 2017-09-20 16:08:49 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-09-20 16:08:49 +0000 |
commit | f14e953f31cfbbe2457fa3098f9a464843d59318 (patch) | |
tree | 26b506c7b96a4817c825b0a9a4522d6077ed95c3 | |
parent | afe7a5c86c15110013ef5b05d57a76e07dc9a37f (diff) | |
parent | 13afdfccd5d0eb197d094f0e17169c5837a94563 (diff) | |
download | native-f14e953f31cfbbe2457fa3098f9a464843d59318.tar.gz |
Merge "packagemanager_native access to package installer, version" into oc-mr1-dev
-rw-r--r-- | libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl index 6b7254cbb3..3264666a21 100644 --- a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +++ b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl @@ -38,4 +38,20 @@ interface IPackageManagerNative { * strings. */ @utf8InCpp String[] getNamesForUids(in int[] uids); + + /** + * Returns the name of the installer (a package) which installed the named + * package. Preloaded packages return the string "preload". Sideloaded packages + * return an empty string. Unknown or unknowable are returned as empty strings. + */ + + @utf8InCpp String getInstallerForPackage(in String packageName); + + /** + * Returns the version code of the named package. + * Unknown or unknowable versions are returned as 0. + */ + + int getVersionCodeForPackage(in String packageName); + } |