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

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 

原文地址:https://www.cnblogs.com/DirWang/p/11185215.html