1

Crash:

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

Command:

adb shell monkey -p  PACKAGE_NAME -v -v --throttle 300
--pct-touch 40 --pct-motion 35 --pct-nav 0 --pct-majornav 0 --pct-appswitch 5 --pct-anyevent 5 --pct-trackball 0 --pct-syskeys 5 --pct-pinchzoom 5  --bugreport 100000

Any Ideas how to overcome this?

Murmel
  • 4,805
  • 41
  • 50
Rumour
  • 230
  • 2
  • 18

1 Answers1

7

After enabling Usb Debugging Under Developer Options .Please Enable USB Debbugging(Security settings) under developer options itself.

This worked for me !!

Rumour
  • 230
  • 2
  • 18
  • 2
    Yes, this setting for allowing input to applications is a bit lower in options then USB Debugging, For my Xiaomi phone it required Xiaomi account registration and 3 times confirmation. – Dzenly Dec 05 '20 at 06:10