Skip to content

Instantly share code, notes, and snippets.

@xcsrz
Last active May 23, 2020 18:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcsrz/780017ebbd64b2435dc58b1053bf4858 to your computer and use it in GitHub Desktop.
Save xcsrz/780017ebbd64b2435dc58b1053bf4858 to your computer and use it in GitHub Desktop.
Does it irritate anyone else as much as me when you hit the back button and the video keep on playing but all you can see is the audio and it's not clear how to make the audio stop? This fixes that on FireTV+Kodi.

Run Directly

curl https://gist.githubusercontent.com/xcsrz/780017ebbd64b2435dc58b1053bf4858/raw/f9d36a87daba4e464a1e61d35172c313ee2fea7f/adb-fix-kodi-back-button-amazon-fire-tv.sh | bash
#/bin/sh
dir=$(mktemp -d)
echo "working in ${dir}"
cat << EOF > "${dir}/keymap.xml"
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<FullscreenVideo>
<keyboard>
<backspace>Stop</backspace>
</keyboard>
</FullscreenVideo>
</keymap>
EOF
adb push "${dir}/keymap.xml" "storage/sdcard0/Android/data/org.xbmc.kodi/files/.kodi/userdata/keymaps/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment