Advertisement

SELinux权限配置在SDM660 Android 9.0设备上

阅读量:

在apk控制gpio init.qcom.rc的配置中,即便为该io赋予了666权限,仍然无法实现有效操控,并且在操作过程中会出现错误提示。此问题主要体现在应用层的实现过程中。

复制代码
    5244  5244 W ing.aliveDetect: type=1400 audit(0.0:183): avc: denied { write } for name="value" dev="sysfs" ino=50119 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
    01-01 11:35:58.009  6036  6036 W System.err: java.io.FileNotFoundException: /sys/class/gpio/gpio73/value (Permission denied)
    
    
      
      
    
复制代码
    1970-01-01 08:12:21.489 7430-7430/com.joyusing.aliveDetect W/Thread-3: type=1400 audit(0.0:77): avc: denied { read } 

全部评论 (0)

还没有任何评论哟~