Skip to content

Commit

Permalink
garnet: Add support dolby atmos, music and vision
Browse files Browse the repository at this point in the history
  • Loading branch information
kleidione committed Jan 22, 2025
1 parent 058ec88 commit 2f6f9f6
Show file tree
Hide file tree
Showing 19 changed files with 232 additions and 13 deletions.
1 change: 1 addition & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ BOARD_USES_QCOM_HARDWARE := true
# HIDL
DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
$(DEVICE_PATH)/configs/hidl/device_framework_compatibility_matrix.xml \
hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \
hardware/xiaomi/vintf/xiaomi_framework_compatibility_matrix.xml \
vendor/aosp/config/device_framework_matrix.xml
Expand Down
18 changes: 18 additions & 0 deletions configs/audio/audio_effects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
<library name="volume_listener" path="libvolumelistener.so"/>
<library name="audiosphere" path="libasphere.so"/>
<library name="misoundfx" path="libmisoundfx.so"/>
<!--DOLBY DAP-->
<library name="dap" path="libhwdap.so"/>
<!--DOLBY END-->
<!--DOLBY GAME-->
<library name="gamedap" path="libswgamedap.so"/>
<!--DOLBY END-->
<!--DOLBY VQE-->
<library name="vqe" path="libswvqe.so"/>
<!--DOLBY END-->
</libraries>
<effects>
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
Expand Down Expand Up @@ -122,6 +131,15 @@
<effect name="notification_helper" library="volume_listener" uuid="0b776dde-0590-11e5-81ba-0025b32654a0"/>
<effect name="audiosphere" library="audiosphere" uuid="184e62ab-2d19-4364-9d1b-c0a40733866c"/>
<effect name="misoundfx" library="misoundfx" uuid="5b8e36a5-144a-4c38-b1d7-0002a5d5c51b"/>
<!--DOLBY DAP-->
<effect name="dap" library="dap" uuid="9d4921da-8225-4f29-aefa-39537a04bcaa"/>
<!--DOLBY END-->
<!--DOLBY GAME-->
<effect name="gamedap" library="gamedap" uuid="3783c334-d3a0-4d13-874f-0032e5fb80e2"/>
<!--DOLBY END-->
<!--DOLBY VQE-->
<effect name="vqe" library="vqe" uuid="64a0f614-7fa4-48b8-b081-d59dc954616f"/>
<!--DOLBY END-->
</effects>
<postprocess>
<stream type="music">
Expand Down
5 changes: 1 addition & 4 deletions configs/audio/audio_policy_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="hifi_playback" role="source" />
<mixPort name="compress_passthrough" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING">
</mixPort>
<mixPort name="direct_pcm" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
Expand Down Expand Up @@ -315,7 +312,7 @@
<route type="mix" sink="Line"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,haptics output"/>
<route type="mix" sink="HDMI"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/>
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="Proxy"
sources="primary output,deep_buffer,direct_pcm,compressed_offload"/>
<route type="mix" sink="FM"
Expand Down
19 changes: 19 additions & 0 deletions configs/hidl/device_framework_compatibility_matrix.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<compatibility-matrix version="4.0" type="framework">
<hal format="hidl" optional="true">
<name>vendor.dolby.hardware.dms</name>
<version>2.0</version>
<interface>
<name>IDms</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.media.c2</name>
<version>1.0</version>
<interface>
<name>IComponentStore</name>
<instance>default</instance>
<instance>software</instance>
</interface>
</hal>
</compatibility-matrix>
19 changes: 19 additions & 0 deletions configs/hidl/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@
</interface>
<fqname>@1.0::IBluetoothHci/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.dolby.hardware.dms</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IDms</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.media.c2</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IComponentStore</name>
<instance>default</instance>
<instance>software</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.camera.provider</name>
<transport>hwbinder</transport>
Expand Down
57 changes: 57 additions & 0 deletions configs/media/media_codecs_dolby_audio.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file was modified by Dolby Laboratories, Inc. The portions of the
code that are surrounded by "DOLBY..." are copyrighted and
licensed separately, as follows:
(C) 2018 Dolby Laboratories, Inc.
All rights reserved.
This program is protected under international and U.S. Copyright laws as
an unpublished work. This program is confidential and proprietary to the
copyright owners. Reproduction or disclosure, in whole or in part, or the
production of derivative works therefrom without the express permission of
the copyright owners is prohibited.
-->

<Included>
<Decoders>
<!-- DOLBY_UDC -->
<MediaCodec name="OMX.dolby.ac3.decoder" type="audio/ac3">
<Limit name="channel-count" max="6" />
<Limit name="sample-rate" ranges="32000,44100,48000" />
<Limit name="bitrate" range="32000-640000" />
</MediaCodec>
<MediaCodec name="OMX.dolby.eac3.decoder" type="audio/eac3">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="32000,44100,48000" />
<Limit name="bitrate" range="32000-6144000" />
</MediaCodec>
<MediaCodec name="OMX.dolby.eac3-joc.decoder" type="audio/eac3-joc">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="32000-6144000" />
</MediaCodec>
<!-- DOLBY_UDC END -->
<!-- DOLBY_AC4 -->
<MediaCodec name="OMX.dolby.ac4.decoder" type="audio/ac4">
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="16000-2688000" />
</MediaCodec>
<!-- DOLBY_AC4 END -->
</Decoders>
</Included>
19 changes: 16 additions & 3 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/mixer_paths_parrot_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_parrot/foursemi/mixer_paths_parrot_qrd.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_parrot_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_parrot/mixer_paths_parrot_qrd.xml \
$(LOCAL_PATH)/configs/audio/resourcemanager_parrot_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_parrot/resourcemanager_parrot_qrd.xml \
$(LOCAL_PATH)/configs/audio/resourcemanager_parrot_qrd_foursemi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_parrot/foursemi/resourcemanager_parrot_qrd.xml \
$(LOCAL_PATH)/configs/audio/resourcemanager_parrot_qrd_foursemi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_parrot/foursemi/resourcemanager_parrot_qrd.xml

PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
Expand Down Expand Up @@ -186,6 +186,18 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
hardware/qcom-caf/sm8450/display/config/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml

# Dolby
PRODUCT_PACKAGES += \
XiaomiDolby

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_dolby_audio.xml

# Dolby VNDK libs
PRODUCT_COPY_FILES += \
prebuilts/vndk/v33/arm/arch-arm-armv7-a-neon/shared/vndk-core/libstagefright_foundation.so:$(TARGET_COPY_OUT_VENDOR)/lib/libstagefright_foundation-v33.so \
prebuilts/vndk/v33/arm64/arch-arm64-armv8-a/shared/vndk-core/libstagefright_foundation.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libstagefright_foundation-v33.so

# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.4.vendor \
Expand Down Expand Up @@ -319,7 +331,8 @@ PRODUCT_PACKAGES += \
# Media
PRODUCT_PACKAGES += \
libcodec2_hidl@1.0.vendor \
libcodec2_vndk.vendor
libcodec2_vndk.vendor \
libcodec2_soft_common.vendor

PRODUCT_PACKAGES += \
libavservices_minijail \
Expand All @@ -329,7 +342,7 @@ PRODUCT_COPY_FILES += \
$(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.base-arm.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.base-arm.policy \
$(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.base-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.base-arm64.policy \
$(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.ext-arm.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.ext-arm.policy \
$(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.ext-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy \
$(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.ext-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy

PRODUCT_COPY_FILES += \
$(AUDIO_HAL_DIR)/configs/common/codec2/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \
Expand Down
12 changes: 8 additions & 4 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,21 @@ function blob_fixup() {
[ "$2" = "" ] && return 0
sed -i 's/on charger/on property:init.svc.vendor.charger=running/g' "${2}"
;;
vendor/etc/vintf/manifest/c2_manifest_vendor.xml)
[ "$2" = "" ] && return 0
sed -ni '/dolby/!p' "${2}"
;;
vendor/etc/media_codecs_parrot_v0.xml)
[ "$2" = "" ] && return 0
sed -i -E '/media_codecs_(google_audio|google_c2|google_telephony|vendor_audio)/d' "${2}"
;;
vendor/lib64/hw/audio.primary.parrot.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --replace-needed "libstagefright_foundation.so" "libstagefright_foundation-v33.so" "${2}"
;;
vendor/lib64/vendor.libdpmframework.so)
[ "$2" = "" ] && return 0
grep -q "libhidlbase_shim.so" "${2}" || "${PATCHELF}" --add-needed "libhidlbase_shim.so" "${2}"
;;
vendor/lib/libstagefright_soft_ddpdec.so|vendor/lib/libstagefrightdolby.so|vendor/lib64/libdlbdsservice.so|vendor/lib64/libstagefright_soft_ddpdec.so|vendor/lib64/libstagefrightdolby.so)
[ "$2" = "" ] && return 0
grep -q "libstagefright_foundation-v33.so" "${2}" || "${PATCHELF}" --replace-needed "libstagefright_foundation.so" "libstagefright_foundation-v33.so" "${2}"
;;
*)
return 1
Expand Down
48 changes: 46 additions & 2 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,52 @@ vendor/lib64/vendor.display.color@1.6.so|f9f914003858e641fd19d41676465167e5b2005
vendor/lib64/vendor.display.color@1.7.so|982805fb0f7a68df6a796173d6d3bb24a7dbaa7a
vendor/lib64/vendor.display.postproc@1.0.so|d4698e4d21e0a65611f2e508a841749447c71498

# Dolby Atmos
vendor/bin/hw/dolbycodec2
vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service
vendor/etc/dolby/dax-default.xml
vendor/etc/dolby/dax-fs19xx.xml
vendor/etc/dolby_vision.cfg
vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc
vendor/etc/init/vendor.dolby.media.c2@1.0-service.rc
vendor/lib/c2.dolby.avc.dec.so
vendor/lib/c2.dolby.avc.sec.dec.so
vendor/lib/c2.dolby.client.so
vendor/lib/c2.dolby.egl.so
vendor/lib/c2.dolby.hevc.dec.so
vendor/lib/c2.dolby.hevc.enc.so
vendor/lib/c2.dolby.hevc.sec.dec.so
vendor/lib/c2.dolby.store.so
vendor/lib/libdolbyottcameracontrol.so
vendor/lib/libdolbyvision.so
vendor/lib/libstagefrightdolby.so
vendor/lib/libstagefright_soft_ddpdec.so
vendor/lib/libdeccfg.so
vendor/lib/android.hardware.media.c2@1.0.so
vendor/lib/vendor.dolby.hardware.dms@2.0.so
vendor/lib64/android.hardware.media.c2@1.0.so
vendor/lib64/soundfx/libhwdap.so
vendor/lib64/soundfx/libswdap.so
vendor/lib64/soundfx/libswgamedap.so
vendor/lib64/soundfx/libswvqe.so
vendor/lib64/libdlbdsservice.so
vendor/lib64/libdapparamstorage.so
vendor/lib64/c2.dolby.avc.dec.so
vendor/lib64/c2.dolby.avc.sec.dec.so
vendor/lib64/c2.dolby.client.so
vendor/lib64/c2.dolby.egl.so
vendor/lib64/c2.dolby.hevc.dec.so
vendor/lib64/c2.dolby.hevc.enc.so
vendor/lib64/c2.dolby.hevc.sec.dec.so
vendor/lib64/c2.dolby.store.so
vendor/lib64/libdeccfg.so
vendor/lib64/libdolbyottcameracontrol.so
vendor/lib64/libdolbyvision.so
vendor/lib64/libstagefrightdolby.so
vendor/lib64/libstagefright_soft_ddpdec.so
vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so
vendor/lib64/vendor.dolby.hardware.dms@2.0.so

# EMBMS
vendor/bin/embmsslServer
vendor/etc/init/init.embmssl_server.rc
Expand Down Expand Up @@ -1798,8 +1844,6 @@ vendor/etc/init/vendor.qti.media.c2@1.0-service.rc
vendor/etc/init/vendor.qti.media.c2audio@1.0-service.rc
vendor/etc/seccomp_policy/codec2.vendor.base-arm64.policy
vendor/etc/seccomp_policy/codec2.vendor.ext-arm64.policy
vendor/etc/vintf/manifest/c2_manifest_vendor.xml
vendor/etc/vintf/manifest/c2_manifest_vendor_audio.xml
vendor/lib/libAlacSwDec.so
vendor/lib/libApeSwDec.so
vendor/lib/libEvrcSwCodec.so
Expand Down
9 changes: 9 additions & 0 deletions props/vendor.prop
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ ro.config.alarm_vol_steps=15
ro.config.system_vol_steps=15
ro.config.vc_call_vol_steps=11
ro.vendor.audio.camera.loopback.support=false
ro.vendor.audio.dolby.dax.support=true
ro.vendor.audio.dolby.eq.half=true
ro.vendor.audio.dolby.surround.enable=true
ro.vendor.audio.dolby.vision.support=true
ro.vendor.audio.elus.enable=true
ro.vendor.audio.feature.spatial=7
ro.vendor.audio.gain.support=true
Expand All @@ -34,6 +38,9 @@ ro.vendor.audio.soundtrigger.xatx.gmm.user.level=54
ro.vendor.audio.soundtrigger.xatx.vop.level=0
ro.vendor.audio.soundtrigger=sva
ro.vendor.audio.support.sound.id=true
ro.vendor.dolby.dax.version=DAX3_3.6.1.6_r1
vendor.audio.dolby.ds2.enabled=false
vendor.audio.dolby.ds2.hardbypass=false
vendor.audio.adm.buffering.ms=2
vendor.audio.feature.a2dp_offload.enable=true
vendor.audio.feature.afe_proxy.enable=true
Expand Down Expand Up @@ -88,6 +95,7 @@ ro.soc.manufacturer=QTI
# Display
ro.vendor.display.sensortype=2
ro.vendor.display.svi=1
ro.vendor.display.dolbyvision.support=true
vendor.display.comp_mask=0
vendor.display.disable_3d_adaptive_tm=0
vendor.display.disable_excl_rect=0
Expand Down Expand Up @@ -160,6 +168,7 @@ ro.hardware.keystore_desede=true

# Media
debug.c2.use_dmabufheaps=1
debug.config.media.video.dolby_vision_suports=true
debug.stagefright.c2inputsurface=-1
ro.media.xml_variant.profiles=_parrot_v0

Expand Down
3 changes: 3 additions & 0 deletions sepolicy/vendor/attributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
attribute hal_dms;
attribute hal_dms_client;
attribute hal_dms_server;
8 changes: 8 additions & 0 deletions sepolicy/vendor/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@
/vendor/lib(64)?/rfsa/adsp/libmialgo_basic_cdsp_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libmialgo_slow_motion_cdsp_skel\.so u:object_r:same_process_hal_file:s0

# Data files
/data/vendor/dolby(/.*)? u:object_r:vendor_data_file:s0

# Displayfeature
/dev/mi_display/disp_feature u:object_r:vendor_displayfeature_device:s0
/sys/devices/virtual/mi_display/disp_feature/disp-DSI-+[0-1](/.*)? u:object_r:vendor_sysfs_displayfeature:s0

# Dolby
/vendor/bin/hw/dolbycodec2 u:object_r:mediacodec_exec:s0
/vendor/bin/hw/vendor.qti.media.c2@1.0-service u:object_r:mediacodec_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.dolby\.hardware\.dms@2\.0-service u:object_r:hal_dms_default_exec:s0

# Fingerprint
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.3-service\.xiaomi u:object_r:hal_fingerprint_default_exec:s0
/data/vendor/fpc(/.*)? u:object_r:vendor_fingerprint_data_file:s0
Expand Down
2 changes: 2 additions & 0 deletions sepolicy/vendor/hal_audio_default.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allow hal_audio_default hal_dms_hwservice:hwservice_manager find;
binder_call(hal_audio_default, hal_dms_default)
5 changes: 5 additions & 0 deletions sepolicy/vendor/hal_dms.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
binder_call(hal_dms_client, hal_dms_server)
binder_call(hal_dms_server, hal_dms_client)

add_hwservice(hal_dms_server, hal_dms_hwservice)
allow hal_dms_client hal_dms_hwservice:hwservice_manager find;
11 changes: 11 additions & 0 deletions sepolicy/vendor/hal_dms_default.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type hal_dms_default, domain;
hal_server_domain(hal_dms_default, hal_dms)

type hal_dms_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_dms_default)

allow hal_dms_default vendor_data_file:file { rw_file_perms create unlink };
allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name remove_name };
allow hal_dms_default mediacodec:binder call;
binder_call(hal_dms_default, hal_audio_default)
binder_call(hal_dms_default, platform_app)
2 changes: 2 additions & 0 deletions sepolicy/vendor/hwservice.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dolby
type hal_dms_hwservice, hwservice_manager_type;
3 changes: 3 additions & 0 deletions sepolicy/vendor/hwservice_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ vendor.xiaomi.hardware.bgservice::IBGService u:object_r:vendor_h
vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:vendor_hal_camerapostproc_xiaomi_hwservice:s0
vendor.xiaomi.hardware.quickcamera::IQuickCameraService u:object_r:hal_quickcamera_hwservice:s0

# Dolby
vendor.dolby.hardware.dms::IDms u:object_r:hal_dms_hwservice:s0

# Fingerprint
vendor.xiaomi.hardware.fx.tunnel::IMiFxTunnel u:object_r:vendor_hal_fingerprint_hwservice_xiaomi:s0

Expand Down
2 changes: 2 additions & 0 deletions sepolicy/vendor/mediacodec.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allow mediacodec hal_dms_hwservice:hwservice_manager find;
binder_call(mediacodec, hal_dms_default)
2 changes: 2 additions & 0 deletions sepolicy/vendor/platform_app.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allow platform_app hal_dms_hwservice:hwservice_manager find;
binder_call(platform_app, hal_dms_default)

0 comments on commit 2f6f9f6

Please sign in to comment.