ADBTuner: A "channel tuning" application for networked Google TV / Android TV devices

Sadly it doesn't. Just shows the YoutubeTV home screen. Onn device.

It works fine with the origional HDMI turner on my PC with using this...

c:\platform-tools\adb -s %ip% shell am start -a android.intent.action.VIEW -n com.haystack.android/.tv.ui.activities.LoadingActivity

I'm happy to just devote the 4th encoder on my URayCoder to the more manual loading of unsupported apps. As long as ADBTuner only knows about the first 3 encoders, and the PC HDMI4C only knows about the 4th there shouldn't be any conflicts. I am going to have to do that with the Weather Channel app anyway to bypass an annoying prompt that comes up when there is a special weather event going on.

Hmm. That's really odd. Is this the newer Onn 4k device? Android 12?

Out of curiosity, can you run the following connected to the Onn device?

adb -s <device ip> shell dumpsys package com.haystack.android

and share the content from the "Activity Resolver Table" section?

This actually works perfectly on my Onn 4k box.

This is from my onn box:

      https:
        63e8c49 com.haystack.android/.tv.ui.activities.LoadingActivity filter c198a6f
          Action: "android.intent.action.VIEW"
          Category: "android.intent.category.DEFAULT"
          Category: "android.intent.category.BROWSABLE"
          Scheme: "http"
          Scheme: "https"
          Authority: "www.haystack.tv": -1
          Authority: "haystack.tv": -1
          AutoVerify=true

com.haystack.android/.tv.ui.activities.LoadingActivity is associated with the https://haystack.tv so it should work as it did when specifying com.haystack.android/.tv.ui.activities.LoadingActivity manually.

Overall I'm trying to find a compromise between ease-of-use and flexibility which has me trying to have less form fields instead of more. I do appreciate the interest in expanding beyond the "standard" apps, but at least for now I want to make sure the "standard" apps are working as well as they can first.

Sure... Here it is

Activity Resolver Table:
Schemes:
intent:
a8750a7 com.haystack.android/.tv.ui.activities.LoadingActivity filter e5a6954
Action: "android.intent.action.VIEW"
Category: "android.intent.category.DEFAULT"
Category: "android.intent.category.BROWSABLE"
Scheme: "intent"
Authority: "com.haystack.android": -1
AutoVerify=true
http:
a8750a7 com.haystack.android/.tv.ui.activities.LoadingActivity filter 38ea0fd
Action: "android.intent.action.VIEW"
Category: "android.intent.category.DEFAULT"
Category: "android.intent.category.BROWSABLE"
Scheme: "http"
Scheme: "https"
Authority: "www.haystack.tv": -1
Authority: "haystack.tv": -1
AutoVerify=true
https:
a8750a7 com.haystack.android/.tv.ui.activities.LoadingActivity filter 38ea0fd
Action: "android.intent.action.VIEW"
Category: "android.intent.category.DEFAULT"
Category: "android.intent.category.BROWSABLE"
Scheme: "http"
Scheme: "https"
Authority: "www.haystack.tv": -1
Authority: "haystack.tv": -1
AutoVerify=true
fbconnect:
20b1b3e com.haystack.android/com.facebook.CustomTabActivity filter fbad9f
Action: "android.intent.action.VIEW"
Category: "android.intent.category.DEFAULT"
Category: "android.intent.category.BROWSABLE"
Scheme: "fbconnect"
Authority: "cct.com.haystack.android": -1

Which HDMI encoder device are you using?

1 Like

Thank you!

Thank you!

I pushed an update this morning that should fix the small stutters when tuning or closing one stream while watching another. Please let me know if you continue to see this issue after updating. Thanks!

1 Like

For those that are running Docker in Ubuntu (possibley other Linux as well), here is how I have updated the images over the last couple times.

sudo docker ps

Make note of the CONTAINER ID for the turtletank99/adbtuner IMAGE.

If you are running as a service on Ubuntu:

sudo systemctl stop ADBTuner.service

run the following:

sudo docker rm <CONTAINER ID>
sudo docker run -d --init -p 5592:5592 --name adbtuner -v adbtuner_config:/app/.config turtletank99/adbtuner

Then make sure it is running:

sudo docker ps

Restart the service (if required):

sudo systemctl start ADBTuner.service

There may be other ways to update the image, but this has worked for me without losing any data.

URayCoder 4K 4 Channels H.265 H.264

Thanks for digging into this! I no longer get the stutter, at least in limited testing. But I do get the "tuner lost" message with the second device. In testing, I kept the first encoder/streamer on NBC on an Onn device, and then used my iPhone, selecting a few different channels (one at a time) from the guide (from the second encoder/streamer, I presume). The first time, it worked flawlessly. But then, exiting out to the guide on the second device and selecting a new channel, the next three or so times I did this had the channel come in momentarily before going to the "tuner lost" screen. But the first channel stayed steady and didn't stutter, even after hitting the "Play" button to reload the channel on the second device.

Installed the latest update.

Hulu no longer works.

Or NBC...

is it just me?

1 Like

Did you change any of your URLS?
I'm still waiting for my HTMI encoder.
The URL stuff is so tricky.

Hey Guy, Sorry to do this to you but your latest update absolutely does not work. I rather have the interupped icon on my recordings than record the home screen of the adroid device. Seems when a 2nd tuner is needed it doesn't open the requested app on the 2nd tuner. I exported my last version so I am backup with the earlier version and working again. thanks you for your hard work. I hope you can get the latest working again for me. I did notice a quicker startup on the first tuner. Just for curiosity. I I start 3 versions of the server with 3 different ports could this work. The docker app doesn't take up much resorces in the NAS.

Will we be able to see a open source version of this project and review the code? Python is not by default async and is very tricky! not trying to cast any doubts. Just wanna see the code as promised (via discord).

I should have left well enough alone.
It was working perfectly.

I guess we wait for an update.......

1 Like

I have more work to do before I am comfortable releasing this with an open source license. I am fully aware of the complexities and not currently looking for contributions.

Thanks!

Thanks to @turtletank I was able to get a couple of encoders up and running quickly and painlessly.

I would like to ask for advice on encoders. My first purchase was a single channel URayCoder HEVC H.265 H.264, after trying a few different configurations and the latest firmware I still have audio sync issues every once in a while. My second purchase was a J-Tech Digital H.264 IPTV HDMI 1080P, extremely solid, no sync issues, no stuttering. I ordered another J-Tech, same model, when I opened the box I noticed the hardware looks identical to the first one, but the CPU on this one was maxed out and the video was stuttering, even when using the exact same configuration that worked perfectly on the first J-Tech.

My goal is to have 3 reliable HDMI tuners, any suggestions regarding encoders would be greatly appreciated.

@kennyb3653 @Anvil_DVR
Any chance you can provide logs from the docker container (docker logs adbtuner -n 2000) and provide some info about your environment (in addition to what you already provided)?

What Android devices you are using? HDMI encoder device models? Apps you are trying to tune? Configuration of channels that won't load (json export, or screenshot from the admin interface)?

2 Likes

I have the uray 4k coder with 3 Chromecast 4k.
Just the Hulu app and NBC app.
I don't have time to grab logs right now.

If I monitor the output from the encoder, I can see the app start, but then it just quits and goes back to the Home Screen. The video never starts.
Hope this helps.

Thanks for all the effort!
This thing is great, well it was. LOL.

The logs are gone because I deleted the container and Imported the full earlier version of the tuner. But the issue after investigating was not the docker container but the subscription through prime video ending with pararmount + merging showtime. Prime no longer providing Showtime Live channels except only the East and West and no support throught ShowtimeAnytime app. So now the app just shutdown. The latest release of adbTuner is not the issue.