Merge "Fix bypass BAL via LocationManager.requestFlush" into tm-dev am: 41fca95ca1

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

Change-Id: Iea0222532818a4381644ec2bf4fb4cf87ab3336a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Kate Montgomery
2023-02-02 20:54:17 +00:00
committed by Automerger Merge Worker

View File

@@ -300,6 +300,7 @@ public class LocationProviderManager extends
public void deliverOnFlushComplete(int requestCode) throws PendingIntent.CanceledException {
BroadcastOptions options = BroadcastOptions.makeBasic();
options.setDontSendToRestrictedApps(true);
options.setPendingIntentBackgroundActivityLaunchAllowed(false);
mPendingIntent.send(mContext, 0, new Intent().putExtra(KEY_FLUSH_COMPLETE, requestCode),
null, null, null, options.toBundle());