Where are protection levels defined in AOSP?

by Lukhio   Last Updated July 12, 2019 10:11 AM - source

I'm trying to understand how the protection level flags work for Android permissions. I've found the list of available flags here: https://developer.android.com/reference/android/R.attr.html#protectionLevel however the documentation is not very helpful.

Most of these flags are defined in PermissionInfo.java (here: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/content/pm/PermissionInfo.java) but not all of them. Specifically, it's missing wellbeing, documenter, configurator, incidentReportApprover and appPredicator). Where are those flags defined if not in the framework classes?

Tags : permissions

Related Questions