Also set calling pid when registering for next activity start

Test: Share bugreport to Gmail from notification shade
Test: go/wm-smoke
Bug: 73991490
Change-Id: I46e933973f6cd984f7bb1e8231247fdb062a766c
This commit is contained in:
Jorim Jaggi
2018-03-08 17:47:07 +01:00
parent bc2aabe845
commit a545b0793f

View File

@@ -26593,6 +26593,7 @@ public class ActivityManagerService extends IActivityManager.Stub
RemoteAnimationAdapter adapter) throws RemoteException {
enforceCallingPermission(CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS,
"registerRemoteAnimationForNextActivityStart");
adapter.setCallingPid(Binder.getCallingPid());
synchronized (this) {
final long origId = Binder.clearCallingIdentity();
try {