ListAppPermissionsTool

dumpsys package <pkg> parsed for the app's permissions. Read-only. Scans the requested permissions:, install permissions:, and runtime permissions: sections of the dumpsys output (see parseDumpsysPermissions) and merges them by name; it does NOT classify by protection level.

Privilege: requires a working ShellBackend.

Params: package_name (required).

On success the result map carries package_name, count, and permissions — a list of { name, granted, flags } maps.

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