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

Eureka! I found it! Paramount Plus Movies Gracenote! (and several more...)

Movies PPLUSM 121830
History and Undiscovered PPLUSHISUN 121825
Nostalgic Hits PPLUSNOS 121823
TV Classics PPLUSTVC 121814
80's Sitcoms PPLUS80SC 124634
90's Sitcoms PPLUS90SC 124632
24/7 Laughs PPLUSLAUGH 121815
Black Voices PPLUSBV 121815
Adult Animation PPLUSAA 121813

I am looking at this for the first time, as I think it would be great for replacing some TVE channels that we have lost access to over the years. I have access to the live streams through my cable log in using the apps but I’m unclear on how to get the deep links for the apps. I see the ones above for the nbc apps. Are they all similar across apps, or how do I find out what they are? Thanks!

Fubo tv and YTTV work the best with ADBTuner.
I've heard that Direct tv works but it is based on the subscriber and the deep links are kind of difficult to get.

1 Like

Philo and Sling works too. I can verify the latter working

Yeah, but I’m not looking to add yet another service. I already have a cable log in I can use. I’m just not sure how to get the deep links to open the various apps. I see above someone has posted the NBC ones, I wasn’t sure if say ABC or CBS would be the same or if not, how I would find them.

2 Likes

Took some time today to revisit the NBC App and the "dimming" issue. For those unfamiliar, launching a deep link on the NBC app results in a dimmed screen. It seems the deep link puts the video in a transparent overlay mode, much like you will see when you bring up a menu and dimmed video will continue play in background. Essentially, the app launched with an invisible (or just missing) control menu on screen.

I determined you can clear dimming with a few remote commands, bringing up the live guide then exiting. Where this worked, I never bothered to try to automate it as AH4C has been running for well. Cruising through this thread, I noticed @turtletank added custom configs. Did some testing and now have a working solution.

Here is a copy of my NBC App Configuration. Create a new config to allow a unique UUID to be created, paste in the pertinent bits seen below.

{
    "name": "NBC App",
    "author": "spammedeeper",
    "version": "0.1a",
    "description": "Custom Activity for NBC App Dim Overlay Challenge with Deep Links. Tuned for reliablity, not tuning speed.",
    "uuid": "xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
    "global_options": {
        "wait_for_video_playback_detection": true,
        "use_fixed_delay": false,
        "fixed_delay_seconds": 0,
        "check_for_and_clear_whos_watching_prompts": true
    },
    "pre_tune_commands": [
        "input keyevent KEYCODE_MEDIA_STOP"
    ],
    "tune_commands": [
        "am start -W -a android.intent.action.VIEW -d '||TARGET_URL_OR_IDENTIFIER||' '||TARGET_PACKAGE_NAME||'",
        "sleep 9",
        "input keyevent 23",
        "sleep 0.2",
        "input keyevent 19",
        "sleep 0.2",
        "input keyevent 23",
        "sleep 0.2",
        "input keyevent 4",
        "sleep 0.2",
        "input keyevent 23"
    ],
    "post_tune_commands": [
        "input keyevent KEYCODE_MEDIA_STOP",
        "input keyevent KEYCODE_MEDIA_PAUSE",
        "input keyevent 3",
        "input keyevent 26"
    ]
}

Here is what my config does, starting with tune_commands:

  • Launches NBC App with Channel Deep Link as Normal
  • Under "tune_commands" introduces a slight delay to allow the apps Buffer Circle to finish.
  • Pauses the video (Key Event 23, Select/Enter on DPAD)
  • Inputs Up on DPAD (Key Event 19) to highlight the Live Guide Button
  • Selects Live Guide (Key Event 23, Select/Enter on DPAD)
  • Inputs BACK to exit Live Guide (Key Event 4)
  • Resume/Unpause the Video (Key Event 23)

When the live guide is exited, it removes all overlays on the screen, along with all dimming. The video is normal contrast and brightness.

Around each keyevent is a SLEEP setting. The first SLEEP pauses any attempt at remote input until the video is done buffering. The guide is not available until the stream is fully buffered. If the keyinput starts too soon, the process will fail. The pause also stops any audio from being detected so your recording won't have a bunch of visible button movement. My ONN 4k needs an initial sleep of 9, where the newer Onn 4K PLUS needs about 6. You will just need to test what is best for your setup.

In between keyevents is a small delay, which I found necessary for reliable input. The SLEEP settings will need to be tailored to your device.

The settings in post_tune_commands are unique to my setup. Most of my TV watching is recordings, so I don't needs fast tuning. I find shutting down the Android streamers after tuning to make them more reliable for future recording. If you prefer faster tuning, or don't want to sleep your Android devices, remove the following two lines for HOME, then POWER button:

 "input keyevent 3",
 "input keyevent 26"

My testing so far has only been a few hours, so I'd love for others to try. This test was done on Android 14, Onn 4K streaming boxes with the current NBC app. Tune time is about 8-12 seconds, depending on device.

I will continue to test and report back anything interesting. I'm curious if Ethernet devices will have batter turning speed, getting past the initial buffer faster than my WiFi test devices.

Happy Streaming.

EDIT: Grammar.

UPDATE: Further testing on the long sleep setting in tune_commands showed the live guide in/out trick MAY work with the sleep completely removed. This actually cleared the dimming before the Buffer Circle finished. Worked well on my ONN 4K Plus, not as reliable the older Onn 4K. This worked while device was NOT sleeping. Coming out of sleep delays the in/out trick, does not clear dimming reliably. Network and Internet has an impact, so something you can try during your own testing.

3 Likes

Does your cable provider have an Android app for streaming?

If they also support streaming via a browser, you should check to see if deeplinks can be determined there.

Using a collection of apps with your cable login could probably be done, but would require more sleuthing than using a provider's app.

Probably. I’d have to check but I think so. It seems like maybe the better option for me would be HDMI for Channels instead though. I’ll look at my options.

1 Like

Does anyone have Peacock working on a FireTV device? I tried to add a single channel (Sky News) and can't get it to work. I'm URL encoding the link, per the earlier post. The package name is either "com.peacock.firetv" or "com.peacock.peacockfiretv" - for some reason "select from installed" on ADBTuner indicates the 2nd package but performing a manual "adb shell pm list packages" indicates the 1st package name, but neither works. Attempting this appears to have crashed ADBTuner as well - I had to stop and re-start the docker. I have 3 FireTV 4K Max (Android 9) tuners and 2 Onn TV HD (Android 12) tuners, but for this test I have made the FireTV devices higher priority to avoid using the Onn TV units.

EDIT: also - how do I find the Gracenote ID for Peacock live channels?

I had it working with the $20 Onn 4k box. Someone posted earlier they couldn't get it to work with Firestick.
Reelz: 68385
MovieSphere: 158131

I'm using com.peacocktv.peacockandroid with the Onn.

1 Like

what is the secret to getting Sling to work?
I had heard you have to get the link that launches the video player.

Not much of a secret. Look above, I have submitted a json list of the sling orang+blue channels with the sports pack.
Maybe @bnhf can integrate that in olivetin for those who needs it

1 Like

Ironic to see requests on how to get Sling working the week I decide to sell my encoders and move on.
Anyways:

Sling ADBTuner Channels

*, XXXX =Removed; duplicate elsewhere
** = Removed; no longer subscribe
*** Premium

Channel        Name             GraceNote    URL
*HE XXXX       FXX              17927        https://watch.sling.com/1/channel/41a4e693f9cc45cb8b6b5813f01ced31/watch
*HE XXXX       FXM              14988        https://watch.sling.com/1/channel/694d71d85ed9463597258cc5470301d6/watch
XXXX           AETV             10035        https://watch.sling.com/1/channel/be5a3bce259a4c13947f4b4fbae5e005/watch
XXXX           FX               14321        https://watch.sling.com/1/channel/2f5c3abe53004a3db6b236739c12a955/watch
8000 XXXX      FS1              82547        https://watch.sling.com/1/channel/0c6964d26bcd450cb7d8c8af10b9da20/watch
*SE XXXX       FS2              33178        https://watch.sling.com/1/channel/2173abf2ce324fe6837c8ab10c4a22cd/watch
*SE XXXX       MLBHD            62081        https://watch.sling.com/1/channel/8dc2e07d8d954628a0a80231d18f8667/watch
*SE XXXX       MLBNA            62085        https://watch.sling.com/1/channel/7aabf41c62294fb0b35d78c24b802f31/watch
8002           NFL Network      45399        https://watch.sling.com/1/channel/8a595ee9235f4d7f8b95dd35d268cdd5/watch
8003           MGM+ DRIVE-IN    68409        https://watch.sling.com/1/channel/f0111af39c5d4ff1b3ca6c57a27efcb5/watch
8004           AMC              10021        https://watch.sling.com/1/channel/21d18937ced74ecfbba333476d6f4270/watch
*LE XXXX       MAGN             18544        https://watch.sling.com/1/channel/18cc490b11d24ee7b13ea6ed0da1ef3b/watch
*KE XXXX       BOOM             21883        https://watch.sling.com/1/channel/83a743bf04f04e109f714c2992a9c8ce/watch
8007           TNT              11164        https://watch.sling.com/1/channel/d74f03db90624c769e0c6d4c9745660d/watch
8008           TBS              11867        https://watch.sling.com/1/channel/f2763f605b2d4282a16d21f539512f76/watch
(broke) XXXX   TRUTV            10153        https://watch.sling.com/1/channel/1ed623f9dc97498cbe332bd5216a87c1/watch
8010           USA              11207        https://watch.sling.com/1/channel/35b320ac77ce4a2fbaf685e401933dc1/watch
8011           SYFY             97051        https://watch.sling.com/1/channel/385c71f4210f457eb393041e36ed50b2/watch
XXXX           Comet            97051        https://watch.sling.com/1/channel/6ee46b954518414f88b9375c2cab191b/watch
8013           Comedy           10149        https://watch.sling.com/1/channel/7a0ff80be0c14f4da6b6cc510b9be57b/watch
8014           BET              10051        https://watch.sling.com/1/channel/6197aeac25ae4d0f92b06b411fc021a6/watch
* XXXX         History          14771        https://watch.sling.com/1/channel/a0b2c49be7814fa4bf1e381b7f12ce55/watch
*NE XXXX       SCI              57390        https://watch.sling.com/1/channel/3de2da0657e54dab959ee00b525db505/watch
8017           VICE             18822        https://watch.sling.com/1/channel/7c17236f677446ec967b12002e713939/watch
8018           BBCA             18332        https://watch.sling.com/1/channel/2a915617329d4e87b5a83b68c39b9229/watch
8019           IFC              14873        https://watch.sling.com/1/channel/0d9871a58b0e452eab0faf29ef28bc99/watch
* XXXX         Charge!          102148       https://watch.sling.com/1/channel/a0fd1a33fa5840dfb466dc85db4b132d/watch
*HE XXXX       SUNDANCE         16108        https://watch.sling.com/1/channel/59becba981be4d59b30e99129854a9d6/watch
*HE XXXX       STRTD            122695       https://watch.sling.com/1/channel/cf7667c836554daa85f8f1dc7e5b3f3d/watch
*HE XXXX       HRICNST          90401        https://watch.sling.com/1/channel/b4e7d03ea22449b093c2bbcc19eac602/watch
*HE XXXX       TCM              64312        https://watch.sling.com/1/channel/19b8b7733b4943e79ac9d3bc6a7e6427/watch
*LE XXXX       HALL             11221        https://watch.sling.com/1/channel/52f5e36d9a194f2294b64d4adebacf5e/watch
8026           AXSTV            28506        https://watch.sling.com/1/channel/fa61fd21b701452c92fd37a70770f460/watch
8027           FUSE             59116        https://watch.sling.com/1/channel/fba55399460f4a7b8d3d436793dc0f90/watch
*HE XXXX       HDnet            33668        https://watch.sling.com/1/channel/95264f7fc1ce4982b3d95d501f83fb24/watch
*HE XXXX       REELZ            68385        https://watch.sling.com/1/channel/4d9b4b3bc05b430e84803d9e6f149fb3/watch
8030           HGTV             14902        https://watch.sling.com/1/channel/c763c4c3001f4a04970bca35000c0ded/watch
8031           TLC              11158        https://watch.sling.com/1/channel/793b8cc7bdca43d9acb91432e1ccd24d/watch
8032           BRAVO            58625        https://watch.sling.com/1/channel/287f100993794e62a24fa8e8fbcca906/watch
8033           E!               61812        https://watch.sling.com/1/channel/eb6e6c19dbaa498cbe5acfc45d3f0ea7/watch
*EE XXXX       PARHD            59186        https://watch.sling.com/1/channel/6cc72a923bc64041b81ecb3b43d53b56/watch
8035           Food Network     50747        https://watch.sling.com/1/channel/4c8d7953714d4fa88a4d541d07fd031b/watch
8036           TRAV             11180        https://watch.sling.com/1/channel/48fed0bf95ed4756ad5515e5c59bb64b/watch
8037           Discovery        56905        https://watch.sling.com/1/channel/73653704f85b4bde9855ef29a6d3196e/watch
8038           ID               16615        https://watch.sling.com/1/channel/23d8c4d8b9cc4ed19771ab26f45e9867/watch
* XXXX         NGC              24959        https://watch.sling.com/1/channel/0245123bd2154a74b101db99f3e96f11/watch
*HE XXXX       DEST             16617        https://watch.sling.com/1/channel/ef750f82664945c982b69c24c92ae7b7/watch
8040           TOON             12131        https://watch.sling.com/1/channel/eb80d6db891f45fabbfcedf5e4206f61/watch
8041           NICJR            19211        https://watch.sling.com/1/channel/4b83fba5aba1401d9bb00f1bf9a357b4/watch
8042           CNN              10142        https://watch.sling.com/1/channel/eb6c608319dc4328a9aa5bea1307cbaf/watch
* XXXX         FNC              60179        https://watch.sling.com/1/channel/e78cd8c7cca443cba7a70c6008c0291f/watch
8044           MSNBC            16300        https://watch.sling.com/1/channel/b708785d33964014896ab636042af863/watch
Gone? XXXX     HLN              64549        https://watch.sling.com/1/channel/06a8cbeef6ab42f387044dfc07981901/watch
8046           BLOOM            14755        https://watch.sling.com/1/channel/0fc839fc6cf44ca78a5c3e33691addc2/watch
8047           LOCNOW           99988        https://watch.sling.com/1/channel/37fd997d86ff4fdd869184648f7780c7/watch
XXXX           LIFE             10918        https://watch.sling.com/1/channel/5f079b9fa8c3430fa692deb662d82d8e/watch
8048           Circle           Linked       https://watch.sling.com/1/channel/d962667dae5f49cc8b01607d7fbcca7a/watch

How to get the link:

the ID we were after is embedded in the link that shows up when you click on a given channel icon in the (browser) guide:

So the link looks like this for "Showtime Showcase" when not playing anything:

https://watch.sling.com/dashboard/grid_guide/grid_guide_favorites/1/channel/b24b20f009e94eb1ad2441a19f98b7ff/browse

And for that channel the correct deep link would be:

https://watch.sling.com/1/channel/b24b20f009e94eb1ad2441a19f98b7ff/watch

Who's your cable provider? If they support deeplinks you're in the right place.

If you need remote control emulation, then ah4c is your best bet. Unless somebody else has done the work previously, you'd be looking at some Bash scripting in ah4c to get things working with a new provider.

Here's what I get on my FireStick 4K Max (1st gen):

kara:/ $ pm list packages | grep peacock                                                                                                                                                
package:com.peacock.peacockfiretv

https://www.pytivodesktop.com

Successor to pyTivo which was web-based.

Thank you,

I've got it working

Morris

Xfinity. I know they have the stream app. I don’t currently use it because by DVR is located somewhere other than the local network of the people who are subscribed to the service so I can’t use it to livestream. That’s why something that would work with individual apps would be best for me. As I’ve done more research it seems like Androidhdmi for channels might be the better option since it doesn’t need deep links to work, though it can use them. I am considering moving my DVR and if I do, then I might be able to use the Xfinity stream app.

If your app supports channel input via remote control it would be worth the effort to test AH4C. I use AH4C daily to tune Direct TV boxes via channel numbers, using simple and key input commands. As channel numbers are unlikely to change (at least often) they are easy to keep updated.

I've got Peacock mostly working for 1 channel but when I stop watching, the channel is still running on the Onn TV HD. Do I need to change from the :stable to the :experimental version of ADBTuner to get Peacock to exit properly? Should I use compatibility mode or not? Also, how do I find the Gracenote ID for these channels?