完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Platform: RK3399/RK3399pro
OS: Android9.0 现象 rk的Bootanimation自带了开机动画播放视频的功能,具体的使用方法如下:
之前主要编译userdebug版本和eng版本的固件,都可以正常播放,目前有客户提出user版本下无法播放. 分析解决 user模式下无法使用,主要是selinux的权限问题,解决补丁如下 --- device/rockchip/common/sepolicy/vendor/bootanim.te | 3 +++ system/sepolicy/prebuilts/api/26.0/public/bootanim.te | 1 + system/sepolicy/prebuilts/api/26.0/public/mediaserver.te | 1 + system/sepolicy/prebuilts/api/27.0/public/bootanim.te | 1 + system/sepolicy/prebuilts/api/27.0/public/mediaserver.te | 1 + system/sepolicy/prebuilts/api/28.0/public/bootanim.te | 1 + system/sepolicy/prebuilts/api/28.0/public/mediaserver.te | 1 + system/sepolicy/public/bootanim.te | 1 + system/sepolicy/public/mediaserver.te | 1 + 9 files changed, 11 insertions(+) diff --git a/device/rockchip/common/sepolicy/vendor/bootanim.te b/device/rockchip/common/sepolicy/vendor/bootanim.te index 0c080c2..2a401ca 100644 --- a/device/rockchip/common/sepolicy/vendor/bootanim.te +++ b/device/rockchip/common/sepolicy/vendor/bootanim.te @@ -15,3 +15,6 @@ get_prop(bootanim, vendor_default_prop) allow bootanim init:unix_stream_socket connectto; allow bootanim property_socket:sock_file write; allow bootanim vendor_file:file { getattr open read }; + +allow bootanim mediaserver_service:service_manager find; + diff --git a/system/sepolicy/prebuilts/api/26.0/public/bootanim.te b/system/sepolicy/prebuilts/api/26.0/public/bootanim.te index e2584c3..2e58427 100644 --- a/system/sepolicy/prebuilts/api/26.0/public/bootanim.te +++ b/system/sepolicy/prebuilts/api/26.0/public/bootanim.te @@ -8,6 +8,7 @@ hal_client_domain(bootanim, hal_graphics_composer) binder_use(bootanim) binder_call(bootanim, surfaceflinger) binder_call(bootanim, audioserver) +binder_call(bootanim, mediaserver) hwbinder_use(bootanim) diff --git a/system/sepolicy/prebuilts/api/26.0/public/mediaserver.te b/system/sepolicy/prebuilts/api/26.0/public/mediaserver.te index 6efaf0f..18813e2 100644 --- a/system/sepolicy/prebuilts/api/26.0/public/mediaserver.te +++ b/system/sepolicy/prebuilts/api/26.0/public/mediaserver.te @@ -26,6 +26,7 @@ userdebug_or_eng(` binder_use(mediaserver) binder_call(mediaserver, binderservicedomain) binder_call(mediaserver, appdomain) +binder_call(mediaserver, bootanim) binder_service(mediaserver) allow mediaserver media_data_file:dir create_dir_perms; diff --git a/system/sepolicy/prebuilts/api/27.0/public/bootanim.te b/system/sepolicy/prebuilts/api/27.0/public/bootanim.te index 1a265f9..7a57e3c 100644 --- a/system/sepolicy/prebuilts/api/27.0/public/bootanim.te +++ b/system/sepolicy/prebuilts/api/27.0/public/bootanim.te @@ -9,6 +9,7 @@ hal_client_domain(bootanim, hal_graphics_composer) binder_use(bootanim) binder_call(bootanim, surfaceflinger) binder_call(bootanim, audioserver) +binder_call(bootanim, mediaserver) hwbinder_use(bootanim) diff --git a/system/sepolicy/prebuilts/api/27.0/public/mediaserver.te b/system/sepolicy/prebuilts/api/27.0/public/mediaserver.te index 6efaf0f..18813e2 100644 --- a/system/sepolicy/prebuilts/api/27.0/public/mediaserver.te +++ b/system/sepolicy/prebuilts/api/27.0/public/mediaserver.te @@ -26,6 +26,7 @@ userdebug_or_eng(` binder_use(mediaserver) binder_call(mediaserver, binderservicedomain) binder_call(mediaserver, appdomain) +binder_call(mediaserver, bootanim) binder_service(mediaserver) allow mediaserver media_data_file:dir create_dir_perms; diff --git a/system/sepolicy/prebuilts/api/28.0/public/bootanim.te b/system/sepolicy/prebuilts/api/28.0/public/bootanim.te index 3260227..2e382f4 100644 --- a/system/sepolicy/prebuilts/api/28.0/public/bootanim.te +++ b/system/sepolicy/prebuilts/api/28.0/public/bootanim.te @@ -9,6 +9,7 @@ hal_client_domain(bootanim, hal_graphics_composer) binder_use(bootanim) binder_call(bootanim, surfaceflinger) binder_call(bootanim, audioserver) +binder_call(bootanim, mediaserver) hwbinder_use(bootanim) diff --git a/system/sepolicy/prebuilts/api/28.0/public/mediaserver.te b/system/sepolicy/prebuilts/api/28.0/public/mediaserver.te index f0c94ed..60b8467 100644 --- a/system/sepolicy/prebuilts/api/28.0/public/mediaserver.te +++ b/system/sepolicy/prebuilts/api/28.0/public/mediaserver.te @@ -26,6 +26,7 @@ userdebug_or_eng(` binder_use(mediaserver) binder_call(mediaserver, binderservicedomain) binder_call(mediaserver, appdomain) +binder_call(mediaserver, bootanim) binder_service(mediaserver) allow mediaserver media_data_file:dir create_dir_perms; diff --git a/system/sepolicy/public/bootanim.te b/system/sepolicy/public/bootanim.te index 3260227..2e382f4 100644 --- a/system/sepolicy/public/bootanim.te +++ b/system/sepolicy/public/bootanim.te @@ -9,6 +9,7 @@ hal_client_domain(bootanim, hal_graphics_composer) binder_use(bootanim) binder_call(bootanim, surfaceflinger) binder_call(bootanim, audioserver) +binder_call(bootanim, mediaserver) hwbinder_use(bootanim) diff --git a/system/sepolicy/public/mediaserver.te b/system/sepolicy/public/mediaserver.te index f0c94ed..60b8467 100644 --- a/system/sepolicy/public/mediaserver.te +++ b/system/sepolicy/public/mediaserver.te @@ -26,6 +26,7 @@ userdebug_or_eng(` binder_use(mediaserver) binder_call(mediaserver, binderservicedomain) binder_call(mediaserver, appdomain) +binder_call(mediaserver, bootanim) binder_service(mediaserver) allow mediaserver media_data_file:dir create_dir_perms; -- 2.7.4 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
rk1126实现BT601输入,输入不带IIC接口的驱动程序
1083 浏览 0 评论
1141 浏览 1 评论
2234 浏览 3 评论
RK3568 Android11让系统ntp校准时间生效,需要设置些什么
2992 浏览 1 评论
4990 浏览 2 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-15 05:57 , Processed in 0.665855 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191