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

Commit 3ca4ad41 authored by Songchun Fan's avatar Songchun Fan
Browse files

[pm] add initiatingPackageName in dumpsys

For easy debugging.

BUG: 265203007
Test: manual
Change-Id: I30042f4277a6564b7ddab6be134d1bbdf8036177
parent e0e6952a
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -5039,14 +5039,15 @@ public final class Settings implements Watchable, Snappable {
        pw.print(prefix); pw.print("  lastUpdateTime=");
        date.setTime(ps.getLastUpdateTime());
        pw.println(sdf.format(date));
        if (ps.getInstallSource().mInstallerPackageName != null) {
        pw.print(prefix); pw.print("  installerPackageName=");
        pw.println(ps.getInstallSource().mInstallerPackageName);
        }
        if (ps.getInstallSource().mInstallerPackageUid != INVALID_UID) {
        pw.print(prefix); pw.print("  installerPackageUid=");
        pw.println(ps.getInstallSource().mInstallerPackageUid);
        }
        pw.print(prefix); pw.print("  initiatingPackageName=");
        pw.println(ps.getInstallSource().mInitiatingPackageName);
        pw.print(prefix); pw.print("  originatingPackageName=");
        pw.println(ps.getInstallSource().mOriginatingPackageName);

        if (ps.getInstallSource().mUpdateOwnerPackageName != null) {
            pw.print(prefix); pw.print("  updateOwnerPackageName=");
            pw.println(ps.getInstallSource().mUpdateOwnerPackageName);