Action 'press_key' unsuccessful: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission (RuntimeError)

199 views
Skip to first unread message

Brad Thompson

unread,
Mar 31, 2015, 12:18:35 PM3/31/15
to calabash...@googlegroups.com
Hey everyone,

My tests have been running fine for a long time but recently when running from Jenkins machine I get the following error:

Action 'press_key' unsuccessful: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission (RuntimeError)

I believe this error is occurring on the following line:

press_back_button

Is this a timing issue where app is not loaded possibly and it trying to press android back button before app is ready or something?  The odd thing is this has been running fine for a few months so strange....

Additional Information:

- When I run these tests locally they work without issue.
- calabash-android (0.5.5)
- I have tried on a number of phones they all have the same issue.


Thanks in advance,

Brad

Reply all
Reply to author
Forward
0 new messages