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

Commit de661764 authored by Edward Cunningham's avatar Edward Cunningham
Browse files

Include any background activity start whitelist tokens in a

ProcessRecord's dump().

Bug: 129255292
Test: manual, the dumpsys output for a process now has this added:
    Background activity start whitelist tokens:
      - BroadcastRecord{2d2263e u0 null}

Change-Id: Ia4d212ce8c3c3fd403bc311ed563f02d4d6bf957
parent 0e6c7c9d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -561,6 +561,13 @@ class ProcessRecord implements WindowProcessListener {
                pw.print(prefix); pw.print("  - "); pw.println(receivers.valueAt(i));
            }
        }
        if (mAllowBackgroundActivityStartsTokens.size() > 0) {
            pw.print(prefix); pw.println("Background activity start whitelist tokens:");
            for (int i = 0; i < mAllowBackgroundActivityStartsTokens.size(); i++) {
                pw.print(prefix); pw.print("  - ");
                pw.println(mAllowBackgroundActivityStartsTokens.valueAt(i));
            }
        }
    }

    ProcessRecord(ActivityManagerService _service, ApplicationInfo _info, String _processName,