Fix #2201615: getCallingPackage returns calling process instead of calling package

Change-Id: I1f30f3f1ce8928796c1ab502d0c2dc02de86e8e7
This commit is contained in:
Dianne Hackborn
2009-10-20 15:42:38 -07:00
parent 61462b4370
commit 9bbcb916c5

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;
}
}