简体   繁体   中英

Cordova adds unnecessary permissions to AndroidManifest.xml

While building an ionic project, I've noticed that AndroidManifest.xml is being generated each time I run : cordova build --release android and adds permissions I don't really need.

I've googled around and found the following markup to add to config.xml:

<preference name="permissions" value="none" />

However this does not work, and the AndroidManifest.xml file is generated each time with lot's of unnecessary permissions.

What it the right way to configure the app permissions?

Update:

Important note: I'm using this YEOMAN generator for my project

I suppose you are using some plugins. These plugins could add permissions so you'll have to check && edit/remove them. First have a look in /plugins/android.json. Also in /plugins/my_plugin/plugin.xml you can find exactly what permissions they request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM