The following question is similar to this. how are android security permissions checked at run-time?
But the platform.xml file doesn't contain gid for location permissions. Where can i find it?. In which source code is the location permissions are managed?. I'm new to the AOSP