Cartucho / android-touch-record-replay

How to record and replay touchscreen events on an Android device.
Apache License 2.0
229 stars 49 forks source link

mysendevent: No such file or directory #24

Open andreaugo opened 4 years ago

andreaugo commented 4 years ago

Hi, I've tried this code and I was able to record touch events on my emulator with Android 9.0 and x86 CPU/ABI. However, executing the replay_touch_events.sh script give me this output:

mysendevent: 1 file pushed. 4.9 MB/s (13608 bytes in 0.003s)
recorded_touch_events.txt: 1 file pushed. 4.6 MB/s (15281 bytes in 0.003s)
/system/bin/sh: /data/local/tmp/mysendevent: No such file or directory

As you can see, even if it pushes mysendevent in /data/local/tmp/ correctly, the script can't find mysendevent when it have to execute it.

I'm sure about the success of the push because of the output of adb shell ls -ls /data/local/tmp

16 -rwxrwxrwx 1 shell shell 13608 2020-03-26 08:10 mysendevent

I hope you can help me out, thanks.

FrankThonig commented 4 years ago

@Cartucho your program is great. thanks a lot for sharing.

i am running it with an android studio emulator, x86, 32 bit. i needed to compile the mysendevent.c with the following compiler properties:

compiled on linux (debian): gcc -static -m32 mysendevent.c -o mysendevent

i've uploaded the file (added the properties to the file name for distinction): https://drive.google.com/file/d/1DSBZxwo8vr4hXMV0-1mfWm-wKahV4GgP