76d7cf961e
Three properties are declared as vendor-init-settable: ro.media.xml_variant.codecs ro.media.xml_variant.codecs_performance ro.media.xml_variant.profiles media_codecs.xml can now be named media_codecs${ro.media.xml_variant.codecs}.xml media_codecs_performance.xml can now be named media_codecs_performance${ro.media.xml_variant.codecs_performance}.xml media_profiles_V1_0 can now be named media_profiles${ro.media.xml_variant.profiles}.xml Test: Rename "media_codecs.xml" to "media_codecs_test.xml", set ro.media.xml_variant.codecs to "_test", then call "stagefright -i". Test: Rename "media_codecs_performance.xml" to "media_codecs_performance_test.xml", set ro.media.xml_variant.codecs_performance to "_test", then run android.media.cts.VideoDecoderPerfTest. Test: Rename "media_profiles_V1_0.xml" to "media_profiles_test.xml", set ro.media.xml_variant.profiles to "_test", then run vts_mediaProfiles_validate_test. Bug: 142102953 Change-Id: I407a0a327fcc8e799bb4079b11048a497565be48
25 lines
842 B
Text
25 lines
842 B
Text
get_prop(hal_codec2_client, media_variant_prop)
|
|
get_prop(hal_codec2_server, media_variant_prop)
|
|
|
|
binder_call(hal_codec2_client, hal_codec2_server)
|
|
binder_call(hal_codec2_server, hal_codec2_client)
|
|
|
|
hal_attribute_hwservice(hal_codec2, hal_codec2_hwservice)
|
|
|
|
# The following permissions are added to hal_codec2_server because vendor and
|
|
# vndk libraries provided for Codec2 implementation need them.
|
|
|
|
# Allow server access to composer sync fences
|
|
allow hal_codec2_server hal_graphics_composer:fd use;
|
|
|
|
# Allow both server and client access to ion
|
|
allow hal_codec2_server ion_device:chr_file r_file_perms;
|
|
|
|
# Allow server access to camera HAL's fences
|
|
allow hal_codec2_server hal_camera:fd use;
|
|
|
|
# Receive gralloc buffer FDs from bufferhubd.
|
|
allow hal_codec2_server bufferhubd:fd use;
|
|
|
|
allow hal_codec2_client ion_device:chr_file r_file_perms;
|
|
|