Cameraview: How to remove RECORD_AUDIO permission from Manifest

Created on 9 Feb 2019  路  10Comments  路  Source: natario1/CameraView

I don't want to keep <uses-permission android:name="android.permission.RECORD_AUDIO"/> permission in my Manifest plainly due to the fact that I am not using this in my app. But the project does not build if I don't give this permission. Do you have any solution for that?

Version used

I am using com.otaliastudios:cameraview:2.0.0-beta02 version of cameraview

question stale

Most helpful comment

In the XML definition of your CameraView, or call cameraView.setAudio(Audio.OFF) as soon as you can

All 10 comments

What do you mean with "the project does not build"?

I meant App is crashing without any reason

Try disabling audio with cameraAudio="off"

No, I actually don't want to keep this permission in the Manifest itself, because I won't be using this.
Moreover, when I'm uploading my app to play store I have to agree to a privacy policy due to this RECORD_AUDIO permission which in my opinion is unnecessary

I understand! Try doing what I said

Where do I have to put this cameraAudio = "off" btw?

In the XML definition of your CameraView, or call cameraView.setAudio(Audio.OFF) as soon as you can

It's still crashing unfortunately

With what stacktrace?

This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OLDdriver2 picture OLDdriver2  路  4Comments

Aissa-H picture Aissa-H  路  3Comments

HD-AD picture HD-AD  路  8Comments

Rupeshrajsingh picture Rupeshrajsingh  路  4Comments

vedmedenko picture vedmedenko  路  9Comments