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

Commit 52630569 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disambiguate apps that share uid for job/bucket purposes"

parents f1bbb833 93defea5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2261,7 +2261,12 @@ public final class JobSchedulerService extends com.android.server.SystemService
                    Slog.i(TAG, "Moving uid " + uid + " to bucketIndex " + bucketIndex);
                }
                synchronized (mLock) {
                    mJobs.forEachJobForSourceUid(uid, job -> job.setStandbyBucket(bucketIndex));
                    mJobs.forEachJobForSourceUid(uid, job -> {
                        // double-check uid vs package name to disambiguate shared uids
                        if (packageName.equals(job.getSourcePackageName())) {
                            job.setStandbyBucket(bucketIndex);
                        }
                    });
                    onControllerStateChanged();
                }
            });