前言

在配置Android 13 SELinux权限时出现如下坑,记录一下,方便自己查阅。

正文

坑一:ERROR: end of file in comment

编译时提示service.te有如下错误

prebuilts/build-tools/linux-x86/bin/m4:device/sprd/mpool/sepolicy/system/public/service.te:57: ERROR: end of file in comment

error提示就是说.te文件最后一行不能有注释!

下面放上错误和正确的方式。

隐藏内容!
付费阅读后才能查看!
2
多个隐藏块只需支付一次

坑二:Error: could not load context file from

编译时service_contexts提示有如下错误

out/soong/.intermediates/system/sepolicy/contexts/system_ext_service_contexts/android_common/gen/system_ext_service_contexts:  line 61 has invalid context u:object_r:biu_car_service:s0#
Error: could not load context file from out/soong/.intermediates/system/sepolicy/contexts/system_ext_service_contexts/android_common/gen/system_ext_service_contexts

这个错误很神奇,如果第一次改这个基本会出现。

隐藏内容!
付费阅读后才能查看!
2
多个隐藏块只需支付一次

参考文章

隐藏内容!
付费阅读后才能查看!
2
多个隐藏块只需支付一次

相关文章

暂无评论

none
暂无评论...