Cordova adds unwanted permission to AndroidManifest.xml when building from CLI

前端 未结 6 903
Happy的楠姐
Happy的楠姐 2021-01-18 07:13

I use CLI to build my Cordova app, and I have added the Media plugin.

\'cordova build\' automatically adds the android.permission.RECORD_AUDIO to my AndroidManifest.

6条回答
  •  情话喂你
    2021-01-18 08:13

    I have done below:

    1. Removed permission entries from below 2 files:

    myapp\platforms\android\app\src\main\AndroidManifest.xml myapp\platforms\android\android.json

    1. Rebuilt the apk in release mode.

    It worked, removed permission entries dint come back in manifest file.
    Successfully uploaded apk to Play console.

提交回复
热议问题