summaryrefslogtreecommitdiffstats
path: root/build/android/adb_run_mojo_shell
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-27 09:48:47 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-27 09:48:47 +0000
commite5fc9bfffb15f8d85590e5e123e65260774f31e3 (patch)
treeb8af07b9a2f16ae1a5a9a4c6bfaceb7beb1a67d1 /build/android/adb_run_mojo_shell
parentfb1176eb3ba474a0376fc7d7b35a99907d69e22f (diff)
downloadchromium_src-e5fc9bfffb15f8d85590e5e123e65260774f31e3.zip
chromium_src-e5fc9bfffb15f8d85590e5e123e65260774f31e3.tar.gz
chromium_src-e5fc9bfffb15f8d85590e5e123e65260774f31e3.tar.bz2
Pass app URL to mojo_shell on Android
This CL lets us supply an app URL to mojo_shell on Android. To load an app, you can use the adb_run_mojo_shell script: $ ./build/android/adb_run_mojo_shell http://127.0.0.1:4444/libsample_app.so This script starts the MojoShellActivity on the device and passes the URL to mojo_shell via an Android Intent. We're currently using the VIEW intent, but we might want to switch to a different intent at some point. R=darin@chromium.org,aa@chromium.org Review URL: https://codereview.chromium.org/47343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/adb_run_mojo_shell')
-rwxr-xr-xbuild/android/adb_run_mojo_shell14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/android/adb_run_mojo_shell b/build/android/adb_run_mojo_shell
new file mode 100755
index 0000000..d47270e
--- /dev/null
+++ b/build/android/adb_run_mojo_shell
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if [ $# -gt 0 ] ; then
+ INTENT_ARGS="-d \"$1\"" # e.g. a URL
+fi
+
+adb shell am start \
+ -a android.intent.action.VIEW \
+ -n org.chromium.mojo_shell_apk/.MojoShellActivity \
+ $INTENT_ARGS