mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 18:15:54 +03:00
[GH-ISSUE #221] Crash on first run with pocophone #644
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#644
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @M3sca on GitHub (Dec 21, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/221
[12/21 21:38:04] Open Instagram app
[12/21 21:38:14] Sleep for 1.90 seconds
[12/21 21:38:16] Press profile
Caught an exception:
-32001 Jsonrpc error: <java.lang.SecurityException> data: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
at android.os.Parcel.createException(Parcel.java:2074)
at android.os.Parcel.readException(Parcel.java:2042)
at android.os.Parcel.readException(Parcel.java:1990)
at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:471)
at android.app.UiAutomation.injectInputEvent(UiAutomation.java:597)
at com.github.uiautomator.stub.TouchController.injectEventSync(TouchController.java:38)
at com.github.uiautomator.stub.TouchController.touchDown(TouchController.java:47)
at com.github.uiautomator.stub.AutomatorServiceImpl.click(AutomatorServiceImpl.java:206)
at java.lang.reflect.Method.invoke(Native Method)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)
at com.github.uiautomator.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:100)
at fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)
at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
at java.lang.Thread.run(Thread.java:919)
, method: click
Traceback (most recent call last):
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\device_facade.py", line 179, in click
self.viewV2.click(UI_TIMEOUT_LONG)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_selector.py", line 155, in click
self.session.click(x, y)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init_.py", line 996, in click
self.jsonrpc.click(x, y)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init_.py", line 436, in call
http_timeout)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init_.py", line 442, in _jsonrpc_retry_call
return self.jsonrpc_call(*args, **kwargs)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\uiautomator2_init.py", line 514, in _jsonrpc_call
raise err
uiautomator2.exceptions.JSONRPCError: -32001 Jsonrpc error: <java.lang.SecurityException> data: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
at android.os.Parcel.createException(Parcel.java:2074)
at android.os.Parcel.readException(Parcel.java:2042)
at android.os.Parcel.readException(Parcel.java:1990)
at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:471)
at android.app.UiAutomation.injectInputEvent(UiAutomation.java:597)
at com.github.uiautomator.stub.TouchController.injectEventSync(TouchController.java:38)
at com.github.uiautomator.stub.TouchController.touchDown(TouchController.java:47)
at com.github.uiautomator.stub.AutomatorServiceImpl.click(AutomatorServiceImpl.java:206)
at java.lang.reflect.Method.invoke(Native Method)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)
at com.github.uiautomator.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:100)
at fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)
at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
at java.lang.Thread.run(Thread.java:919)
, method: click
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\session.py", line 149, in run
self.start_session(args, device_wrapper, app_version)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\session.py", line 100, in start_session
self.session_state.my_following_count = get_my_profile_info(device_wrapper.get())
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\action_get_my_profile_info.py", line 12, in get_my_profile_info
navigate(device, Tabs.PROFILE)
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\navigation.py", line 23, in navigate
button.click()
File "C:\Users\andre\AppData\Local\Programs\Python\Python37\lib\site-packages\insomniac\device_facade.py", line 181, in click
raise DeviceFacade.JsonRpcError(e)
insomniac.device_facade.DeviceFacade.JsonRpcError: -32001 Jsonrpc error: <java.lang.SecurityException> data: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
at android.os.Parcel.createException(Parcel.java:2074)
at android.os.Parcel.readException(Parcel.java:2042)
at android.os.Parcel.readException(Parcel.java:1990)
at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:471)
at android.app.UiAutomation.injectInputEvent(UiAutomation.java:597)
at com.github.uiautomator.stub.TouchController.injectEventSync(TouchController.java:38)
at com.github.uiautomator.stub.TouchController.touchDown(TouchController.java:47)
at com.github.uiautomator.stub.AutomatorServiceImpl.click(AutomatorServiceImpl.java:206)
at java.lang.reflect.Method.invoke(Native Method)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)
at com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)
at com.github.uiautomator.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:100)
at fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)
at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
at java.lang.Thread.run(Thread.java:919)
, method: click