Not very hard to program any IR remote button on key.xml if you are familiar with adb shell command.
Next tutorial can apply to any Hi3798CV100/Hi3798CV200 base f/w.
Start with step 2 if you have old Q5/Q10 4K3D Hi3798CV100 box
Step 1 -> Stop IR code to be read by Android event
adb connect <ip_player>
adb remount
adb shell "mv /system/bin/android_ir_user /system/bin/android_ir_user.orig"
adb shell "kill `ps | grep ir_user | busybox cut -d ' ' -f7`"
Step 2 -> Get IR code send by Remote for wanted button like power
adb connect <ip_player>
adb remount
adb shell <ENTER>
ir_user
Press wanted button like power, on adb window will get something like that
Create ir sample thread, press q to exit!
Received key: 0xb24d4040, DOWN, protocol: nec simple uPD6121G like.
Received key: 0xb24d4040, UP, protocol: nec simple uPD6121G like.
After press all want IR button and note codes, press q to and <ENTER>exit and <CTRL+C> to exit from adb shell
q
q
Ir sample thread exit! Bye!
root@Hi3798CV200:/ # ^C
Step 3 -> Restore IR code to be read by Android event
adb shell "mv /system/bin/android_ir_user.orig /system/bin/android_ir_user"
adb shell <ENTER>
/system/bin/android_ir_user&
<ENTER>
<CTRL+C>
Step 4 -> Pull key.xml
adb pull /system/etc/key.xml
Step 5 -> add / replace wanted key action in <other-key> ex power for 0xb24d4040
<other-key>
<key value="0xb24d4040" name="KEY_POWER" /> <!--Egreat R1 key power-->
<key value="0xe8171980" name="KEY_UP" /> <!--key up-->
<key value="0xe9161980" name="KEY_DOWN" /> <!--key down-->
Step 6 -> Push modified key.xml to box
adb push key.xml /system/etc/key.xml
adb shell chmod 644 /system/etc/key.xml
Step 7 -> Reboot and enjoy new IR action
adb reboot
Note some limitation:
- number of key read from key.xml are limited, add o small number or remove some with not need like hisi-key
- added power button can't start box first time after power supply connected
- some IR remote like Samsung TV sent twice all key, not usefully for real usage
- this step are provide at is, not warranty,
not support on forum, send
private message.
Please don't spam forum this tutorial is for specific request of advanced user using they IR remote / Air mouse.
Risk IR remote can stop to work at all, and request reinstall f/w so backup, backup, backup you data before try.
Use at your own risk