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

Permission denied - when replaying touch events #23

Open
usamaabrar22 opened this issue Jan 29, 2020 · 8 comments
Open

Permission denied - when replaying touch events #23

usamaabrar22 opened this issue Jan 29, 2020 · 8 comments

Comments

@usamaabrar22
Copy link

Hi,
I've tried this code and was able to record touch events on my Android 8.0 (without root).
However, executing the replay_touch_events.sh file do pushes the file to phone but doesn't execute it on phone. It gives error "Permission denied".
I have checked this on Genymotion emulator as well, and the progress and error is same.

I have carefully checked this problem mentioned in other similar "Issues" section of this repo. but apparently no solution mentioned there solved my problem.

This error is weird because adb shell input tap x y works fine.
Can you help me on this issue? I want to know how to handle this "Permission Denied" error.

@Cartucho
Copy link
Owner

Cartucho commented Mar 26, 2020

@usamaabrar22 could you try using the executable for 64 bit? Could you also show a PrintScreen of the error message?

@saket
Copy link

saket commented Aug 26, 2020

I'm seeing a similar error when trying to run replay_touch_events.sh on my Pixel:

Looking for touchscreen device...
/dev/input/event3
/dev/input/event2
Touchscreen device found! -> /dev/input/event2
---/data/local/tmp/mysendevent-arm64---
recorded_touch_events.txt: 1 file pushed, 0 skipped. 50.5 MB/s (27010 bytes in 0.001s)
could not open /dev/input/event2, Permission denied

Changing permissions using chmod seems to have no effect

adb shell chmod +x /data/local/tmp/mysendevent-arm64

@tzvc
Copy link

tzvc commented Nov 15, 2020

@saket how did you end up solving the issue, I have the same issue on my pixel 4

@saket
Copy link

saket commented Nov 15, 2020

@theochampion I unfortunately couldn't

@breezewish
Copy link

I believe it is due to a new security policy. See openstf/minitouch#49

@tzwasd tzwasd mentioned this issue Jan 18, 2022
@tzwasd
Copy link

tzwasd commented Jan 18, 2022

Workaround:
If you have a rooted device, you can insert su -c in adb shell command like this to run binaries with root privileges.

@hakman-dev
Copy link

Workaround: If you have a rooted device, you can insert su -c in adb shell command like this to run binaries with root privileges.

su -c has 0 effect sadly.

@lqforgithub
Copy link

Workaround: If you have a rooted device, you can insert su -c in adb shell command like this to run binaries with root privileges.

It works on my phone.

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

8 participants