
What does say libRCremap log? (/dtv/RCremap.log)
Code: Select all
[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: 'KEY_GREEN' to 'KEY_GREEN'
[RCremap] mapping key: 'KEY_RED' to command: 'samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libScreenShot.so ALT SOURCE PATH:/dtv/usb/sdb1/__screenshots'
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x9f2684].
[RCremap] init done...
Code: Select all
# samyGOso -d -T -B -r -l /mnt/opt/privateer/usr/libso/libRCremap.so
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libRCremap.so' resident: '1'
mprotect: 0x4227c020
dlopen: 0x424a0d80
dlclose: 0x424a0e14
dlsymaddr: 0x424a0e78
pc=42324eec lr=42324ed0 sp=be101de0 fp=3293a40
r0=3293a44 r1=80
r2=1 r3=0
stack: 0xbe0e2000-0xbe102000 length = 131072
executing injection code at 0xbe101ca0
library injection completed!
Succeeded.
Code: Select all
# cat /dtv/RCremap.log
[RCremap] SamyGO RCremap v0.3.5c log - (c) bugficks 2013, small fixes by sectroyer 2014, smaller fixes by zoelechat 2015
[RCremap] mapping key: 'KEY_VOLDOWN' to 'KEY_VOLDOWN'
[RCremap] mapping key: 'KEY_VOLUP' to command: '/mnt/opt/privateer/usb/bin/test'
[RCremap] 1 _ZN12KeyInputBase17t_ProcessKeyValueEPh [0x9f55dc].
[RCremap] init done...
[RCremap] ProcessKeyValue [KEY_VOLUP=7] [remote: 0]
[RCremap] -> Running command: [/mnt/opt/privateer/usb/bin/test]
Code: Select all
# cat /mnt/opt/privateer/usr/bin/test
#!/bin/sh
echo test > /tmp/test.txt
[ $(pidof ${0##*/}) ] 2>/dev/null || exit 0
PATCHDIR=${0%/*}
PID_EXE=$(pidof exeDSP || pidof exeTV)
$PATCHDIR/samyGOrc -p $PID_EXE 107 108 # CH_LIST, RED
sleep 1
$PATCHDIR/samyGOrc -p $PID_EXE 97 104 # DOWN, ENTER
sleep 3
$PATCHDIR/samyGOrc -p $PID_EXE 45 45 # EXIT, EXIT
Code: Select all
# cat /mnt/opt/privateer/usr/libso/libRCremap.config
[
{
"KEY_VOLDOWN": "KEY_VOLDOWN"
},
{
"KEY_VOLUP": "CMD:/mnt/opt/privateer/usb/bin/test"
}
]
Code: Select all
# /mnt/opt/privateer/usr/bin/test
samyGOrc v1.0 (c) bugficks 2013
samyGOrc v1.0 (c) bugficks 2013
samyGOrc v1.0 (c) bugficks 2013