summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-09-07 01:33:37 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-09-07 01:33:37 +0000
commit2e2ea1fb13b7d931fdbad3cc0d8983a4135de81b (patch)
tree9323eca636571a416d3a8478accf91209acf3a4f
parent8314d050c5a7d6de208cbf7f5814487caf54d0f9 (diff)
parent8ab52a2a075c64aff4989be47e0b3b9a444f4e91 (diff)
Merge "Call handleIncomingUser when making intent"
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerShellCommand.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerShellCommand.java b/services/core/java/com/android/server/am/ActivityManagerShellCommand.java
index 9de687527364..b24c36ad9179 100644
--- a/services/core/java/com/android/server/am/ActivityManagerShellCommand.java
+++ b/services/core/java/com/android/server/am/ActivityManagerShellCommand.java
@@ -16,6 +16,7 @@
package com.android.server.am;
+import static android.app.ActivityManagerInternal.ALLOW_FULL_ONLY;
import static android.app.ActivityTaskManager.RESIZE_MODE_SYSTEM;
import static android.app.ActivityTaskManager.RESIZE_MODE_USER;
import static android.app.WindowConfiguration.ACTIVITY_TYPE_UNDEFINED;
@@ -302,7 +303,9 @@ final class ActivityManagerShellCommand extends ShellCommand {
mSamplingInterval = 0;
mAutoStop = false;
mStreaming = false;
- mUserId = defUser;
+ mUserId = mInternal.mUserController.handleIncomingUser(Binder.getCallingPid(),
+ Binder.getCallingUid(), defUser, false, ALLOW_FULL_ONLY,
+ "ActivityManagerShellCommand", null);
mDisplayId = INVALID_DISPLAY;
mWindowingMode = WINDOWING_MODE_UNDEFINED;
mActivityType = ACTIVITY_TYPE_UNDEFINED;