Thanks! I got it to work manually, still trying to figure out the go syntax to run the Windows batch files instead of bash shell scripts, go build is bombing out. Looks like I need to escape some chars.
Here's my bmitune.bat to launch NBC channels via the app:
@echo off
set p1=%1
set link=""
set IP=192.168.1.94:5555
set PKG=com.nbcuni.nbc.androidtv
if "%p1%"=="nbc" set link=nbctve://live/nbc
if "%p1%"=="msnbc" set link=nbctve://live/msnbc
if "%p1%"=="usa" set link=nbctve://live/usa
if "%p1%"=="syfy" set link=nbctve://live/syfy
if "%p1%"=="cnbc" set link=nbctve://live/cnbc
if "%p1%"=="golf" set link=nbctve://live/golf
c:\platform-tools\adb -s %IP% shell am start -a android.intent.action.VIEW -d %link% -n %PKG%/com.nbc.nbctvapp.ui.main.view.MainActivity
For anyone wondering how to get the Android default activity for an app (the -n param in the start command above), the command is:
adb shell cmd package resolve-activity --brief "pkgname"
where pkgname is the NBC package name here (com.nbcuni.nbc.androidtv), you get these by running:
adb shell pm list packages "filter"
where filter is nbc in this case to only show the NBC packages


But not long after I had it working on the ONN yesterday, I tried to launch NBC again from the channels guide just to see how it worked over time and I got an endless stream of three dancing dots in the middle of the NBC app. I then tried to run the NBC app manually and it got content not available when I selected the live tab. Force close the app, clear cache, clear data, still didn't work.
