I was looking at the classes related to permissions on Android and I have a couple of questions.
In BasePermission class, I see three fields defined: TYPE_NORMAL, TYPE_BUILTIN and TYPE_DYNAMIC. What do these represent? I'm guessing TYPE_DYNAMIC is for when addPermission() API method is used dynamically by the app to create a permission, but I'm not at all sure about the other two. Does Android keep track of how permissions were created (i.e., defined by the system, a system app or a third-party app)? It seems that PermissionInfo class keeps track of some flags, but I couldn't find any flag that directly corresponded to how the permission was created.
Thanks so much in advance!