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

Commit cfdc7eb8 authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "Fix 'jobscheduler run' shell command" into oc-dev

parents a851b5ae 851a35ab
Loading
Loading
Loading
Loading
+42 −37
Original line number Diff line number Diff line
@@ -109,6 +109,8 @@ public class JobSchedulerShellCommand extends ShellCommand {
        final String pkgName = getNextArgRequired();
        final int jobId = Integer.parseInt(getNextArgRequired());

        final long ident = Binder.clearCallingIdentity();
        try {
            int ret = mInternal.executeRunCommand(pkgName, userId, jobId, force);
            switch (ret) {
                case CMD_ERR_NO_PACKAGE:
@@ -147,6 +149,9 @@ public class JobSchedulerShellCommand extends ShellCommand {
                    break;
            }
            return ret;
        } finally {
            Binder.restoreCallingIdentity(ident);
        }
    }

    private int runMonitorBattery(PrintWriter pw) throws Exception {