Integrate V4A by completing these three steps:
-
Build System: Add the config to
device.mk:$(call inherit-product, packages/apps/ViPER4AndroidFX/config.mk)
-
Audio Effects: Add these lines to the
<libraries>block inaudio_effects.xml(/vendor/etc/or/etc/):<library name="v4a_re" path="libv4a_re.so"/> <effect name="v4a_standard_re" library="v4a_re" uuid="90380da3-8536-4744-a6a3-5731970e640f"/>
-
SELinux Policy: Add these rules to your
audioserver.tefile:get_prop(audioserver, vendor_audio_prop) # If Google or MTK device skip line allow audioserver unlabeled:file { read write open getattr }; allow hal_audio_default hal_audio_default:process { execmem };