diff options
| author | 2024-04-19 17:11:40 +0000 | |
|---|---|---|
| committer | 2024-04-19 17:11:40 +0000 | |
| commit | f55e4459f4e0de68700b9c6c9150734497d6b4a9 (patch) | |
| tree | 23f55e64e5e4f17665e448a7772ccf111b50f61c | |
| parent | 854255c0923a7088247ce0358fd5e93ae0632bb6 (diff) | |
| parent | c763e5cefe7f0f681cd5d7524339b178672c87bb (diff) | |
Merge "IPackageManagerNative: Add getPackageUid" into main am: 44b6216a2d am: c763e5cefe
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3037184
Change-Id: Ib35e564073f55095883924f93f78caac9133f25c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl index f8a8843309..3ddfefa311 100644 --- a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +++ b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl @@ -43,6 +43,18 @@ interface IPackageManagerNative { @utf8InCpp String[] getNamesForUids(in int[] uids); /** + * Return the UID associated with the given package name. + * Note that the same package will have different UIDs under different UserHandle on + * the same device. + * @param packageName The full name (i.e. com.google.apps.contacts) of the desired package. + * @param flags Additional option flags to modify the data returned. + * @param userId The user handle identifier to look up the package under. + * @return Returns an integer UID who owns the given package name, or -1 if no such package is + * available to the caller. + */ + int getPackageUid(in @utf8InCpp String packageName, in long flags, in int userId); + + /** * 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. |