Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App is crashing in Android 13 , getting issue Injecting input events ,in line no. MultiSpinnerSearch.java:185 #109

Open
DevTheKing opened this issue Apr 26, 2023 · 5 comments

Comments

@DevTheKing
Copy link

Fatal Exception: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3040)
at android.os.Parcel.createException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:3007)
at android.os.Parcel.readException(Parcel.java:2949)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1294)
at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1151)
at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1180)
at android.app.Instrumentation.sendKeySync(Instrumentation.java:1135)
at android.app.Instrumentation.sendKeyDownUpSync(Instrumentation.java:1147)
at com.androidbuts.multispinnerfilter.MultiSpinnerSearch.lambda$onCancel$0(MultiSpinnerSearch.java:185)
at com.androidbuts.multispinnerfilter.-$$Lambda$MultiSpinnerSearch$p9xhRiNPdc-qw9SrA8LUwZsjeq0.run()
at java.lang.Thread.run(Thread.java:1012)

@MahmoudMagdyEllawatty
Copy link

same issue here.
do you find any solution?

@DevTheKing
Copy link
Author

DevTheKing commented May 8, 2023

@MahmoudMagdyEllawatty I downloaded the library and added it manually in my projects and given following permission in my AndroidManifest.xml file
<uses-permission android:name="android.permission.INJECT_EVENTS"/>
It fixed the problem

@Bahul045
Copy link

Bahul045 commented Aug 7, 2023

I have facing same issue, it crash in android 13

@AnshukumarAk
Copy link

@MahmoudMagdyEllawatty I downloaded the library and added it manually in my projects and given following permission in my AndroidManifest.xml file <uses-permission android:name="android.permission.INJECT_EVENTS"/> It fixed the problem

not fix issue

@monossido
Copy link

Not fixed!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants