Skip to main content

ResetPermissions

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Put permissions back to asking, so the app prompts again on next use. These call app_reset_permissions.

ResetPermissions​

func (d *Device) ResetPermissions(ctx context.Context, app string) error

ResetPermissions puts permissions back to their defaults, so the app prompts again on next use.

Naming an app resets only that app's, on both platforms; on Android that stops the app if it had a permission granted. Pass "" to reset every app on the device.

Examples​

Put one app's permissions back to their defaults​

if err := dev.ResetPermissions(ctx, "com.example.shop"); err != nil {
return err
}