Is there any way for an Android application to declare requested permissions as optional?
I.e. I want to write an app that requests a set of permissions, e.g. one of them being access to the user contacts. Now the application can work and do useful things without this access permission, but it can do more if it is granted.
Is there a way for and app to say "I want permission X, but you can refuse it in which case I'm happy to run with reduced functionality?"
Open Settings and tap Apps & notifications. Tap Permission manager to open the Android permission controller app. Click a specific permission from the app permissions list that you're interested in, like location. Here you'll see apps that have access to your location all the time or only while in use.
The three permission protection levels in Android are as follows: Normal Permissions. Signature Permissions. Dangerous Permissions.
When an app wants access to data or functions on your phone, such as your contacts list or the ability to send text messages, it can signal potential security or malware risks. But Android apps that request no permissions at all (such as this Magic 8 ball app) are generally considered pretty free of security risks.
I don't believe so, since permissions are set in the manifest and accepted by the user upon installing the .apk. You could build a light version of the application with reduced permissions and limited feature set and offer it as an alternative.
It is not supported and not under development as of now. Star issue 6266 on Android bug tracker if you would like to see it implemented.
Ref: http://code.google.com/p/android/issues/detail?id=6266
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With