前言

Android 12添加服务后,在配置SELinux权限时,出现如下的编译错误。

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

正文

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

下面对比看看错误和正确的示范。

错误

# add by biumall.com start
type biu_car_service,system_api_service, system_server_service, service_manager_type;
# add by biumall.com end

这个添加时方便自己查看记录,但在这里时错误的,因为.te文件最后一行不允许有注释。

正确

# add by biumall.com
type biu_car_service,system_api_service, system_server_service, service_manager_type;

参考文章

抱歉,忘了

相关文章

暂无评论

none
暂无评论...