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

Commit 5777560c authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Allow BAL from CredentialManager

BAL hardening blocks the CredentialManager from starting during Amazon app login.

Test: manual test
Bug: 314033453
Flag: NONE
Change-Id: Id67e032d63cb46c7a3efc36ffb55f09eeb3660a5
parent 2fbfc28f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.annotation.Nullable;
import android.annotation.RequiresPermission;
import android.annotation.SystemService;
import android.annotation.TestApi;
import android.app.ActivityOptions;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
@@ -755,7 +756,10 @@ public final class CredentialManager {
        @Override
        public void onPendingIntent(PendingIntent pendingIntent) {
            try {
                mContext.startIntentSender(pendingIntent.getIntentSender(), null, 0, 0, 0);
                mContext.startIntentSender(pendingIntent.getIntentSender(), null, 0, 0, 0,
                        ActivityOptions.makeBasic()
                            .setPendingIntentBackgroundActivityStartMode(
                                ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED).toBundle());
            } catch (IntentSender.SendIntentException e) {
                Log.e(
                        TAG,