DisableAppTool

pm disable-user --user 0 <pkg> — disable a system or user app for the primary user without uninstalling it (hides it from the launcher, stops background activity). Reversible via EnableAppTool. Idempotent. Success is detected by "disabled-user" in stdout.

Privilege: requires a working ShellBackend.

Params: package_name (required).

On success the result map carries success (true), package_name, and state ("disabled").

Constructors

Link copied to clipboard
constructor(shell: ShellBackend)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult