| #!/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"} |