OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 optional_url=$1 | 7 optional_url=$1 |
8 parameters=$2 | |
Nico
2014/12/09 20:02:09
If you say
optional_url=shift
here and then say
sky
2014/12/09 20:09:23
The parameters need to be comma separated for --es
| |
8 | 9 |
9 adb logcat -c | 10 adb logcat -c |
10 adb shell am start -S \ | 11 adb shell am start -S \ |
11 -a android.intent.action.VIEW \ | 12 -a android.intent.action.VIEW \ |
12 -n org.chromium.mojo_shell_apk/.MojoShellActivity \ | 13 -n org.chromium.mojo_shell_apk/.MojoShellActivity \ |
14 ${parameters:+--esa parameters "$parameters"} \ | |
13 ${optional_url:+-d "$optional_url"} | 15 ${optional_url:+-d "$optional_url"} |
14 adb logcat -s MojoShellApplication MojoShellActivity chromium | 16 adb logcat -s MojoShellApplication MojoShellActivity chromium |
OLD | NEW |