summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jon Larimer <jlarimer@google.com> 2015-01-29 18:11:57 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-01-29 18:11:57 +0000
commit76cdbb0475fe881c8e7320c277e5ea4848be5bff (patch)
treea29d9342d2fe37c495a5f92131151975b2879c5b
parent9352296810926eae663477526545a55e1b1f7a27 (diff)
parentd0318a63e51107d5589d8970b079c27d8f788c5a (diff)
am d0318a63: am 7dd12d76: Merge "DO NOT MERGE Restore calling identity before checking permission" into jb-mr2-dev
* commit 'd0318a63e51107d5589d8970b079c27d8f788c5a': DO NOT MERGE Restore calling identity before checking permission
-rw-r--r--services/java/com/android/server/am/ActivityStack.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java
index c344023070a0..73068005300d 100644
--- a/services/java/com/android/server/am/ActivityStack.java
+++ b/services/java/com/android/server/am/ActivityStack.java
@@ -3208,6 +3208,8 @@ final class ActivityStack {
aInfo, resultTo, resultWho, requestCode, callingPid, callingUid,
callingPackage, startFlags, options, componentSpecified, null);
+ Binder.restoreCallingIdentity(origId);
+
if (mConfigWillChange && mMainStack) {
// If the caller also wants to switch to a new configuration,
// do so now. This allows a clean switch, as we are waiting
@@ -3221,8 +3223,6 @@ final class ActivityStack {
mService.updateConfigurationLocked(config, null, false, false);
}
- Binder.restoreCallingIdentity(origId);
-
if (outResult != null) {
outResult.result = res;
if (res == ActivityManager.START_SUCCESS) {