I'm working on face detection feature in my project. My code works perfectly on many devices including My device (Honor Play, Android 9.0) but it's not working on some devices ex. Xiaomi Redmi Note 5 pro having same version (android 9.0) but i'm getting error as shown in logs below.
I have added following permissions in manifest.xml
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
I'm getting following error in logs
E/libc: Access denied finding property "vendor.camera.aux.packagelist"
W/CamCtrl.V17: type=1400 audit(0.0:363016): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=13687 scontext=u:r:untrusted_app:s0:c101,c260,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
I'm already requesting camera and storage permissions if required or not allowed. Please let me know any solutions for this issue.