Merge "Use shell package name when starting activities" into qt-r1-dev am: 2cd6ecda90

am: a023a7ae5a

Change-Id: Iaba6ff662d536c0263f34055dbc786c073fa38db
This commit is contained in:
Andrii Kulian
2019-07-31 16:34:16 -07:00
committed by android-build-merger

View File

@@ -513,12 +513,12 @@ final class ActivityManagerShellCommand extends ShellCommand {
options.setLockTaskEnabled(true); options.setLockTaskEnabled(true);
} }
if (mWaitOption) { if (mWaitOption) {
result = mInternal.startActivityAndWait(null, null, intent, mimeType, result = mInternal.startActivityAndWait(null, SHELL_PACKAGE_NAME, intent, mimeType,
null, null, 0, mStartFlags, profilerInfo, null, null, 0, mStartFlags, profilerInfo,
options != null ? options.toBundle() : null, mUserId); options != null ? options.toBundle() : null, mUserId);
res = result.result; res = result.result;
} else { } else {
res = mInternal.startActivityAsUser(null, null, intent, mimeType, res = mInternal.startActivityAsUser(null, SHELL_PACKAGE_NAME, intent, mimeType,
null, null, 0, mStartFlags, profilerInfo, null, null, 0, mStartFlags, profilerInfo,
options != null ? options.toBundle() : null, mUserId); options != null ? options.toBundle() : null, mUserId);
} }