If you're using a developer version of ADBT, there is the option for Custom Configurations. It will be at location /configurations after your ADBT URL. For example: http://xxx.xxx.xxx.xxx:5592/configurations.
On the Configurations Page, ADD NEW CONFIGURATION (top menu) to generate a new config. Paste and replace everything in the template config with my sample below and save it:
{
"name": "DirecTV App",
"author": "",
"version": "0",
"description": "Tune, force close, open, close app at end of tune for DTV App.",
"uuid": "b9a140d2-8088-468d-9e71-af2eb3c2695a",
"global_options": {
"wait_for_video_playback_detection": true,
"use_fixed_delay": false,
"fixed_delay_seconds": 0,
"check_for_and_clear_whos_watching_prompts": false
},
"pre_tune_commands": [
"input keyevent 3",
"am force-stop '||TARGET_PACKAGE_NAME||'"
],
"tune_commands": [
"am start -W -a android.intent.action.VIEW -d '||TARGET_URL_OR_IDENTIFIER||' '||TARGET_PACKAGE_NAME||'"
],
"post_tune_commands": [
"input keyevent 3",
"am force-stop '||TARGET_PACKAGE_NAME||'"
]
}
After saving the config, edit one of your channels on the main ADBT page, and change the Configuration to "DirecTV App". You may need to refresh the page for the new config to show up on drop down menu.
If the config does not work, it may be due to a UUID not being created by your ADBT. In that case, create a new config, then copy everything in my sample config above, but keep your UUID line.