Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is <permission-tree> in android manifest ? How to make use of this?

Using "permission" and "uses-permission" tags we can give and access permissions. Then why we need "permission-tree", In which way it is useful?

like image 385
Shree Avatar asked Jun 28 '13 17:06

Shree


People also ask

How do I declare permissions in Android manifest?

Add declaration to app manifest To declare a permission that your app might request, include the appropriate <uses-permission> element in your app's manifest file. For example, an app that needs to access the camera has this line in AndroidManifest. xml : <manifest ...>

What is permission tag in manifest file?

contained in: <manifest> description: Declares a security permission that can be used to limit access to specific components or features of this or other applications.

What is the uses permission in Android?

description: Specifies a system permission that the user must grant in order for the app to operate correctly. Permissions are granted by the user when the application is installed (on devices running Android 5.1 and lower) or while the app is running (on devices running Android 6.0 and higher).


2 Answers

permission-tree allows an application to declare a namespace of permissions, in which it can dynamically at runtime define new permissions. This is used example, by google's service APIs to have a namespace for individual permissions to each google service that it discovers at runtime.

like image 93
stinepike Avatar answered Sep 21 '22 10:09

stinepike


permission-tree is namespace and used for adding new permissions at run time. If you want to add new permissions then that should be defined earlier or used by any other application previously with same key. This feature is back-> forward means you can use for your comfort (if you don't want to give set of permission again).

like image 30
Sudhir Yadav Avatar answered Sep 22 '22 10:09

Sudhir Yadav