android - 如何使用 adb 在 Chrome 中跳过 "Welcome Page"

标签 android google-chrome adb

我正在尝试使用 adb 命令行在 Google Chrome 中打开一个 URL。已使用以下命令设置“--no-first-run”-

adb shell 'echo "chrome --no-first-run" > /data/local/tmp/chrome-command-line'

已从以下网站获取命令行开关 - http://peter.sh/experiments/chromium-command-line-switches/

然后我执行以下命令,

adb -s TA99300UFC shell am set-debug-app com.android.chrome
adb -s TA99300UFC shell am start -n com.android.chrome/com.google.android.apps.chrome.Main -d 'http://wikipedia.org'

仍然显示“欢迎页面”。

我怎样才能跳过这个并直接转到命令中传递的网站 URL?

最佳答案

adb shell 'echo "chrome --disable-fre --no-default-browser-check --no-first-run" > /data/local/tmp/chrome-command-line'

此命令禁用 chrome 的欢迎屏幕

关于android - 如何使用 adb 在 Chrome 中跳过 "Welcome Page",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33408138/

相关文章:

android - 如何在线性布局中将元素放置得更近?

javascript - JSON.parse 返回字符串而不是数组

javascript - Chrome Profiler 中的 "Not optimized"警告是什么意思?

html - 为什么 "Source Sans Pro"在 Chrome 中以不正确的字体粗细显示为 "font-weight:200"?

android - 从 Android 应用程序控制串行设备(如 USB 打印机)

android - 当设备位于 Android P 上时,有什么方法可以使用 ADB 跳过 Android 设备设置向导?

android - adb push <directory>,但跳过 .svn .git(和 friend )

android - .xml 布局文件因 <EditText> 正文而无法正常工作

android - context 在 android 2.1 中出现异常

java - listView setItemChecked 不工作