在 eng/userdebug 版本中
使用 getenforce 命令查询当前权限状态, 如:
adb shell getenforce
使用 setenforce 命令进行设置:
- adb shell setenforce 0 // 设置成 permissive 模式
- adb shell setenforce 1 // 设置成 enforce 模式
注意此方法重启后失效
在 eng/userdebug/user 版本中
来源: http://www.bubuko.com/infodetail-3106533.html