AnsweredAssumed Answered

How to solve SELinux Error

Question asked by PUNEETH K on Jul 3, 2020
Latest reply on Jul 12, 2020 by PUNEETH K



      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">


2. file


       android.hardware.amfm@2.0-impl \



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.