summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Larimer <jlarimer@google.com>2015-01-29 17:55:10 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-29 17:55:10 +0000
commit64d6bacf13e4ae913c52b773439a542dc5b2b714 (patch)
tree7da90026b627a663299758d8613056f103eb9fe4
parent1dbbc2045ae16a4923b30c9576703d02a4363529 (diff)
parent2f4ad45d60aac5b2b025e9eac34e289d406645dc (diff)
downloadframeworks_base-64d6bacf13e4ae913c52b773439a542dc5b2b714.zip
frameworks_base-64d6bacf13e4ae913c52b773439a542dc5b2b714.tar.gz
frameworks_base-64d6bacf13e4ae913c52b773439a542dc5b2b714.tar.bz2
am 2f4ad45d: Merge "DO NOT MERGE Restore calling identity before checking permission" into klp-dev
* commit '2f4ad45d60aac5b2b025e9eac34e289d406645dc': DO NOT MERGE Restore calling identity before checking permission
-rw-r--r--services/java/com/android/server/am/ActivityStackSupervisor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/am/ActivityStackSupervisor.java b/services/java/com/android/server/am/ActivityStackSupervisor.java
index d616f1b..fb5fe5c 100644
--- a/services/java/com/android/server/am/ActivityStackSupervisor.java
+++ b/services/java/com/android/server/am/ActivityStackSupervisor.java
@@ -742,6 +742,8 @@ public final class ActivityStackSupervisor {
aInfo, resultTo, resultWho, requestCode, callingPid, callingUid,
callingPackage, startFlags, options, componentSpecified, null);
+ 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
@@ -755,8 +757,6 @@ public final class ActivityStackSupervisor {
mService.updateConfigurationLocked(config, null, false, false);
}
- Binder.restoreCallingIdentity(origId);
-
if (outResult != null) {
outResult.result = res;
if (res == ActivityManager.START_SUCCESS) {