Merge change I1f30f3f1 into eclair

* changes:
  Fix #2201615: getCallingPackage returns calling process instead of calling package
This commit is contained in:
Android (Google) Code Review
2009-10-20 19:14:20 -04:00

View File

@@ -5742,7 +5742,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
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;
}
}