Opengapps: QUESTION: Is there an explanation of /system/etc/default-permissions/?

Created on 24 Jul 2017  路  4Comments  路  Source: opengapps/opengapps

Hi,
is there an explanation of /system/etc/default-permissions/?

I would like to know if possible how it exactly work and when it is used by the ROM.

support request (use XDA!)

Most helpful comment

I assume it's what permissions get granted when you click the reset permissions button.

All 4 comments

I assume it's what permissions get granted when you click the reset permissions button.

Thanks for the reply but I meant a technical explanation of the format and of what can be used.
I want to know exactly instead of guessing it from existing files.

This is the list of permissions that are granted by the system to various apps when the ROM boots up so that they can work out of the box. Thats how google apps work as soon as you turn on your phone.

There is a comment explaining this here: https://android.googlesource.com/device/google/marlin/+/nougat-dr1-release/default-permissions.xml

Also, check this out, this is changed a bit in 8.0:
https://source.android.com/devices/tech/config/perms-whitelist

Thanks for the reply but I have some doubts:

  • Does the xml need to list only permissions that are asked at runtime or all permissions needed by the app?
  • Also if in the xml it contain a permission not supported by the ROM does it only ignore it or there can be problems?
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ultraboss77 picture Ultraboss77  路  6Comments

mahmud2011 picture mahmud2011  路  5Comments

mrjayviper picture mrjayviper  路  6Comments

dim0x69 picture dim0x69  路  11Comments

Enigma0 picture Enigma0  路  8Comments