Always print mAllowWhileInUsePermissionInFgs in dumpsys

Also print mRecentCallingPackage for the most recent package
that start/bind this service.

Bug: 136219221
Test: adb shell dumpsys activity -a
Change-Id: I08bfab6459301383b7276708a0567d9289fb37e9
This commit is contained in:
Hui Yu
2020-02-19 10:59:03 -08:00
parent 2d88183bde
commit aaaf256cc7

View File

@@ -401,10 +401,10 @@ final class ServiceRecord extends Binder implements ComponentName.WithComponentN
pw.print(prefix); pw.print("hasStartedWhitelistingBgActivityStarts=");
pw.println(mHasStartedWhitelistingBgActivityStarts);
}
if (mAllowWhileInUsePermissionInFgs) {
pw.print(prefix); pw.print("allowWhileInUsePermissionInFgs=");
pw.println(mAllowWhileInUsePermissionInFgs);
}
pw.print(prefix); pw.print("allowWhileInUsePermissionInFgs=");
pw.println(mAllowWhileInUsePermissionInFgs);
pw.print(prefix); pw.print("recentCallingPackage=");
pw.println(mRecentCallingPackage);
if (delayed) {
pw.print(prefix); pw.print("delayed="); pw.println(delayed);
}