
Maybe you can find more there (possible I've already posted this, don't remember where...):
No
Code: Select all
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mtd_rwcommon/SamyGO/opt/privateer/usr/libso/libRCremap.so' resident: '1'
adding libc addr to found symaddress c81a0 + 42c2d000 42cf51a0
mprotect: 0x42cf51a0
dlopen: 0x41120a74
dlclose: 0x41120c74
dlsymaddr: 0x41120cd8
pc=42a64158 lr=42a67928 sp=beaac8e0 fp=beaac934
r0=fffffe00 r1=0
r2=1 r3=0
stack: 0xbea98000-0xbeaad000 length = 86016
executing injection code at 0xbeaac790
library injection completed!
Succeeded.
Code: Select all
# cat /dtv/RCremap.log
[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: '3' to 'KEY'
[RCremap] skipping invalid old key: '▒'
[RCremap] Trying to get _ZN9KeyCommon17SendKeyPressInputEiis on C.
[RCremap] Found _ZN9TDBuilder8GetTDiCPE16TDSourceObject_k location at: 0x002dd460
[RCremap] Found _fini location at: 0x01aacb24
[RCremap] text range: @0x0025d460 -> @0x0020d460
[RCremap] rodata range: @0x01aacb24 -> @0x0a2acb24
[RCremap] Found SendKeyPressInput at @0x0024546c
[RCremap] SendKeyPressInput address: 0x0024546c
[RCremap] _ZN9KeyCommon17SendKeyPressInputEiis address: 0x00245330
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x245330].
[RCremap] init done...
Code: Select all
# cat /mtd_rwcommon/SamyGO/opt/privateer/usr/libso/libRCremap.config
[
{
"KEY_RED": "KEY_RED"
},
{
"KEY_YELLOW": "CMD:/mtd_rwcommon/SamyGO/etc/init.d/02_10_wakelan.init.dis start && /mtd_rwcommon/SamyGO/etc/init.d/06_07_touch_my_ip.init restart"
}
]
Code: Select all
~.
Since system() calls /bin/sh -c, can be odd whether CMD is interpreted with quotes or not, so indeed better use intermediary script if more than one command. Otherwise looks you're below supposed 200 chars limit.so i have to create some kind of wrapper script that calls the other scripts?
Nope. SamyGO env is unknown to... exeDSP!will it work if i use : "CMD:$SYSROOT/etc/init.d/myscript.sh" ? (or $DISTROOT)