MakeAppInactiveTool

am set-inactive <pkg> true — flag an app as idle so the system applies aggressive Doze restrictions immediately rather than waiting for natural idle accumulation (useful for testing Doze behaviour). Idempotent. Treated as a command failure on non-zero exit or non-empty stderr.

Privilege: requires a working ShellBackend.

Params: package_name (required).

On success the result map carries success (true), package_name, and inactive (true).

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