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: permission denied (recompiled) + request for 64-bit support #19

Open akivura opened 4 years ago

akivura commented 4 years ago

I have a Samsung Galaxy Note 8 (Exynos 8895), Android 9. When I use the mysendevent from the project it gives an error: /system/bin/sh: /data/local/tmp/mysendevent: not executable: 64-bit ELF file Then someone refers me a version compiled for 64-bit, and when I tried, it says /system/bin/sh: /data/local/tmp/mysendevent: can't execute: Permission denied. I don't know if I need to give further information. Thanks.

Cartucho commented 4 years ago

Can you try to make the file from this repo executable? instructions

You can do it by running the command: chmod +x mysendevent

or

image

akivura commented 4 years ago

The file from this repo is already executable when I download it, so chmod doesn't change the situation, and I got that first error again. However, when I made the file (https://drive.google.com/file/d/1eEWnOwWX8Dr1XFEKQeut9y1QT9fdJbDm/view) by https://www.reddit.com/user/Nova_Kin/ executable by using chmod, it worked well on my device. He said in a comment that the file from this repo is for 32-bit and it needs to be recompiled for 64-bit. That's where my knowledge ends. Thanks.

teriblus commented 4 years ago

I had the same issue and @akivura answered worked for me. Thanks

Cartucho commented 4 years ago

Ohh ok, it needs to be recompiled for 64 bit then.

Could you please have a look at this answer: https://github.com/Cartucho/android-touch-record-replay/issues/18

Cartucho commented 4 years ago

@akivura could you give it a try with the new executable mysendevent-arm64 that we added to the repo.

Cartucho commented 4 years ago

@akivura @teriblus Could one of you please update the repo and give it a try with the mysendevent-arm64 file? so that people in the future do not run into the same issue as you did (:

AMerkuri commented 4 years ago
adb.exe shell data/local/tmp/mysendevent-arm64 /dev/input/event4 /sdcard/getevent_input.txt
/system/bin/sh: data/local/tmp/mysendevent-arm64: not executable: 64-bit ELF file

Tried on Nox emulator Android 5 and 7.

Cartucho commented 4 years ago

@AMerkuri thank you for the info, it didn't work on the Emulator?

AMerkuri commented 4 years ago

@AMerkuri thank you for the info, it didn't work on the Emulator?

Yes on NoxPlayer.

kajeagentspi commented 4 years ago

Ohh ok, it needs to be recompiled for 64 bit then.

Could you please have a look at this answer:

18

I compiled mysendevent using this method. You need to delete the mysendevent binary in /data/local/tmp/ otherwise it would just run the old version.

HippyS commented 3 years ago

Ohh ok, it needs to be recompiled for 64 bit then. Could you please have a look at this answer:

18

I compiled mysendevent using this method. You need to delete the mysendevent binary in /data/local/tmp/ otherwise it would just run the old version.

Hi, can you please share the recompiled file for " x86,armeabi-v7a,armeabi". Thank you in advance.