APITuner — ADB-free virtual tuner for Android TV / Google TV

It works Yay. Thanks for all of your hard work!!!

1 Like

When using apituner with directv for the first time after rebooting my google stream 4k boxes, it launches the directv app ok but it does not tune the channel. My guess is it needs a longer delay as it always works on the second tune.

@techpro2004 APITuner v0.1.24 is out (server only — no Agent APK update needed if you’re already current).

Your guess was close: after a reboot the DirecTV app was opening, but the first channel deeplink was getting dropped on the cold start, and we were treating the splash as “ready.” Second tune worked because the app was already warm.

What’s new: if playback never starts after a deeplink, we re-send the same channel intent once (default ~6s), and we keep waiting for real playback instead of accepting the splash. Needs Agent Notification access so we can see MediaSession playback.

docker pull ghcr.io/matthewfkoch/apituner:0.1.24

(or :latest), restart, then try the first tune after a Streamer reboot again. Options → Deeplink relaunch (s) if you want to bump the wait (0 turns it off).

Release: github.com/matthewfkoch/APITuner-releases/releases/tag/v0.1.24
Changelog: https://github.com/matthewfkoch/APITuner/blob/main/CHANGELOG.md

1 Like

no dice. it did not tune. I selected fox and got the yes game that I was watching last night in a preview window along with a bunch of other items to select to watch.

edit: I left it alone for a while and now the yes game is full screen.

1 Like

If you have some logs you can provide that would be great.

see below. I tried tuning nbc

v0.1.25 is out — please update both the server (ghcr.io/matthewfkoch/apituner:0.1.25) and the Agent APK on each Streamer (dashboard → Update Agent). Keep Notification access on.

The logs showed two stacked problems: after reboot / while DirecTV is already open, a leftover PLAYING session (continue-watching / YES) was treated as ready, so Channels opened HDMI on the wrong picture. And NEW_TASK alone often just foregrounded DirecTV without delivering the new channel URI.

0.1.25 sends deeplinks with CLEAR_TOP|SINGLE_TOP, ignores leftover PLAYING / mismatched titles (YES vs NBC), and relaunches once instead of locking onto the wrong session. Agent-only tuners still cannot force-stop the app, so this is the strongest ADB-free fix, not a guarantee on every DirecTV UI.

APK: github.com/matthewfkoch/APITuner-releases/releases/tag/v0.1.25

So it works on the first tuner but the second tuner keeps loosing connection. Also the second tuner has trouble tuning. Also the stream crashes every time I refresh the web page in firefox. see logs below:

v0.1.26

docker pull ghcr.io/matthewfkoch/apituner:0.1.26

(or :latest), restart.

The last logs showed DirecTV reporting show titles, not call signs. 0.1.25 treated Golden Girls as “not MeTV,” waited 30s, then killed the stream — that’s the second-tuner drop. This build accepts a title change from the leftover show and still rejects a leftover that never changes (YES while tuning NBC).

Please try:

  1. Two tuners at once (first one working, then a second channel) and leave both past ~30s
  2. Channels whose on-screen show name does not match the call sign (MeTV, PBS, GRIT, GREAT)
  3. Whether a Firefox refresh of the APITuner page still drops an in-progress stream

If anything still flakes, another diagnostics dump helps.

not tuning on first boot on those channels see below:

v0.1.27 — please update the server and the Agent APK on each Streamer (dashboard → Update Agent). Keep Notification access on.

The first-boot dump showed DirecTV opening continue-watching (Red Tomahawk / Roseanne) and only one relaunch, so the leftover show never moved. This build re-sends the channel deeplink up to twice, retries cold starts after 2s, and uses CLEAR_TASK so continue-watching is less likely to stick. Splash Unknown Title is not treated as ready (that’s how Cozi succeeded in a few seconds).

docker pull ghcr.io/matthewfkoch/apituner:0.1.27

After reboot, try MeTV / GRIT / GREAT / PBS again on a first tune. Agent-only still cannot force-stop DirecTV, so this is stronger, not a guarantee on every UI.

no dice. It just hangs on the splash screen then fails see below: