commit | f203aeef993b0f4ce65c9630d06bbd50a504e89f | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Wed Aug 29 18:41:53 2012 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Thu Aug 30 16:08:23 2012 -0700 |
tree | f1624ae664c7f882e9f320dadbab4eea52b6a4ad | |
parent | b2dd4e87ae8ac6a0402b7a0ed37201f27bcb1b9c [diff] [blame] |
Enforce permissions for calls with specified userId Fix a couple of places where incorrect userIds were being passed in. Change-Id: I398c676e0488ff7e584be96e96c8b32652134238
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index eee818b..6c87252 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -8193,7 +8193,7 @@ for (String pkg : process.pkgList) { sb.append("Package: ").append(pkg); try { - PackageInfo pi = pm.getPackageInfo(pkg, 0, 0); + PackageInfo pi = pm.getPackageInfo(pkg, 0, UserHandle.getCallingUserId()); if (pi != null) { sb.append(" v").append(pi.versionCode); if (pi.versionName != null) {