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

Commit 90783be7 authored by Hani Kazmi's avatar Hani Kazmi
Browse files

Address crash if no tokens which allow BAL present

Bug: 282125083
Test: Manually on device
Change-Id: I5a25755f9c8b8f1da682869c5db8ad18c0736d96
parent 39169f81
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -190,6 +190,11 @@ class BackgroundLaunchProcessController {
                return false;
            }
            List<IBinder> binderTokens = getOriginatingTokensThatAllowBal();
            if (binderTokens.isEmpty()) {
                // no tokens to allow anything
                return false;
            }

            // The callback will decide.
            return mBackgroundActivityStartCallback.isActivityStartAllowed(
                    binderTokens, uid, packageName);