I am trying to open a URL in Google Chrome using adb command line. Have set "--no-first-run" using following command -
adb shell 'echo "chrome --no-first-run" > /data/local/tmp/chrome-command-line'
Have taken the command line switch from the following website - http://peter.sh/experiments/chromium-command-line-switches/
Then I execute the following commands,
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'
Still the "Welcome Page" shows up.
How can I skip this and go directly to the website URL passed in command?
--no-first-run
trick andam start -n com.android.chrome/com.google.android.apps.chrome.Main -d 'http://wikipedia.org'
is working here perfectly for Chrome v46.0. See if changing the component name works. Replacecom.google.android.apps.chrome.Main
withorg.chromium.chrome.browser.ChromeTabbedActivity
or use""
instead of''
. Tell us the results. Use--activity-clear-task
at the end, if necessary.