任务运行中按Ctrl+C可以停止
请输入你的选择 (0-5): 1
正在加载淘金币任务脚本 完成!
2026-05-30:11:48:33 INFO [taobao.py:108] 开始运行...
2026-05-30:11:48:33 INFO [taobao.py:113] 首先关闭音量
❌ 发生错误: ('Unknown RPC error: -32001 java.lang.SecurityException', ('volume_down',), 'java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.\n\tat android.os.Parcel.createExceptionOrNull(Parcel.java:3361)\n\tat android.os.Parcel.createException(Parcel.java:3345)\n\tat android.os.Parcel.readException(Parcel.java:3328)\n\tat android.os.Parcel.readException(Parcel.java:3270)\n\tat android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1812)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1698)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1708)\n\tat android.app.UiAutomationConnection.injectInputEvent(UiAutomationConnection.java:164)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:997)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:964)\n\tat androidx.test.uiautomator.InteractionController.injectEventSync(InteractionController.java:494)\n\tat androidx.test.uiautomator.InteractionController.sendKeys(InteractionController.java:436)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCodes(UiDevice.java:515)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:478)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:466)\n\tat com.wetest.uia2.stub.AutomatorServiceImpl.pressKey(AutomatorServiceImpl.java:534)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)\n\tat com.wetest.uia2.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:101)\n\tat fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)\n\tat fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)\n\tat fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)\n\tat java.lang.Thread.run(Thread.java:1119)\nCaused by: android.os.RemoteException: Remote stack trace:\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1103)\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1089)\n\tat android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:846)\n\tat android.os.Binder.execTransactInternal(Binder.java:1428)\n\tat android.os.Binder.execTransact(Binder.java:1372)\n\n')
('Unknown RPC error: -32001 java.lang.SecurityException', ('volume_down',), 'java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.\n\tat android.os.Parcel.createExceptionOrNull(Parcel.java:3361)\n\tat android.os.Parcel.createException(Parcel.java:3345)\n\tat android.os.Parcel.readException(Parcel.java:3328)\n\tat android.os.Parcel.readException(Parcel.java:3270)\n\tat android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1812)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1698)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1708)\n\tat android.app.UiAutomationConnection.injectInputEvent(UiAutomationConnection.java:164)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:997)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:964)\n\tat androidx.test.uiautomator.InteractionController.injectEventSync(InteractionController.java:494)\n\tat androidx.test.uiautomator.InteractionController.sendKeys(InteractionController.java:436)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCodes(UiDevice.java:515)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:478)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:466)\n\tat com.wetest.uia2.stub.AutomatorServiceImpl.pressKey(AutomatorServiceImpl.java:534)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)\n\tat com.wetest.uia2.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:101)\n\tat fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)\n\tat fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)\n\tat fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)\n\tat java.lang.Thread.run(Thread.java:1119)\nCaused by: android.os.RemoteException: Remote stack trace:\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1103)\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1089)\n\tat android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:846)\n\tat android.os.Binder.execTransactInternal(Binder.java:1428)\n\tat android.os.Binder.execTransact(Binder.java:1372)\n\n')
任务运行中按Ctrl+C可以停止
请输入你的选择 (0-5): 1
正在加载淘金币任务脚本 完成!
2026-05-30:11:48:33 INFO [taobao.py:108] 开始运行...
2026-05-30:11:48:33 INFO [taobao.py:113] 首先关闭音量
❌ 发生错误: ('Unknown RPC error: -32001 java.lang.SecurityException', ('volume_down',), 'java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.\n\tat android.os.Parcel.createExceptionOrNull(Parcel.java:3361)\n\tat android.os.Parcel.createException(Parcel.java:3345)\n\tat android.os.Parcel.readException(Parcel.java:3328)\n\tat android.os.Parcel.readException(Parcel.java:3270)\n\tat android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1812)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1698)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1708)\n\tat android.app.UiAutomationConnection.injectInputEvent(UiAutomationConnection.java:164)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:997)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:964)\n\tat androidx.test.uiautomator.InteractionController.injectEventSync(InteractionController.java:494)\n\tat androidx.test.uiautomator.InteractionController.sendKeys(InteractionController.java:436)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCodes(UiDevice.java:515)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:478)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:466)\n\tat com.wetest.uia2.stub.AutomatorServiceImpl.pressKey(AutomatorServiceImpl.java:534)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)\n\tat com.wetest.uia2.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:101)\n\tat fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)\n\tat fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)\n\tat fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)\n\tat java.lang.Thread.run(Thread.java:1119)\nCaused by: android.os.RemoteException: Remote stack trace:\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1103)\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1089)\n\tat android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:846)\n\tat android.os.Binder.execTransactInternal(Binder.java:1428)\n\tat android.os.Binder.execTransact(Binder.java:1372)\n\n')
('Unknown RPC error: -32001 java.lang.SecurityException', ('volume_down',), 'java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.\n\tat android.os.Parcel.createExceptionOrNull(Parcel.java:3361)\n\tat android.os.Parcel.createException(Parcel.java:3345)\n\tat android.os.Parcel.readException(Parcel.java:3328)\n\tat android.os.Parcel.readException(Parcel.java:3270)\n\tat android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1812)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1698)\n\tat android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1708)\n\tat android.app.UiAutomationConnection.injectInputEvent(UiAutomationConnection.java:164)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:997)\n\tat android.app.UiAutomation.injectInputEvent(UiAutomation.java:964)\n\tat androidx.test.uiautomator.InteractionController.injectEventSync(InteractionController.java:494)\n\tat androidx.test.uiautomator.InteractionController.sendKeys(InteractionController.java:436)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCodes(UiDevice.java:515)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:478)\n\tat androidx.test.uiautomator.UiDevice.pressKeyCode(UiDevice.java:466)\n\tat com.wetest.uia2.stub.AutomatorServiceImpl.pressKey(AutomatorServiceImpl.java:534)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:467)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:352)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:283)\n\tat com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:251)\n\tat com.wetest.uia2.stub.AutomatorHttpServer.serve(AutomatorHttpServer.java:101)\n\tat fi.iki.elonen.NanoHTTPD.serve(NanoHTTPD.java:2244)\n\tat fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)\n\tat fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)\n\tat java.lang.Thread.run(Thread.java:1119)\nCaused by: android.os.RemoteException: Remote stack trace:\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1103)\n\tat com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:1089)\n\tat android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:846)\n\tat android.os.Binder.execTransactInternal(Binder.java:1428)\n\tat android.os.Binder.execTransact(Binder.java:1372)\n\n')