Kodi Community Forum

Full Version: Android TV Remote Control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just tried the Android TV Remote Control app in Kodi which does not recognize the Back button as Back action. Here is what is being logged when pressing the Back button:

Code:
11:33:20.129 T:18446744072362376080   DEBUG: CAndroidJoystickState::ProcessEvent(type = key, keycode = 4, action = 0): pressed
11:33:20.129 T:18446744072362376080   DEBUG: CAndroidJoystickState: setting value for button [4 | 109] to 1
11:33:20.135 T:18446744072034360208   DEBUG: Button [ 4 ] on virtual-remote pressed
11:33:20.135 T:18446744072034360208   DEBUG: Empty button map detected for game.controller.default

So I mapped the key in Settings > System Settings > Input > Configure attached controllers. I assigned the Back button of the Android TV Remote Control to the Back action in the Kodi controller profile. This seems to have done the trick. Log now looks like this:

Code:
11:51:54.577 T:18446744072360295312   DEBUG: Keyboard: scancode: 0x04, sym: 0x0008, unicode: 0x0000, modifier: 0x0
11:51:54.587 T:18446744072362376080 WARNING: CPeripheralBusAndroid: ignoring input event for unknown input device with ID 1789
11:51:54.596 T:18446744072360295312   DEBUG: OnKey: backspace (0xf008) pressed, action is Back

The other buttons (D-pad and OK) seem to work by default.
I also find this problem but don't find a solution (Just switching from android tv remote to Koi remote).

The problem comes from the informations of the Android remote app (Official or Non-official, it's the same)

I'll try this tonight Smile
It does not work 100% as expected...

When I connect the app to the TV, then start Kodi with it, the Back button works as expected. But when I now reconnect the app on my iPhone to the TV (close and reopen), the Back button action is suddenly different. Here is an example (+log):

(1) start Kodi
(2) start playback of a live TV channel
(3) Back - opens to main menu
(4) Back - to video fullscreen again
(5) reconnect Android TV Remote Control app
(6) Back - should open main menu again - opens event information instead

Log

When I reconnect the Android TV Remote Control app to the TV, I have to restart Kodi to get the Back button working properly again.
this app is broken even outside kodi.