Otherwise we'll check the wrong permissions and try to boost
the wrong process.
Test: Open app from recents, make sure Launcher gets scheduled
as needed.
Bug:
73555925
Change-Id: I2d1a7d0c881c0182127a5b25dce0ab1a308d5e63
final int callingPid = Binder.getCallingPid();
final int callingUid = Binder.getCallingUid();
+ final SafeActivityOptions safeOptions = SafeActivityOptions.fromBundle(bOptions);
final long origId = Binder.clearCallingIdentity();
try {
synchronized (this) {
return mStackSupervisor.startActivityFromRecents(callingPid, callingUid, taskId,
- SafeActivityOptions.fromBundle(bOptions));
+ safeOptions);
}
} finally {
Binder.restoreCallingIdentity(origId);