Merge "Address crash if no tokens which allow BAL present" into udc-dev am: 83847ed497
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23389159 Change-Id: Iffbd88603be5aa46f89ad03b3eb0717ef1ecbbda Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -190,6 +190,11 @@ class BackgroundLaunchProcessController {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
List<IBinder> binderTokens = getOriginatingTokensThatAllowBal();
|
List<IBinder> binderTokens = getOriginatingTokensThatAllowBal();
|
||||||
|
if (binderTokens.isEmpty()) {
|
||||||
|
// no tokens to allow anything
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// The callback will decide.
|
// The callback will decide.
|
||||||
return mBackgroundActivityStartCallback.isActivityStartAllowed(
|
return mBackgroundActivityStartCallback.isActivityStartAllowed(
|
||||||
binderTokens, uid, packageName);
|
binderTokens, uid, packageName);
|
||||||
|
|||||||
Reference in New Issue
Block a user