adb-shell-pm Verified for current stable LTS

Adb Shell Pm Command: Revoke Permission

An engineer would use the 'adb shell pm revoke' command when testing an Android application to ensure it properly handles the absence of permissions, such as CAMERA or ACCESS_FINE_LOCATION, by simulating the scenario where a user has revoked those permissions. Exact CLI syntax to revoke permission using Adb Shell Pm.

When to use this: An engineer would use the 'adb shell pm revoke' command when testing an Android application to ensure it properly handles the absence of permissions, such as CAMERA or ACCESS_FINE_LOCATION, by simulating the scenario where a user has revoked those permissions.

Command Syntax

adb shell pm revoke <package> <android.permission.CAMERA|android.permission.ACCESS_FINE_LOCATION|android.permission.READ_CONTACTS|...>

Command Breakdown

adb is the base executable for this command.

FAQ

Purpose: Exact syntax to revoke permission using Adb Shell Pm.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Adb Shell Pm directory