报错:
E SELinux : avc: denied { add } for service=flashlight pid=3485 uid=1000 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=1
添加权限:
androidouttargetproductproduct-xxxrootservice_contexts
Android源码添加自定义系统服务
http://www.cnblogs.com/liam999/p/5933827.html
androiddevicexxxsepolicy
androidsystemsepolicy
报错:
01-01 07:34:37.870 3704 3704 E flashlightHAL: Failed to open device file /sys/class/leds/flashlight/brightness -- Permission denied.
修改文件权限:(类似)
@ubuntu-server:~$ grep -rsn "timed_output" android/device/ android/system/
android/device/xxx/common/rootdir/etc/init.xxx.factory.rc:224: chown system system /sys/class/timed_output/vibrator/enable
android/device/xxx/co
最后
以上就是风趣老师最近收集整理的关于自定义系统service SELinux权限报错的全部内容,更多相关自定义系统service内容请搜索靠谱客的其他文章。
发表评论 取消回复