summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Essick <essick@google.com>2017-09-19 08:49:23 -0700
committerRay Essick <essick@google.com>2017-09-19 11:18:00 -0700
commit13afdfccd5d0eb197d094f0e17169c5837a94563 (patch)
tree8d046dd5e4c9812cb467ffa1b659bad04892c26a
parent9c2336c0b3032de472bdf35cb5f69efcdc3b4aa9 (diff)
downloadnative-13afdfccd5d0eb197d094f0e17169c5837a94563.tar.gz
packagemanager_native access to package installer, version
add getInstallerForPackage() and getVersionCodeForPackage() to support native media.metrics needs. Bug: 65027506 Test: watch logs for various package combinations Change-Id: I6f3c551e8f547ab4151ef2400db4e100a6f53abf
-rw-r--r--libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl16
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);
+
}