Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Android): Plugin declares unnecessary permissions #209

Open
3 tasks done
breautek opened this issue Feb 17, 2021 · 0 comments · May be fixed by #280
Open
3 tasks done

(Android): Plugin declares unnecessary permissions #209

breautek opened this issue Feb 17, 2021 · 0 comments · May be fixed by #280

Comments

@breautek
Copy link

Bug Report

Problem

What is expected to happen?

Plugin unnecessary requires RECORD_AUDIO, WRITE_EXTERNAL_STORAGE, and READ_EXTERNAL_STORAGE permissions.

RECORD_AUDIO only is required if the app uses the microphone APIs directly, but this plugin uses an intent to record audio.

The external permissions are already handled by the cordova-plugin-file, which this plugin depends on.

What does actually happen?

Not to declare unnecessary permissions.

Information

This is a GH extension of an existing jira ticket: https://issues.apache.org/jira/browse/CB-10814

Special testing may be necessary around what happens if the app (from an external source) declares RECORD_AUDIO, will it causes SecurityErrorException like with the CAMERA permission (See https://issues.apache.org/jira/browse/CB-10120)

Command or Code

N/A

Environment, Platform, Device

N/A

Version information

cordova-plugin-media-capture: 3.0.4-dev

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
ath0mas added a commit to ath0mas/cordova-plugin-media-capture that referenced this issue Feb 18, 2021
ath0mas added a commit to ath0mas/cordova-plugin-media-capture that referenced this issue Jul 30, 2023
@ath0mas ath0mas linked a pull request Aug 22, 2023 that will close this issue
5 tasks
@breautek breautek added this to the 6.0.0 milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant