Espresso throws error when clicking on fullscreen view with Samsuns Galaxy S3

By : HowieH

I try to click on a fullscreen view with espresso, like this:


But gets this error:

Error performing 'Send down montion event' on view 'unknown'


Caused by: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

When I run the test on other devices, such as Nexus 6 and S4, the test runs fine, but on Samsung Galaxy S3 it throws this exception.

By : HowieH

This video can help you solving your question :)
By: admin