BPI-M3 support IR interface on board. you can use it as remote control.
$ sudo insmod /lib/modules/3.4.39-BPI-M3-Kernel/kernel/drivers/input/keyboard/sunxi-ir-rx.ko
$ cd /sys/module/sunxi_ir_rx/parameters
$ sudo su
$ echo 0xff > debug_mask
[ 2797.200733] dcnt = 70
[ 2797.200753] 351 active_delay = 128
[ 2797.200772] 366 len = 153
[ 2797.200795] IR code = 0x609ff708
[ 2797.200821] IR RAW CODE : 159
[ 2797.200903] IR CODE : 159
[ 2797.201020] IR KEY VALE 159
[ 2797.201047] ir_rx_irq_service: Rx Packet End, code=0x609ff708, ir_code=0x609
how to do check IR address on Android.
echo 0xff > /sys/module/sunxi_ir_rx/parameters
<7>[ 625.998452] IR code = 0xf20d4040
<7>[ 625.998473] IR RAW CODE : 13
<7>[ 625.998542] IR CODE : 13
<7>[ 625.998629] IR KEY VALE 13
<7>[ 625.998653] ir_rx_irq_service: Rx Packet End, code=0xf20d4040, ir_code=0x
<6>[ 625.998717] cpus_wakeup_config_handler: address: 0x4040, powerkey: 0x0a
<6>[ 626.002717] cpus_wakeup_config_handler: ok