- adb logcat日誌報錯:
init: avc: denied { set } for property=camera.gc02m1 scontext=u:r:mm-qcamerad:s0 tcontext=u:object_r:camera_prop:s0tclass=property_service
- SELinux的許可權不足
標誌性 log: avc: denied { 操作許可權 } for pid=7201 comm=“程序名” scontext=u:r:源型別:s0 tcontext=u:r:目標型別:s0 tclass=訪問型別 permissive=0
- 修改配置
由於scontext是mm-qcamerad
所以,找到mm-qcamerad.te檔案路徑/home/scooper/workspace/ljh/msm8909/device/qcom/sepolicy/common/mm-qcamerad.te
- 增加配置
allow mm-qcamerad camera_prop:property_service {set};