报错信息
![](https://i-blog.csdnimg.cn/blog_migrate/f95c34fa67ecfd520da618ed477508ea.png)
image.png
{"type":"error","description":"Error: invalid address","stack":"Error: invalid address\n at Object.value [as patchCode] (frida/runtime/core.js:170:1)\n at Jt (frida/node_modules/frida-java-bridge/lib/android.js:945:1)\n at zt.activate (frida/node_modules/frida-java-bridge/lib/android.js:998:1)\n at Ut.replace (frida/node_modules/frida-java-bridge/lib/android.js:1045:1)\n at Function.set [as implementation] (frida/node_modules/frida-java-bridge/lib/class-factory.js:1010:1)\n at Function.set [as implementation] (frida/node_modules/frida-java-bridge/lib/class-factory.js:925:1)\n at installLaunchTimeoutRemovalInstrumentation (/internal-agent.js:249:24)\n at init (/internal-agent.js:33:3)\n at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:11:1)\n at g._performPendingVmOps (frida/node_modules/frida-java-bridge/index.js:238:1)","fileName":"frida/runtime/core.js","lineNumber":170,"columnNumber":1}
处理办法
方案一、重启手机
方案二、运行adb shell setenforce 0