1get_prop(hal_codec2_client, media_variant_prop) 2get_prop(hal_codec2_server, media_variant_prop) 3 4binder_call(hal_codec2_client, hal_codec2_server) 5binder_call(hal_codec2_server, hal_codec2_client) 6 7hal_attribute_hwservice(hal_codec2, hal_codec2_hwservice) 8 9# The following permissions are added to hal_codec2_server because vendor and 10# vndk libraries provided for Codec2 implementation need them. 11 12# Allow server access to composer sync fences 13allow hal_codec2_server hal_graphics_composer:fd use; 14 15# Allow both server and client access to ion 16allow hal_codec2_server ion_device:chr_file r_file_perms; 17 18# Allow server access to camera HAL's fences 19allow hal_codec2_server hal_camera:fd use; 20 21# Receive gralloc buffer FDs from bufferhubd. 22allow hal_codec2_server bufferhubd:fd use; 23 24allow hal_codec2_client ion_device:chr_file r_file_perms; 25 26