Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip "Welcome Page" in Chrome using adb

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?

like image 938
JunaidKirkire Avatar asked Oct 29 '15 07:10

JunaidKirkire


1 Answers

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

this command disables the welcome screen for chrome

like image 100
Abhishek Vishwakarma Avatar answered Dec 02 '22 00:12

Abhishek Vishwakarma