Package Management Android 6.0+ (API 23+) Risk: MODIFIES_DEVICE

Grant Runtime Permission to App

Grants a specific Android runtime permission to an application without UI prompt.

Command Syntax

adb shell pm grant
Generic Syntax: pm grant [--user <USER_ID>] <package-name> <permission-name>

Options & Parameters

Flag Description
--user <ID> Grant permission for specified user profile.

Real-World Usage Examples

Grant location permission
Grants fine location permission.
adb shell pm grant com.example.app android.permission.ACCESS_FINE_LOCATION
Grant WRITE_SECURE_SETTINGS to automation tool
Grants secure settings write privilege.
adb shell pm grant com.joaomgcd.tasker android.permission.WRITE_SECURE_SETTINGS