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

Commit e03f8fac authored by Erik Kline's avatar Erik Kline Committed by android-build-merger
Browse files

Support triggering confirmConfiguration() via dumpsys am: c3eec4ff am: eb250f0d

am: 271e731d

Change-Id: I5d85e0e740cfc1b60e973f2439fe8bf9d5050c0b
parents 70a220be 271e731d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -358,6 +358,7 @@ public class IpManager extends StateMachine {
    }

    public static final String DUMP_ARG = "ipmanager";
    public static final String DUMP_ARG_CONFIRM = "confirm";

    private static final int CMD_STOP = 1;
    private static final int CMD_START = 2;
@@ -562,6 +563,12 @@ public class IpManager extends StateMachine {
    }

    public void dump(FileDescriptor fd, PrintWriter writer, String[] args) {
        if (args.length > 0 && DUMP_ARG_CONFIRM.equals(args[0])) {
            // Execute confirmConfiguration() and take no further action.
            confirmConfiguration();
            return;
        }

        IndentingPrintWriter pw = new IndentingPrintWriter(writer, "  ");
        pw.println("APF dump:");
        pw.increaseIndent();