Critical Risk →

uninstall_app

卸载应用

How to control uninstall_app ↓

What uninstall_app does on Adb

AI agents call uninstall_app to permanently remove resources in Adb — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Critical Risk

Why uninstall_app needs a policy

Uninstalling an app permanently removes it and all associated data from the device. This action cannot be undone without reinstalling, making it destructive. While not as critical as wiping a device, unauthorized uninstallation of system apps or user apps could disrupt device functionality or cause data loss.

From the tool's definition Tool name 'uninstall_app' and description '卸载应用' (uninstall application in Chinese) indicate irreversible removal of an application from the Android device.

Documented attack patterns abuse exactly the kind of access uninstall_app gives an agent:

How to control uninstall_app

PolicyLayer is an MCP gateway — it sits between your AI agents and Adb, and nothing reaches the server without passing your rules. This is the rule we recommend for uninstall_app:

policy.json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "uninstall_app"
  ]
}

uninstall_app disappears from the agent's tool list entirely, and any attempt to call it is denied. The rest of the server keeps working.

  1. Create a free account and register Adb — nothing to install.
  2. Add this policy — paste it, or build it visually.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
RESTRICT THIS TOOL →

Free to start. No card required.

Related tools and policies

Go deeper

Questions about uninstall_app

What does the uninstall_app tool do? +

卸载应用. It is categorised as a Destructive tool in the Adb MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on uninstall_app? +

Register the Adb MCP server in PolicyLayer and add a rule for uninstall_app: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Adb. Nothing to install.

What risk level is uninstall_app? +

uninstall_app is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit uninstall_app? +

Yes. Add a rate_limit block to the uninstall_app rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block uninstall_app completely? +

Set action: deny in the PolicyLayer policy for uninstall_app. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides uninstall_app? +

uninstall_app is provided by the Adb MCP server (wolfcoming/adb_mcp_server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Adb tool call.

Start from Adb, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.

Free to start. No card required.

48 Adb tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.