Declaring Permissions in the App Manifest

Learn about declaring app permissions in the AndroidManifest file for the system.

There are two categories of app permissions in Android: install and runtime permissions. We must declare both of them in the AndroidManifest.xml file. In this lesson, we’ll learn how to declare permissions in the Android app manifest.

Granting permissions

If our application needs one or more permissions, we must declare them in the AndroidManifest.xml file. The Android Play Store parses the manifest file to check the permissions that are being requested by the app. The install time permission is automatically granted during the app installation. In contrast, to acquire the runtime permissions, we must perform some additional steps. Regardless of the type of permission, we need to declare the permission in the AndroidManifest.xml in order for the system or the user to grant it to the application.

Add declaration to the app manifest

We can use the <uses-permission> tag to declare permissions in the AndroidManifest.xml file. For example, an app that needs to access the internet needs to declare it in the manifest file.

Get hands-on with 1200+ tech skills courses.