编译报错:init : Could not start service ‘vendor.secure_element-default‘ as part of class ‘hal‘

已经添加了sepolicy,但还是编译报错,报错如下:

编译报错:init : Could not start service ‘vendor.secure_element-default’ as part of class ‘hal’: File /vendor/bin/hw/vendor.sprd.hardware.secure_element-service(labeled “u:object_r:vendor_file:s0”) has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials

原因:log显示这个服务标签不正确或者domain域转换有问题。找了一圈问题,发现是没有在编译开关那里添加配置sepolicy的路径,尤其是自定义的sepolicy,系统会找不到、添加自定义sepolicy的写法如下

BOARD_VENDOR_SEPOLICY_DIRS += $(call md-path-cur)/msepolicy/vendor/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值