But I don’t want record audio user permission and modify audio settings in user permissions. If I am commenting these user permissions in plugin.xml and AndroidManifest.xml file of media plugin and then also on building the project these permissions appear in AndroidManifest File.
Then - edit the file platforms/android/AndroidManifest.xml - and remove the matching permissions you previously removed
Rebuild
ionic build android
Notes
Make sure the JSON is still valid after your changes
Also note, remove the last comma “,” or you’ll receive an error SyntaxError: Unexpected token ] ( even tough the last comma in JSON validator is considered valid )
not sure if it should be overwritten, but this is something I always do before I upload my apps to Google Play.
I remove it, build & upload the apk, so it works 100% for me …