Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have "optional" permissions in Android?

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?"

like image 962
Carsten Avatar asked Apr 19 '11 06:04

Carsten


People also ask

Can I restrict Android app permissions?

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.

How many types of permissions are there in Android?

The three permission protection levels in Android are as follows: Normal Permissions. Signature Permissions. Dangerous Permissions.

Are apps with no permissions safe?

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.


2 Answers

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.

like image 184
RawwrBag Avatar answered Oct 21 '22 15:10

RawwrBag


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

like image 45
dragon Avatar answered Oct 21 '22 13:10

dragon