Just had a failure with this, don't use it unless you possibly want to tune to the wrong channel occasionally.
{
"name": "DirecTV",
"author": "David B.",
"version": "3.0.0",
"description": "Reliable tuning for DirecTV. Prevent are you still there prompt from showing.",
"uuid": "3c7d5a19-6f2e-4b8a-9d3f-8e1c4b7a5f92",
"global_options": {
"wait_for_video_playback_detection": true,
"use_fixed_delay": false,
"fixed_delay_seconds": 0,
"check_for_and_clear_whos_watching_prompts": false,
"wait_after_post_playback_start_commands_seconds": 0
},
"pre_tune_commands": [
"input keyevent KEYCODE_MEDIA_STOP",
"am force-stop ||TARGET_PACKAGE_NAME||"
],
"tune_commands": [
"am start -W -n '||TARGET_PACKAGE_NAME||'/$(cmd package resolve-activity -a android.intent.action.MAIN '||TARGET_PACKAGE_NAME||' | awk -F= '/name=/{print $2; exit}') -a android.intent.action.VIEW -d '||TARGET_URL_OR_IDENTIFIER||'"
],
"post_playback_start_commands": [],
"post_tune_commands": [
"input keyevent KEYCODE_MEDIA_STOP",
"input keyevent KEYCODE_MEDIA_PAUSE",
"input keyevent KEYCODE_HOME",
"am force-stop ||TARGET_PACKAGE_NAME||"
],
"timed_keep_active_commands": [
{
"run_every_minutes": 60,
"commands": [
"input keyevent KEYCODE_MEDIA_PLAY"
]
}
]
}
Unfortunately, I'm resigned to the simple fact that the app has to fresh start each time and a tune is just going to take 10 seconds. Quite honestly, that's not too bad.
Edit: reverted back totally to my OG config. It's just way more stable.