使用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了。