Forrest logo
back to the adb tool

adb-shell:tldr:365cd

adb-shell: Revert all runtime permissions to their default.
$ adb shell pm reset-permissions
try on your machine

The command "adb shell pm reset-permissions" is used in Android Debug Bridge (ADB) to reset app permissions on an Android device.

When you install an app on an Android device, it requests certain permissions to access specific features or data on the device. These permissions are granted by the user during the installation process or when the app is first launched.

However, there might be situations where you want to reset the permissions for an app back to its default state. This could be because the app is misbehaving, causing issues, or not working as expected. In such cases, you can use the "adb shell pm reset-permissions" command to reset the permissions associated with the app.

By executing this command, all permissions granted to the specified app will be removed, and the app will go back to having no permissions. This means that the next time you launch the app, it will prompt you to grant permissions again. It's important to note that resetting permissions should be done with caution and only when necessary, as it may affect the functionality of the app.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adb tool