Permission setting when playing MP3 in the app on Android

Asked 1 years ago, Updated 1 years ago, 101 views

After enabling the media plug-in in cordova to play MP3 files as sound effects in the Android app, the following permissions are automatically set when you build them (not added to AndroidManifest.xml in the project).

  • Reading Terminal Status and Terminal ID
  • Recording
  • Change/Remove Content in User Memory
  • Test access to protected storage
  • Change Audio Settings

I just want to play MP3, so I don't need the above permissions, but how do I disable all of them (no settings)?

If anyone knows, could you please let me know?

The cordova version is 4.1.0.

android monaca cordova mp3

2022-09-30 18:00

1 Answers

Unfortunately, if you use cordova-plugin-media, it will be difficult to disable all plug-ins because they support multi-functionality.

It's not a direct answer, but you might want to try a different plug-in.Plug-ins can also be found on the Cordova plug-in page.

Also, if you want to know in advance what permissions your plug-in is looking for, you can find out by looking at the uses-permission in the published source code plugin.xml.

For your information, I have included the cordova-plugin-media link, but as mentioned in the question, it seems that the plug-in requires permission to record, change audio settings, write, and load terminal states.

For more information: cordova-plugin-media/plugin.xml


2022-09-30 18:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.