[
https://issues.apache.org/jira/browse/CB-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685977#comment-13685977
]
Filip Maj commented on CB-3848:
-------------------------------
Yes, you could use hooks for that. That said, if you are integrating with
plugins (i.e. {{cordova plugin add blah}}), they would be editing the
AndroidManifest.xml file directly as well so that might get hairy.
Dan, in 3.0, all of the core APis in cordova will be "broken out" of the
framework, and you will be able to pick and choose which ones you want. This
selection process will also incrementally add whatever permissions are required
for the particular plugins you choose.
So, this problem will be solved in 3.0, which is a month away :)
I will close this ticket for now and keep your eyes out for the 3.0 release
coming mid July!
> Can't modify phonegap permissions without editing AndroidManifest.xml
> ---------------------------------------------------------------------
>
> Key: CB-3848
> URL: https://issues.apache.org/jira/browse/CB-3848
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.8.0
> Environment: npm 1.2.30
> cordova (cli) 2.8.19
> phonegap 2.8.1
> centos 6
> android sdk tools: 22.0.1
> android build tools: 17
> android platform tools: 17
> /usr/local all owned by me via chown
> Reporter: Dan Moore
> Assignee: Filip Maj
>
> When I build a apk from the command line via 'cordova build android', I get
> an apk that has all permissiones set, including those that I don't even need
> (like contacts access, capture access, etc).
> I have tried modifying these files without any effect:
> www/config.xml
> platforms/android/res/xml/config.xml
> Editing platforms/android/AndroidManifest.xml and removing those permissions
> seemed to work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira