大家好,又见面了,我是你们的朋友全栈君。
在Android KK 4.4 版本后,Google启用SELinux来增强Android 的安全性。
可以使用setenforce 命令进行设置模式:
adb shell setenforce 0 //设置成Permissive 模式
adb shell setenforce 1 //设置成Enforcing 模式
可以使用getenforce 命令进行查询,如:
adb shell getenforce
Enforcing
注意:只有SELinux在非Disable状态下,setenforce才有效果。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/153517.html原文链接:https://javaforall.net