Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a1e929f authored by Kate Montgomery's avatar Kate Montgomery Committed by Presubmit Automerger Backend
Browse files

[automerge] Fix bypass BAL via LocationManager.requestFlush 2p: 750af79d

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

Bug: 235823542
Change-Id: Ieab02cbad0e3d824b6d47f87dfa181c6acfe10ba
parents ffef4ed1 750af79d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -267,6 +267,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());