Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9801bba6 authored by Winson Chung's avatar Winson Chung
Browse files

Tweak some logs

- Print the window container token binder and not the proxy
- Add the calling package name in addition to uid (so you don't have to
  resolve it manually from the BR)

Bug: 378565144
Flag: EXEMPT log only update
Test: logcat | grep -e "(ActivityTaskManager|WindowManager)"
Change-Id: Iad4b81e954c0c50c061719272f211ca9e569eeb4
parent 383b6b1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ public final class WindowContainerToken implements Parcelable {

    @Override
    public String toString() {
        return "WCT{" + mRealToken + "}";
        return "WCT{" + mRealToken.asBinder() + "}";
    }

    @Override
+3 −0
Original line number Diff line number Diff line
@@ -1093,6 +1093,9 @@ class ActivityStarter {
                    .append(intent.toShortString(true, true, true, false))
                    .append("} with ").append(launchModeToString(launchMode))
                    .append(" from uid ").append(callingUid);
            if (callingPackage != null) {
                request.logMessage.append(" (").append(callingPackage).append(")");
            }
            if (callingUid != realCallingUid
                    && realCallingUid != Request.DEFAULT_REAL_CALLING_UID) {
                request.logMessage.append(" (realCallingUid=").append(realCallingUid).append(")");