-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
[我看了你写的这篇文章,感觉受益匪浅 (https://www.jinnrry.com/2019/05/15/ReverseEngineering/)。然后我尝试了自己在kotlin里写instrumentation,和直接复制这个仓库中的pinchOpen以及pinchClose函数。其实我本来也在用按键精灵安卓版,但是他的bug实在太多,就想尝试直接使用你的代码复现按键精灵的效果。结果都遇到了相同的报错,上网查了一下,也没能找到解决方法。请问作者这里有什么好方法吗?多谢指教!]
我运行的设备是mumu模拟器,安卓12,已经root,已挂载可读写系统盘,报错信息如下。
FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.coc.zkq, PID: 3350
java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
尝试使用pm授权,在termux里运行了以下代码,依然不行
运行的代码:pm grant com.coc.zkq android.permission.INJECT_EVENTS
结果:Exception occurred while executing 'grant':
java.lang.SecurityException: Permission android.permission.INJECT_EVENTS requested by com.coc.zkq is not a changeable permission type
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels