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

Commit 12c0da41 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Accept non-EA jobs while user is locked.

We'll keep them around in the pending queue until the user is
unlocked, at which point we'll consider running them.

Bug: 27358148
Change-Id: I2eb538a89206d4caac620b3b4e989b011b309201
parent 800efcc7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1146,7 +1146,8 @@ public final class JobSchedulerService extends com.android.server.SystemService
            final ComponentName service = job.getService();
            try {
                ServiceInfo si = pm.getServiceInfo(service,
                        PackageManager.MATCH_DEBUG_TRIAGED_MISSING, UserHandle.getUserId(uid));
                        PackageManager.MATCH_ENCRYPTION_AWARE_AND_UNAWARE,
                        UserHandle.getUserId(uid));
                if (si == null) {
                    throw new IllegalArgumentException("No such service " + service);
                }