Merge "Missed one DENIED event in ForegroundServiceStateChanged log." into sc-dev am: f3860569fb am: 16b2a91431

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14823348

Change-Id: I8f8cd65375d802867e2d37642c79d6b140971abd
This commit is contained in:
Hui Yu
2021-06-03 19:36:58 +00:00
committed by Automerger Merge Worker

View File

@@ -684,6 +684,9 @@ public final class ActiveServices {
+ r.shortInstanceName;
Slog.w(TAG, msg);
showFgsBgRestrictedNotificationLocked(r);
logFGSStateChangeLocked(r,
FrameworkStatsLog.FOREGROUND_SERVICE_STATE_CHANGED__STATE__DENIED,
0);
if (CompatChanges.isChangeEnabled(FGS_START_EXCEPTION_CHANGE_ID, callingUid)) {
throw new ForegroundServiceStartNotAllowedException(msg);
}