android13添加SELinux权限时踩的坑

Android2024年4月8日 pm7:32发布4个月前更新 3XCN.COM站长
0 0 0
广告也精彩
目录

前言

在配置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
多个隐藏块只需支付一次

 历史上的今天

版权声明 1、 本站名称: 91易搜
2、 本站网址: 91es.com3xcn.com
3、 本站文章: 部分来源于网络,仅供站长学习和参考,若侵权请留言
广告也精彩

相关文章

广告也精彩

暂无评论

评论审核已启用。您的评论可能需要一段时间后才能被显示。

暂无评论...

网站升级中

公告

近期网站升级中,可能存在一些bug。欢迎反馈 https://www.91es.com/we.html

本站域名

本站域名 : 91es.com3xcn.com。本站邮箱 : 站长邮箱 i@oorr.cn,通知邮箱we@oorr.cn ,如有更新,请看公告 。