2021/12/10 02:48
4/7
Mecool KM9 (AndroidTV 9) with Kodi and Netflix
Bernard's Wiki - https://wiki.condrau.com/
Button Mapper Setup
To improve usability and user experience of the system remap some of the keys of the Logitech
Harmony Remote and the Logitech Keyboard. Note that the Mi Box S bluetooth remote is compatible
with the NVIDIA Shield remote, which we will use when setting up the Harmony Remote.
After installing the app enable USB debugging in Settings –> Device Preferences –> Developer
1.
options and select Revoke USB debugging authorizations
Open Button Mapper App on your device and select + Add Buttons. Press any button, for
2.
example the keyboard “F10” key we will remap later, and select the added key with the remote.
Now select Customize and try to assign an Action or an Advanced command. Button Mapper will
now take you through downloading a setup program for Windows or Mac. This setup program
also includes adb.exe, which can be used to enable the necessary permissions on the device.
You can enable the permissions with a USB connection:
3.
connect the Box with a USB-A to USB-A cable to your computer
1.
confirm the connection to the computer on the device
2.
run “ButtonMapperSetup.exe” on your computer and check the textbox to make sure the
3.
device is connected
click “Grant WRITE_SECURE_SETTINGS permission” and Exit
4.
If the USB connection does not work, or if the box is not near your computer, run the commands
4.
manually:
make sure the Box is connected to the same network as your computer
1.
open a shell (Command Prompt) on your computer and change to the “tools” folder inside
2.
“ButtonMapperSetup” install folder
enter the following commands within the shell
3.
tools\adb connect <IP address>
adb shell pm grant flar2.homebutton
android.permission.WRITE_SECURE_SETTINGS
adb disconnect
exit
you might need to confirm the connection to the computer on the device after the adb
4.
connect command
you might get an error message “error: more than one device/emulator” if an Android
5.
emulator such as BlueStacks is installed on your computer
either terminate the emulator (or other device), or issue the following commands to list
6.
the devices connected and find and specify the model number in the shell command
adb connect <IP address>
adb devices -l
adb -s model:MIBOX4 shell pm grant flar2.homebutton
android.permission.WRITE_SECURE_SETTINGS
adb disconnect
exit
The Box does not need to be rooted, but you will need the Pro version of the app which costs $2
5.
in the app store.
Firefox TV is supported on Fire TV only, but runs without problems on Android TV 9. It requires a
6.
“menu” key to pin websites (bookmarks), which is not available on the external keyboard. Map
the “menu” key (keycode: 82) to the “Logitech K400+ F10” key. This allows to invoke “menu”