使用ida对红米note4加minu8开发版远程调试时出现
The debugger could not attach to the selected process.
This can perhaps indicate the process was just terminated, or that you dot’t have the necessary privileges.
错误。
用百度无果,google上找到http://www.qingpingshan.com/rjbc/az/110207.html
关闭SELinux的方法:
1、检测SELinux是否打开:getenforce
返回值:Enforcing:强制模式 Permissive:宽容模式 Disabled:关闭
2、临时关闭SELinux:setenforce 0 0为关闭,1为打开,执行后立即生效,无需重启
setenforce 0后返回值改为Permissive此时就可以attach了。