Where are permissions stored in Android?

Developer's document: Requesting permissions at run time clearly indicates which permission is at run time and how to use it. And I, too, can fulfill them.

However, the question is: where does Android store resolution values ​​at runtime?

i.e. when the user deletes the data associated with the application, the permissions are reset, so where does Android store these values? (this is in the application cache or anywhere else). And in what format? (is it a database or file sharedpreferences or whatever) And how are they stored? (encoded or not encrypted).

A search of the many existing answers and developer documents, however, did not find any useful information in this regard. Any help would be greatly appreciated.

+5
source share
1 answer

I'm not sure if you found the answer to this question or not, but they are stored in:

/data/system/users/0/runtime-permissions.xml 

When a system is reset or a new user is created, the system also populates it with system application permissions to automatically grant them. I tried to explore how to automatically resolve permissions for system applications.

See more details.

+3
source

Source: https://habr.com/ru/post/1264066/


All Articles