Error message: Failed to spawn: unable to access process with pid 413 due to system restrictions; try `sudo sysctl kernel.yama.ptrace_scope=0`, or run Frida as root

时间:2024-04-09 18:36:57

Android 8.0

在frida中使用 -f 参数报错,

Error message: Failed to spawn: unable to access process with pid 413 due to system restrictions; try `sudo sysctl kernel.yama.ptrace_scope=0`, or run Frida as root

通过ps -A  413 查看进程,发现为zygote64,冲突的原因是Magisk  开启了Magisk Hide选项

解决方法:Magisk   -->设置-->Magisk下 去掉勾选Magisk Hide

Error message: Failed to spawn: unable to access process with pid 413 due to system restrictions; try `sudo sysctl kernel.yama.ptrace_scope=0`, or run Frida as root