Skip to content

Instantly share code, notes, and snippets.

@codeguru42
Last active January 1, 2016 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeguru42/8212496 to your computer and use it in GitHub Desktop.
Save codeguru42/8212496 to your computer and use it in GitHub Desktop.
Error message for `testAddMultipleCards()`
java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEvent(IInputManager.java:356)
at android.hardware.input.InputManager.injectInputEvent(InputManager.java:619)
at android.app.Instrumentation.sendKeySync(Instrumentation.java:886)
at android.app.Instrumentation.sendStringSync(Instrumentation.java:848)
at bbct.android.common.test.BBCTTestUtil.sendKeysToCurrFieldCardDetails(BBCTTestUtil.java:296)
at bbct.android.common.test.BBCTTestUtil.sendKeysToCardDetails(BBCTTestUtil.java:225)
at bbct.android.common.test.BBCTTestUtil.sendKeysToCardDetails(BBCTTestUtil.java:204)
at bbct.android.common.test.BBCTTestUtil.addCard(BBCTTestUtil.java:137)
at bbct.android.common.activity.test.BaseballCardDetailsAddCardsTest.testAddMultipleCards(BaseballCardDetailsAddCardsTest.java:107)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment