commit | 9bbcb916c56371d2aee1dc4a6afc17d4ea9a83e0 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Tue Oct 20 15:42:38 2009 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Tue Oct 20 15:42:38 2009 -0700 |
tree | bd82a31266b4683b56bccf1732f7545f1b2a0b19 | |
parent | 61462b437067a591bfc52c498ad964e566aaffac [diff] [blame] |
Fix #2201615: getCallingPackage returns calling process instead of calling package Change-Id: I1f30f3f1ce8928796c1ab502d0c2dc02de86e8e7
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index e1e8bea..ad1926e 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -5742,7 +5742,7 @@ public String getCallingPackage(IBinder token) { synchronized (this) { HistoryRecord r = getCallingRecordLocked(token); - return r != null && r.app != null ? r.app.processName : null; + return r != null && r.app != null ? r.info.packageName : null; } }