Android ADB关闭Selinux ( adb shell setenforce 0 )


adb shell setenforce 0

setenforce 0
:设置SELinux 成为permissive模式 临时关闭selinux的

在eng/userdebug版本中
使用setenforce 命令进行设置:
adb shell setenforce 0 //设置成permissive 模式
adb shell setenforce 1 //设置成enforce 模式
注意此方法重启后失效

在eng/userdebug/user 版本中
使用getenforce 命令查询当前权限状态,如:
adb shell getenforce


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM