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|...> 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
Adb Shell Pm Command: Clear App Data
adb shell pm clear <package> Adb Shell Pm Command: List Installed Packages adb shell pm list packages Adb Shell Pm Command: Install App Package adb shell pm install /<path/to/app>.apk Adb Shell Pm Command: Uninstall Package adb shell pm uninstall <package> Adb Shell Pm Command: Enable Package adb shell pm enable <package_or_class>