I'm getting the following error in Firebase from HUAWEI devices:
Fatal Exception: java.lang.SecurityException
Permission Denial: starting Intent {
act=android.media.action.STILL_IMAGE_CAMERA_SECURE flg=0x10000000
cmp=com.huawei.camera/.controller.SecureCameraActivity
}
from ProcessRecord{d677674 11018} (pid=11018, uid=10125)
requires com.huawei.camera.permission.PRIVATE
I added this permission to the manifest file but still no luck i'm trying to open the camera with "android.media.action.STILL_IMAGE_CAMERA_SECURE" intent.
any info on this problem with huawei devices?
the code i'm using
intentAboveM = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE);
intentAboveM.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK );
if(intentAboveM.resolveActivity(getPackageManager()) !=null) {
this.startActivity(intentAboveM);
}

