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

Pushed a small update to adbtuner:development today (20260503-6).

Changes

  1. Streaming Endpoint connectivity tests are now done at the TCP level instead of making HTTP requests. This confirms that the target device is on the network, but no longer confirms that specific URL is reachable and serving video. This improves tuning time with connectivity checks enabled and stops ADBTuner from hammering the streaming endpoint when MPEG_NULL_PACKETS is enabled. We also don't want to be starting up an encode on a device just to test connectivity.

  2. Check playback status more frequently during the tuning process during periods when screenshots aren't being used for that purpose. This may get back up to 0.25 seconds of extra video while loading a channel.

I believe I'm out of places to optimize for "faster tuning." A well behaved app that can be kept in the foreground should be able to load a channel with playback detection in 1.5 - 2.5 seconds with something like an Onn 4k Plus or the new Onn 4k Pro 2nd Gen. Slower devices 4-5 seconds.

Presuming the connected Android device is awake, a tuning configuration with no delay ("use_fixed_delay": true, "fixed_delay_seconds": 0) should get you video in 0.3 - 0.5 seconds, but you will may have to watch your channel load.

Let me know if you run into any issues with this. Specifically on older, slower devices.

Just installed and tested loading a few channels. Definitely faster for me so far - about 4-6 secs vs 8-10 secs - using Firestick 4K Max sticks.

Question: Do these sticks fall into the older slower category you mentioned?

There are some helpful benchmarks at the link below. I wouldn’t consider either version of the Fire Stick 4K Max to be slow, but the newer devices are slightly faster. Results in ADBTuner will vary based on the content provider, network speed, etc.

https://www.aftvnews.com/2026-onn-4k-pro-and-onn-4k-stick-benchmarks-the-pro-gets-a-much-needed-power-up-and-the-stick-holds-its-own/

Thanks for sharing. Good data points to have.

Last month, Spectrum expanded its app support to all Android TV devices, moving beyond its previous Samsung-exclusive limitation.

While the app doesn't currently support deep-link tuning, it does allow for tuning via channel numbers. Claude AI and I developed a script to bridge this gap for ADBTuner, It’s a bit slow, but it has proven to be mostly reliable.

{
    "name": "Spectrum TV",
    "author": "Custom",
    "version": "2.1",
    "description": "Tunes Spectrum TV via channel number keyevents. Set TARGET_URL_OR_IDENTIFIER to the channel number (e.g. 35 for CNN). Spectrum uses an internal WebView router with no deeplink support \u2014 channels are tuned via keyevents after app launch.",
    "uuid": "f4a7b2c9-d831-4e56-9f0a-7c3e8b1d2a45",
    "global_options": {
        "wait_for_video_playback_detection": true,
        "use_fixed_delay": false,
        "fixed_delay_seconds": 0,
        "wait_after_post_playback_start_commands_seconds": 0
    },
    "pre_tune_commands": [
        "input keyevent KEYCODE_MEDIA_STOP",
        "am force-stop com.spectrum.stva.androidtv",
        "input keyevent KEYCODE_HOME"
    ],
    "tune_commands": [
        "adbtuner_open_app com.spectrum.stva.androidtv",
        "sleep 8",
        "input keyevent KEYCODE_DPAD_CENTER",
        "for digit in $(echo '||TARGET_URL_OR_IDENTIFIER||' | grep -o '.'); do input keyevent KEYCODE_$digit; sleep 0.4; done",
        "sleep 1"
    ],
    "tune_match_text_commands": [
        {
            "match_text": [
                "who's watching",
                "choose an account",
                "edit profiles",
                "sign in"
            ],
            "commands": [
                "input keyevent KEYCODE_DPAD_CENTER"
            ],
            "start_checking_after_seconds": 3
        }
    ],
    "post_playback_start_commands": [],
    "post_tune_commands": [
        "input keyevent KEYCODE_MEDIA_STOP",
        "am force-stop com.spectrum.stva.androidtv",
        "input keyevent KEYCODE_HOME"
    ],
    "timed_keep_active_commands": []
}

Thank you @turtletank for making this possible.

1 Like

Tivo Stream 4K user here. A scheduled recording went from the movie it was recording on an adbtuner channel to the Tivo home screen at 38:09 into the movie. What logs can I look at to see what caused this to happen?

What version of ADBTuner are you on? I was seeing this behavior until updating my container and haven’t seen it again.

20260501-1

I updated to this version a few weeks ago specifically to cure this problem but it crept back.

That's the version I’m on, but I am using 10 for the timeout instead of the default 8.

Add KNOWN_STREAM_DEFAULT_TIMEOUT with a setting of 10 to your environmental variables and see if that helps you.

Recorded a 4 hour golf tournament after changing KNOWN_STREAM_DEFAULT_TIMEOUT to 10. Thanks

Is the new Firestick Vega OS going to work with ADBTuner or should I start looking for ONN devices?

Start looking at ONN devices; Vega is not built on top of Android, but a custom Linux-based solution. Or, I mean, if you already have Android-based Firesticks, just stick with those!

1 Like

Mine are 4k Max sticks from 2024. I was under the impression that they were going to be updated to Vega. I believe I have auto-update turned off, so the question will be how long before they stop working from either getting or not getting an update. Looks like the new onn 4k Pro is getting bought out at WalMart to be resold on eBay for 2x the price at the moment.

According to most reputable sources, many current fire sticks will be supported through Dec 31, 2030.

1 Like

This is false; Vega is only for go-forward new devices (for the time being, Amazon may change their mind when if it should crash and burn and they lose market share). No older devices are being ported. They are just scared Google may screw with them eventually if they stay Android only.

1 Like

Wonder if this could be tweaked to work with ADBTuner and HDMI capture.

Not sure if posted anywhere, but the DirecTV app now allows for increasing the "Are you still watching?" prompt from 4 hours to 12 hours. Just confirmed on one of my Onn boxes. Figured some of you would like to know.

1 Like

That's great! It has been an option on the DTV app for my Roku sticks. I have been hoping that it would migrate to the ONN boxes. Thanks for confirming!

1 Like

Yeah, that's a solid suggestion as well. I have already changed my "still watching" settings on the DTV apps for my onn boxes to 12 hours. It's unlikely that I'll ever have same channel consecutive recordings exceeding 12 hours. But, I'v always been a "belt and suspenders" kind of guy. So, I am adding 60 minute "play" commands to the Compatibility mode configuration I use for DTV.

I pushed an update (20260531-3) to the development version this morning. Nothing exciting, just updated all third-party dependencies to supported versions and fixed a few small bugs. Let me know if you run into any issues.

3 Likes