How can I remove this android.permission.RECORD_AUDIO from build ?
REGARDS
Flemming
How can I remove this android.permission.RECORD_AUDIO from build ?
REGARDS
Flemming
Thanks phil…
BUT looks like Volt dont support this:
<platform name="android">
<hook type="after_prepare" src="remove_permissions.js"/>
</platform>
I am stuck here
Goole Play return this - so I really want this fixed
Warning
Users that have the APK with version code 290927 may need to accept the new permissions android.permission.READ_PHONE_STATE, android.permission.RECORD_AUDIO, which may result in them not upgrading to this version of the app.
Looks like this was working for PGB - Is there a way for VOLTBUILDER ?
<config-file platform="android" parent="/manifest" mode="delete">
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
</config-file>
<config-file platform="android" parent="/manifest" mode="delete">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
Correct. VoltBuilder doesn’t allow hooks - it opens up security vulnerabilities.
There’s a note about config-file
in the docs:
Obsolete usage of <config-file> in config.xml.
: You’ll need to make some changes. Up to cli-7.0.1, PhoneGap allowed this type of clause:<config-file platform=”ios” parent=”SomeXMLElement” mode=”replace”>
<SomeXMLElement someAttribute=”text” >Go Skiing</SomeXMLElement>
</config-file>
Cordova then started used config-file
for its plugins, which conflicted with the PhoneGap implementation. PhoneGap then changed to use Cordova’s edit-config. You’ll need to change these in your config.xml. Consult the documentation for the affected controls for the details.
Well - Thanks for input
But the big quistion is: How can I remove this android.permission.RECORD_AUDIO using VOLT?
VoltBuilder is a wrapper around Cordova, so the question here is whether this can be done when running Cordova as a batch process.
We don’t know the answer to this right now. There are also open issues on Cordova which may affect the answer.
*** SOLVED***
I found this free software APK Editor for PC and Mac – APK Editor Studio
Simple open up the apk and it has this nice feature
Simple & Easy
Interesting find!