Steps to Grant Permissions Using ADB in Android

By | January 17, 2022

Most Android apps can easily request basic permissions like storage or camera access. However, some apps require system level permissions to function properly. Rooting your phone can overcome this, but it is a complex and sometimes unnecessary process. Instead, you can use the ABD command to grant advanced privileges. In this article we will explain what ADB is and how to use it to grant permissions in Android.

How to grant permission to ADB

Before using the command, you need to establish an ADB connection with your device. ADB commands are the same on all operating systems, so using Windows, Mac, or Linux makes little difference. However, Windows users must use PowerShell, and Mac and Linux users must use a terminal or shell to run ADB commands.

  1. Download SDK Tools

Visit the Android developer website and download the SDK-Tools platform file for your operating system. This step is reserved for Windows users. If you are using Mac or Linux, go to the next step. If you are a Windows user, go to the location where you downloaded the ZIP file. Now unzip the ZIP and click once on the platform-tools folder.

  1. Unzip the ZIP

These steps are for Windows users only. If you are using Mac or Linux, proceed to the next step. If you are a Windows user, go to the location where you downloaded the ZIP file. Now unzip the ZIP and click once on the platform-tools folder.

  1. Open PowerShell or Terminal

If you’re using Windows, hold down the Alt key and press F, then S, then A. This key combination opens PowerShell as administrator. If you are using Linux or Mac, you need to open a terminal in the same folder where the contents of the platform-tools folder are stored.

  1. Enable Developer Options

If you haven’t already, you should now enable developer options on your smartphone. To do this, go to Settings > About phone and tap on the build number. When prompted for a password, enter your lock screen password.

  1. Enable USB debugging and connect your phone.

Now go to developer options and enable USB debugging. Hurry up and confirm when prompted by a pop-up window. Finally, connect your phone to your computer using a USB cable.

  1. Check device connection

Enter the command below in PowerShell or Terminal to check if the device is connected successfully. If your device’s unique serial number is not displayed after entering the above command, it means there is a problem on your side. This mainly happens when your PC cannot detect the ADB driver for your device.

  1. Allow USB Debugging

If this is your first time using ADB commands, a pop-up window will appear on your phone asking if you want to allow USB debugging after step 6. Select the Always allow from this computer check box and click to allow.

  1. Enter the ADB command

Now type the following command in PowerShell or Terminal. Finally, you can use this command to grant permission to any app using ADB.

If face any issue, you can take help of Android Data Recovery Tool.

Leave a Reply

Your email address will not be published. Required fields are marked *