我正在尝试使用adb命令行在Google Chrome中打开一个URL。使用以下命令设置“ --no-first-run”-
adb shell 'echo "chrome --no-first-run" > /data/local/tmp/chrome-command-line'
Run Code Online (Sandbox Code Playgroud)
从以下网站进行了命令行切换-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'
Run Code Online (Sandbox Code Playgroud)
仍然显示“欢迎页面”。
如何跳过此步骤,直接进入命令中传递的网站URL?