summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-07-31 22:53:31 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-07-31 22:53:31 +0000
commit2cd6ecda907356960729e1e3d3b788508df286b2 (patch)
treee47d29e7a9dec0cd1cad74c17edb4303e78ba64c
parentde521e7d3d8ef3e25020c0c457aa4e71b9a2ed88 (diff)
parenteab3c90103c25a6cbeb0989847a687b39158384e (diff)
Merge "Use shell package name when starting activities" into qt-r1-dev
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerShellCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerShellCommand.java b/services/core/java/com/android/server/am/ActivityManagerShellCommand.java
index cba9674d7360..26b3f435dea1 100644
--- a/services/core/java/com/android/server/am/ActivityManagerShellCommand.java
+++ b/services/core/java/com/android/server/am/ActivityManagerShellCommand.java
@@ -510,12 +510,12 @@ final class ActivityManagerShellCommand extends ShellCommand {
options.setLockTaskEnabled(true);
}
if (mWaitOption) {
- result = mInternal.startActivityAndWait(null, null, intent, mimeType,
+ result = mInternal.startActivityAndWait(null, SHELL_PACKAGE_NAME, intent, mimeType,
null, null, 0, mStartFlags, profilerInfo,
options != null ? options.toBundle() : null, mUserId);
res = result.result;
} else {
- res = mInternal.startActivityAsUser(null, null, intent, mimeType,
+ res = mInternal.startActivityAsUser(null, SHELL_PACKAGE_NAME, intent, mimeType,
null, null, 0, mStartFlags, profilerInfo,
options != null ? options.toBundle() : null, mUserId);
}