Android permissions


#1

Hello.

Developed an app using Ionic for first time. When Im trying to install it on a device the installation page under privacy it says:

Record audio
Modify or delete the contents of your SD card etc…

Im 100% sure that my code does not use any of the above. How do I remove these requirements from the apk? anyone knows?

Thanks in advance


#2

Go to your project folder.

In project root directory find a file named: package.json

Open it and look for a section called cordovaPlugins.

Post them here.


#3

Thanks for your reply.

There is not such file in the root. Im using cordova 4.3.1

The closest I found is a fetch.json

which has:

{
    "com.rjfun.cordova.extension": {
        "source": {
            "type": "registry",
            "id": "com.rjfun.cordova.extension"
        }
    },
    "com.rjfun.cordova.mmedia": {
        "source": {
            "type": "registry",
            "id": "com.rjfun.cordova.mmedia@2.1.1"
        }
    },
    "com.google.playservices": {
        "source": {
            "type": "git",
            "url": "https://github.com/floatinghotpot/google-play-services",
            "subdir": ".",
            "ref": "r19"
        }
    }
}

#4

This is not what I was talking about. There should be a file having this content:

  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "com.ionic.keyboard"
  ],

or something similar.