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

Commit 97897a91 authored by Felipe Leme's avatar Felipe Leme
Browse files

Updates am documentation with dumpable options.

Test: adb shell dumpsys activity -h | grep dumpable

Bug: 149254050

Change-Id: I5464c3c8ebf9a903cd145999da05e8c1c6b44af0
parent 4eb921fc
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NA
import static com.android.server.am.AppBatteryTracker.BatteryUsage.BATTERY_USAGE_COUNT;
import static com.android.server.am.LowMemDetector.ADJ_MEM_FACTOR_NOTHING;

import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityOptions;
import android.app.ActivityTaskManager;
@@ -3346,7 +3347,11 @@ final class ActivityManagerShellCommand extends ShellCommand {
            pw.println("  --checkin: output checkin format, resetting data.");
            pw.println("  --C: output checkin format, not resetting data.");
            pw.println("  --proto: output dump in protocol buffer format.");
            pw.println("  --autofill: dump just the autofill-related state of an activity");
            pw.printf("  %s: dump just the DUMPABLE-related state of an activity. Use the %s "
                    + "option to list the supported DUMPABLEs\n", Activity.DUMP_ARG_DUMP_DUMPABLE,
                    Activity.DUMP_ARG_LIST_DUMPABLES);
            pw.printf("  %s: show the available dumpables in an activity\n",
                    Activity.DUMP_ARG_LIST_DUMPABLES);
        } else {
            pw.println("Activity manager (activity) commands:");
            pw.println("  help");