Search code examples
androidandroid-permissions

How does Android prevent apps from getting permissions which are not assigned to them?


  • How does it work internally?

  • If the app does not have access to the permission, i.e: the GIDs are not associated with this app process then the process does not get the permission.

  • Eg: INTERNET permission. Say the developer forgot to mention this permission in the Android Manifest file.Therefore, what happens next when the process tries to communicate with the internet?


Solution

  • Thanks for the help. I looked into it and it seems I should read in the underlying Linux architecture to better understand how this works.