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: Ieb8021b9671766a9c0e2ec63a4f9b37c5b233e9b
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:06 +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());