rom

Android INJECT_EVENTS permission

≯℡__Kan透↙ 提交于 2019-11-26 01:58:18
问题 I am trying to create an application that will have a service running in the background that will be capable of injecting touch screen events into whatever activity is running. I am able to inject events into an Activity that is part of my application by calling Instrumentation.sendPointerSync(motionEvent); However if I try to do this without an activity from my application running I get a permission error saying that I don\'t have the INJECT_EVENTS permission. I\'ve added this permission to