Chandrashekhar Swami
Chandrashekhar Swami

Reputation: 1780

How to open chrome in incognito tab

I have a scenario open a web link in incognito tab in chrome browser. I am using adb command to open chrome and navigate to specific URL i.e adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main -d weburl .

Is there any way to open link directly in incognito mode through adb?

Upvotes: 3

Views: 3863

Answers (3)

manu Bhardwaj
manu Bhardwaj

Reputation: 21

Try this! it will work.

adb shell am start -n com.android.chrome/org.chromium.chrome.browser.incognito.IncognitoTabLauncher

Upvotes: 2

Chandrashekhar Swami
Chandrashekhar Swami

Reputation: 1780

I could not find any way using adb commands. But using ChromeOptions it is possible if we add "--incognito" argument.

Upvotes: 1

dzylich
dzylich

Reputation: 548

You can launch chrome in incognito mode with the -incognito flag. I am not sure if this will work through ADB, however.

Upvotes: -1

Related Questions