1. Welcome to the official forum for MINIX devices!

[SOLVED] Can you remap the "Homepage" "Tabs" and "Main Menu" buttons to use in Kodi?

Discussion in 'NEO A2' started by WonkyDub, Apr 26, 2016.

  1. WonkyDub

    WonkyDub New Member

    I have the Neo x8-h box and the Neo A2 remote. I'm wondering if it is possible to disable the android function buttons on the remote so I can remap them into Kodi. I could just drag the cursor up from the bottom of the screen to access them controls. Therefore having more buttons to map inside Kodi. Is there a file to replace in sys/usr/keylayout/ or something?
  2. WonkyDub

    WonkyDub New Member

    I have worked out how to do it! =)

    Should I post how I done it in a new thread?
  3. Villa

    Villa Administrator Administrator

    You can share here. No need to start a new thread!
  4. WonkyDub

    WonkyDub New Member

    oh that's great, I've just spent ages getting it all together and I cant post links because I don't have any likes on my profile... If you throw me a like I can post it I think.
    swamprat96 likes this.
  5. WonkyDub

    WonkyDub New Member

    YOUR DEVICE NEED TO BE ROOTED!
    IF YOU ARE GOING TO DO THIS, IT IS AT YOUR OWN RISK!
    THIS WILL REMOVE AL THE ANDROID FUNCTIONS OF THE REMOTE!
    BUT ON MINIX BOXES YOU CAN CLICK AND DRAG FROM THE BOTTOM OF THE SCREEN TO ACCESS ALL THE BUTTONS THAT ARE ON THE REMOTE ANYWAY.

    This image shows what keys the buttons have be been remapped to.
    http://imgur.com/waO13yU

    I only use this this for a box where I only use Kodi this setup may not work if you want to use other apps
    I've only tested this on Kodi and it works for my needs!

    Firstly you need to be rooted to be able to do this.

    Below is the original file I changed
    NEO A2 .kl file:
    http://minix.com.hk/downfile/Vendor_0c40_Product_7a18.kl
    create a back up of this file just in case something goes wrong you can replace it afterwards

    copy and paste the code below to the original file overwriting everything and save it to a USB. KEEP THE FILE NAME THE SAME!

    Code:
    # Copyright (C) 2010 The Android Open Source Project
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #      http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    #
    # Apple Wireless Keyboard
    #
    # Notes:
    # - Keys such as PAGE_UP and FORWARD_DEL are produced using the
    #   function key.
    # - Special function keys for brightness control, etc. are not
    #   implemented here.
    
    key 1     ESCAPE
    key 2     1
    key 3     2
    key 4     3
    key 5     4
    key 6     5
    key 7     6
    key 8     7
    key 9     8
    key 10    9
    key 11    0
    key 12    MINUS
    key 13    EQUALS
    key 14    DEL
    key 15    TAB
    key 16    Q
    key 17    W
    key 18    E
    key 19    R
    key 20    T
    key 21    Y
    key 22    U
    key 23    I
    key 24    O
    key 25    P
    key 26    LEFT_BRACKET
    key 27    RIGHT_BRACKET
    # key 28    ENTER
    key 29    CTRL_LEFT
    key 30    A
    key 31    S
    key 32    D
    key 33    F
    key 34    G
    key 35    H
    key 36    J
    key 37    K
    key 38    L
    key 39    SEMICOLON
    key 40    APOSTROPHE
    key 41    GRAVE
    key 42    SHIFT_LEFT
    key 43    BACKSLASH
    key 44    Z
    key 45    X
    key 46    C
    key 47    V
    key 48    B
    key 49    N
    key 50    M
    key 51    COMMA
    key 52    PERIOD
    key 53    SLASH
    key 54    SHIFT_RIGHT
    key 56    ALT_LEFT
    key 57    SPACE
    key 58    CAPS_LOCK
    # key 59    F1
    # key 60    F2
    key 61    F3
    key 62    F4
    key 63    F5
    key 64    F6
    key 65    F7
    key 66    F8
    key 67    F9
    key 68    F10
    key 87    F11
    key 88    F12
    key 100   ALT_RIGHT
    # key 102   MOVE_HOME
    key 103   DPAD_UP
    key 104   PAGE_UP
    key 105   DPAD_LEFT
    key 106   DPAD_RIGHT
    key 107   MOVE_END
    key 108   DPAD_DOWN
    key 109   PAGE_DOWN
    key 110   NUMPAD_ENTER
    key 111   FORWARD_DEL
    key 113   F8
    key 114   F9
    key 115   F10
    key 120   APP_SWITCH
    key 125   META_LEFT
    key 126   META_RIGHT
    key 161   MEDIA_EJECT
    key 163   F6
    key 164   MEDIA_PLAY_PAUSE
    key 165   F5
    # key 204  show gadgets
    # key 224  reduce brightness
    # key 225  increase brightness
    # key 229  blank special function on F5
    # key 230  blank special function on F6
    key 464   FUNCTION
    # add by nition
    key 116   F3
    key 183   F3
    key 102   F4
    key 172   F4
    key 60    F7
    key 28    ENTER
    key 59    F11
    key 240   F12
    key 166   MUSIC
    key 155   ENVELOPE
    on your box download https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree&hl=en_GB

    insert the usb and navigate to the file using the root browser

    Click and hold on the file and copy it

    Navigate to system/usr/keylayout

    Paste the file there and overwrite the old version.

    Restart your box

    WHAT IS CHANGED



    If you want to keep certain buttons as default find the key code of the modded file and copy the original line of text from the original file (they are all after line 82)

    I apologise if this tutorial is a bit all over the place it's my first time doing something like this.
    Last edited: Apr 27, 2016
  6. WonkyDub

    WonkyDub New Member

    Ha, that was the first thing I typed when typing it out must of deleted to put the warning at the top without realising.... Fixed
    Thanks
  7. Villa

    Villa Administrator Administrator

    Doesn't matter I just saw that you that you had added it (I think?) Thought maybe I had misread so deleted my post!
  8. WonkyDub

    WonkyDub New Member

    Yeah turns out I had typed it out but I've added it to the top in caps so people know as soon as they start reading. I also added [SOLVED] to the title
  9. Villa

    Villa Administrator Administrator

    You don't necessarily need Root Browser app. You can use ES File Explorer!
  10. WonkyDub

    WonkyDub New Member

    I usually use 'File Manager HD' I prefer the layout when changing things in Kodi, that wouldn't let me copy files over so I assumed ES File Explorer would be the same.
  11. ozmatox

    ozmatox New Member

    Hi, who knows what number has the button? and is there any exact instructions for the buttons and their numbers?

    Attached Files: