Error when opening Chrome on Android 13 via adb

Recently I’ve started adapting our test framework for new Android release, and encountered an unexpected error when opening Chrome on Android 13 via adb. Since solving this issue required some investigation and a knowledge of Android development, I’ve decided to write a blog post about it.

TL;DR: Use the correct command below to launch Chrome:

adb shell am start -a android.intent.action.VIEW -d https://google.com -n com.android.chrome/com.google.android.apps.chrome.IntentDispatcher --es "com.android.browser.application_id" "some_package"

And to launch Samsung browser:

b shell am start -a android.intent.action.VIEW -d https://google.com -n com.sec.android.app.sbrowser/com.sec.android.app.sbrowser.SBrowserLauncherActivity --es "com.android.browser.application_id" "some_package"

Those, who want to know all the nitty gritty details, please keep reading.

Continue reading