am 966c3183: am 64dc5b09: am 20b338d9: Merge "Restore calling identity before checking permission" into lmp-dev
* commit '966c31831b352727a37bf75b8156a4e98dfb12c2': Restore calling identity before checking permission
This commit is contained in:
@@ -907,6 +907,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
requestCode, callingPid, callingUid, callingPackage, startFlags, options,
|
||||
componentSpecified, null, container);
|
||||
|
||||
Binder.restoreCallingIdentity(origId);
|
||||
|
||||
if (stack.mConfigWillChange) {
|
||||
// If the caller also wants to switch to a new configuration,
|
||||
// do so now. This allows a clean switch, as we are waiting
|
||||
@@ -920,8 +922,6 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
mService.updateConfigurationLocked(config, null, false, false);
|
||||
}
|
||||
|
||||
Binder.restoreCallingIdentity(origId);
|
||||
|
||||
if (outResult != null) {
|
||||
outResult.result = res;
|
||||
if (res == ActivityManager.START_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user