FGS PendingIntent also use BroadcastOptions' temp allowlist duration.
For FGS PendingIntent, if the BroadcastOptions parameter passed in PendingIntentRecord.send() call has a non-zero temp allowlist duration, treat this duration the same as the FGS PendingIntent's temp allowlist duration. Previously only setExact() alarm's "broadcasts" are exempt from BG-FGS-start restriction using BroadcastOptions. This CL exempts setExact() alarm's "FGS PendingIntent" from BG-FGS-start restriction. BYPASS_INCLUSIVE_LANGUAGE_REASON=Pre-existing API Bug: 193011829 Test: b/193011829 POC app, with this fix, ForegroundServiceStartNotAllowedException is not seen. Change-Id: Ifb095a8bcc458ab27c9259ca4af4d759835f2e1c
Loading
Please register or sign in to comment