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

Commit 2938b381 authored by Nan Wu's avatar Nan Wu
Browse files

Do not pass whitelistToken when sending non-PI target

In ActivityManagerService.sendIntentSender, if the target is not a
PendingIntent, do not send whitelistToken to the client.

Bug: 279428283
Test: Manual test.
Change-Id: I8e2da7bd45db723b47d417651411fa0f34c9984a
parent 44ff5531
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5476,7 +5476,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                            + " Calling package: " + packageName + "; intent: " + intent
                            + "; options: " + options);
                }
                target.send(code, intent, resolvedType, allowlistToken, null,
                target.send(code, intent, resolvedType, null, null,
                        requiredPermission, options);
            } catch (RemoteException e) {
            }