Command adb open youtube URL via Browser

Asked

Viewed 680 times

0

To start a URL via adb, I have the following command adb shell:

adb shell am start -a android.intent.action.VIEW -d 'https://youtu.be/CSULRDoF8-g'

That works. But in the case of a Youtube video URL, the URL is opened by the Youtube app. I’d like it to open from Chrome or the Internet

How do I do this by adapting the command or using some similar one? I’m using a Samsung Galaxy S7.

2 answers

1

I believe the only way is to disable the links. In case just search for "Defaults" in the settings of the device and disable the Youtube, so each time you request a link Youtube, the device will ask on which app wants to open the link.

0

I just tested it here:

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main https://www.youtube.com/watch?v=H9JmJBn3p9g

Browser other questions tagged

You are not signed in. Login or sign up in order to post.