HDMI for Channels

I actually did try that initially before I posted... I think. But it failed. Tried it again and here is the message that came up.

Starting: Intent { act=android.intent.action.VIEW cmp=com.haystack.android/.tv.ui.LoadingActivity }
Error type 3
Error: Activity class {com.haystack.android/com.haystack.android.tv.ui.LoadingActivity} does not exist.

Thanks again for your time trying to help. I work 3rd shift so I really need to get to bed. But will try any more ideas you or anyone else may suggest tomorrow morning. Thanks.

List all of the intents with this:

adb shell dumpsys package | grep -Eo "^[[:space:]]+[0-9a-f]+[[:space:]]+ com.haystack.android/[^[:space:]]+" | grep -oE "[^[:space:]]+$"```

Then try replacing .tv.ui.LoadingActivity with various intents the command dumps out.

I'm having similar issues trying to figure out how to launch the NewsNation app... it appears to be built on the same Android TV streaming video app template... so I am following this progress closely...

adb -s 10.0.1.122 shell monkey -p com.nexstar.newsnation -c android.intent.category.LAUNCHER 1
  bash arg: -p
  bash arg: com.nexstar.newsnation
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.nexstar.newsnation, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.nexstar.newsnation"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.nexstar.newsnation"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.```

Thanks for this, hoping I can piggyback off this advice as it seems Haystack and NewsNation are very similar AndroidTV apps. When I run that command:

adb -s 10.0.1.122 shell dumpsys package | grep -Eo "^[[:space:]]+[0-9a-f]+[[:space:]]+ com.nexstar.newsnation/[^[:space:]]+" | grep -oE "[^[:space:]]+$"

... Terminal takes a beat, and then produces no output. Does this mean these apps have no intents so launching via adb isn't possible?

Looks like my quote got mangled.

Try

adb shell dumpsys package | grep -Eo "^[[:space:]]+[0-9a-f]+[[:space:]]+ com.nexstar.newsnation/[^[:space:]]+" | grep -oE "[^[:space:]]+$"

Also not sure why the forum is adding a space after the + before com

Yup, I figured that part out, but I have Haystack and Newsnation installed on my AndroidTV device and running both of these commands in Terminal unfortunately still yields no output:

adb -s 10.0.1.122 shell dumpsys package | grep -Eo "^[[:space:]]+[0-9a-f]+[[:space:]]+ com.haystack.android/[^[:space:]]+" | grep -oE "[^[:space:]]+$"
adb -s 10.0.1.122 shell dumpsys package | grep -Eo "^[[:space:]]+[0-9a-f]+[[:space:]]+ com.nexstar.newsnation/[^[:space:]]+" | grep -oE "[^[:space:]]+$"

This worked for me:

adb shell am start -a android.intent.action.VIEW -n com.haystack.android/.tv.ui.activities.LoadingActivity
1 Like

Maybe one of these will help?

com.newsnation.firetv/exo.PlayerActivity
com.newsnation.firetv/.DailyMotionPlayerActivity
com.newsnation.firetv/exo.PlayerActivity
com.newsnation.firetv/.DailyMotionPlayerActivity
com.newsnation.firetv/exo.PlayerActivity
com.newsnation.firetv/.DailyMotionPlayerActivity
com.newsnation.firetv/exo.PlayerActivity
com.newsnation.firetv/.DailyMotionPlayerActivity
com.newsnation.firetv/exo.PlayerActivity
com.newsnation.firetv/.DailyMotionPlayerActivity
com.newsnation.firetv/.SplashActivity

That worked for me too, for Haystack News. Sweet! Thanks.

But for NewsNation...

I tried those but they didn't help. Also tried replacing "com.newsnation.firetv" with "com.nexstar.newsnation" as that is the package name my devices report, but it still didn't launch the NewsNation app. Hmm. I will keep tinkering and will report back.

Has anyone here been successful finding an adb command to launch the NewsNation app?

Just discovered we can also be the cool kinds on the block and get the WeatherScan thing going.

Simply send the adb command:

adb shell am start -a android.intent.action.VIEW -d   https://weatherscan.net/            
2 Likes

Thank you very much for your help. That did work for me wonderfully with Haystack. Now I will take some of your suggested troubleshooting here and put that toward other android apps I may be interested in launching.

2 Likes

Cool! What browser does it open in? My devices are saying they don't have an app for that, wondering what else I should install or sideload, hmm.

In my case it was Amazon Silk - Amazons browser on Fire TV Cube

Does Firefox exist in app store?

1 Like

Not in the search I just did. The Play Store lists a bunch of other browsers. I'm checking them out. Awhile back I remember sideloading Chrome on a different AndroidTV, not sure that's the way to go for this though.

I would rather have Chrome. Going to look into side loading that.

2 Likes

In the interest of a teachable moment for me, could someone explain to me how do an IS_ASLEEP check in Windows .bat as opposed to .sh. I have done most of the .sh to .bat converting on my own concerning this project, but I'm not particularly skilled in either and would appreciate the insight. The code below is kind of from @cyoungers for .sh.

IS_ASLEEP=`adb -s 192.168.0.27:5555 shell dumpsys display | grep mScreenState=OFF`
if [ $IS_ASLEEP ];
then
adb -s 192.168.1.135 shell input keyevent KEYCODE_WAKEUP; sleep 2
fi

I just wanna do that, but in .bat.

Thanks.

Try timeout 5

Oh I'm not trying to figure out how to pause or sleep. I have those commands installed. I am trying to do the code to check to see if the device is asleep.

Oh, sorry. Not sure on that one.

adb -s %device% shell "dumpsys power | grep =Awake" >NUL
set ret=%errorlevel%
if "%ret%" == "1" adb -s %device% shell input keyevent KEYCODE_WAKEUP ; sleep 2
2 Likes