Access denied for property “vendor.camera.aux.packagelist”

前端 未结 6 2181
暗喜
暗喜 2021-01-05 05:03

The application runs but when i try to use the camera only a disturbed grey screen appears and the logs tab gives me two errors:

E/libc: Access denied findin         


        
6条回答
  •  情深已故
    2021-01-05 05:31

    I too faced same error while implementing video capture option, this in my case due to missing Storage and Camera permissions.

    Resolved using below code

      if ((checkSelfPermission(Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) || (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED))  {
                    Log.d(TAG, "No camera and storage permission");
                    requestPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, MY_PERMISSIONS_REQUEST_CODE);
                }
    

提交回复
热议问题