diff options
| author | 2017-09-21 03:07:27 +0000 | |
|---|---|---|
| committer | 2017-09-21 03:07:27 +0000 | |
| commit | 6602beaa6cdfd78a9330d9a79ed0619c168a79f8 (patch) | |
| tree | 5bd55470d780631233eb3c00c4c571aaa023b86e | |
| parent | d4b92e6cd24fe87cca58ba251085092198a3f24e (diff) | |
| parent | e708a6053ef7e2cc81bf724ac9a716f3b7d72e66 (diff) | |
Merge "packagemanager_native access to package installer, version" into oc-mr1-dev am: f14e953f31
am: e708a6053e
Change-Id: I1fedf0e096bfa979f1c00cae25f4c47578100b59
| -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); + } |