Android Mapping keys on Android TV remote for KODI Key Map Editor plugin
#1
Question 
Hi,
I have Xiaomi TV Box S and I managed to bind they NETFLIX button to STOP command using app called Button Mapper. It works with all native Media commands but I cannot simulate custom command that KODI will understand, for example bind key to invoke Subtitle download window.
Does anyone worked with app Button Mapper so it will simulate standard TV remote commands or mimic keyboard key press? Or any other way someone can think of would be much appreciated.

There are options in Button Mapper called "Shell commands" and "Broadcast intent" but have no idea how to use this.
I tried adding Quit (according to https://xbmc.github.io/docs.kodi.tv/mast...tions.html) in the Shell Command but it just returns toybox: Unknown command Quit

Any is much appreciated!
Thanks!
Reply
#2
(2024-03-23, 14:18)skullmonkey Wrote: There are options in Button Mapper called "Shell commands"

I tried adding Quit

On my Android TV with bluetooth remote I close Kodi by using an xml file in keymaps/

Try kodi_remote.xml with contents:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
  <global>
     <keyboard>
      <menu>ActivateWindow(home)</menu>
      <red>PowerDown</red>
      <one>FullScreen</one>
      <eight>lastpage</eight>
      <five>select</five>
      <three>ContextMenu</three>
      <zero>ActivateWindow(Favourites)</zero>
     </keyboard>
  </global>

Replace keyboard by remote in case you have an infrared remote control or using CEC.

Now you can press the red teletext button to close Kodi. It will not power off the television.
Reply
#3
(2024-04-02, 16:46)Johpin Wrote:
(2024-03-23, 14:18)skullmonkey Wrote: There are options in Button Mapper called "Shell commands"

I tried adding Quit

On my Android TV with bluetooth remote I close Kodi by using an xml file in keymaps/

Try kodi_remote.xml with contents:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
  <global>
     <keyboard>
      <menu>ActivateWindow(home)</menu>
      <red>PowerDown</red>
      <one>FullScreen</one>
      <eight>lastpage</eight>
      <five>select</five>
      <three>ContextMenu</three>
      <zero>ActivateWindow(Favourites)</zero>
     </keyboard>
  </global>

Replace keyboard by remote in case you have an infrared remote control or using CEC.

Now you can press the red teletext button to close Kodi. It will not power off the television.

This is not what I need.
Reply

Logout Mark Read Team Forum Stats Members Help
Mapping keys on Android TV remote for KODI Key Map Editor plugin0