summaryrefslogtreecommitdiffstats
path: root/build/android/adb_run_system_webview_shell
blob: 5d0c0e48e8fd19af84fa14d47340a66eb710f109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
# Copyright 2015 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.

# Runs a 'mini-browser' using System WebView with an optional url as parameter.
# SystemWebViewShell.apk should be installed for this to work.

optional_url=$1

adb shell am start \
  -a android.intent.action.VIEW \
  -n org.chromium.webview_shell/.WebViewBrowserActivity \
  ${optional_url:+-d "$optional_url"}