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

Commit 937c2903 authored by Oleksii Kislinskyi's avatar Oleksii Kislinskyi Committed by Android Build Coastguard Worker
Browse files

Fixing the default values for pending intent at LocationPendingIntentTransport.

Bug: 388828203
Flag: EXEMPT security fix
Test: atest LocationProviderTest
(cherry picked from commit 225602a7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:53cf3399f5691aab020d44efff5dd01eaf16257b)
Merged-In: I7251bb506f94194d8ab7cef0a5fbda195ef6341a
Change-Id: I7251bb506f94194d8ab7cef0a5fbda195ef6341a
parent e0a1e45a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -283,6 +283,7 @@ public class LocationProviderManager extends
                throws PendingIntent.CanceledException {
            BroadcastOptions options = BroadcastOptions.makeBasic();
            options.setDontSendToRestrictedApps(true);
            options.setPendingIntentBackgroundActivityLaunchAllowed(false);
            // allows apps to start a fg service in response to a location PI
            options.setTemporaryAppAllowlist(TEMPORARY_APP_ALLOWLIST_DURATION_MS,
                    TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED,
@@ -325,6 +326,7 @@ public class LocationProviderManager extends
                throws PendingIntent.CanceledException {
            BroadcastOptions options = BroadcastOptions.makeBasic();
            options.setDontSendToRestrictedApps(true);
            options.setPendingIntentBackgroundActivityLaunchAllowed(false);

            mPendingIntent.send(mContext, 0, new Intent().putExtra(KEY_PROVIDER_ENABLED, enabled),
                    null, null, null, options.toBundle());