Hi,
I am trying to run my amfm application in imx8qxp android 9. I want to access jni and hidl functions.
I am able to access jni function from java layer, but not able to access hidl function from jni layer.
I did the following steps in device/fsl/imx8q folder.
1. added amfm in manifest.xml
<hal format="hidl">
<name>android.hardware.amfm</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IAMFM</name>
<instance>default</instance>
</interface>
</hal>
2. mek_8q.mk file
PRODUCT_PACKAGES += \
android.hardware.amfm@2.0-impl \
android.hardware.amfm@2.0-service
I am getting the error as,
SELinux : avc: denied { find } for interface=android.hardware.amfm::IAMFM pid=4099 scontext=u:r:untrusted_app:s0:c65,c256,c512,c768 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
If any one knows the solution please reply.