Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysendevent: No such file or directory #24

Open
andreaugo opened this issue Apr 23, 2020 · 1 comment
Open

mysendevent: No such file or directory #24

andreaugo opened this issue Apr 23, 2020 · 1 comment

Comments

@andreaugo
Copy link

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
Copy link

FrankThonig commented Jul 4, 2020

@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:

  • linux -> to create an ELF
  • x86 -> x86 emulator
  • 32 bit -> 32 bit emulator
  • static -> so there are no dependcies (causing "no such file or directory" error)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants