Merge "Mark uid as non-idle/FG-entitled when launching for fg service" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
93243bf808
@@ -2162,6 +2162,15 @@ public final class ActiveServices {
|
||||
}
|
||||
}
|
||||
|
||||
if (r.fgRequired) {
|
||||
if (DEBUG_FOREGROUND_SERVICE) {
|
||||
Slog.v(TAG, "Whitelisting " + UserHandle.formatUid(r.appInfo.uid)
|
||||
+ " for fg-service launch");
|
||||
}
|
||||
mAm.tempWhitelistUidLocked(r.appInfo.uid,
|
||||
SERVICE_START_FOREGROUND_TIMEOUT, "fg-service-launch");
|
||||
}
|
||||
|
||||
if (!mPendingServices.contains(r)) {
|
||||
mPendingServices.add(r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user