InstallApkTool

pm install [-r] <path> — silently install an APK from a local file path, with no user prompt. The path must be absolute, end in .apk, and contain no .. segments (so it can't be mistaken for a pm option); beyond that the host is trusted to vet it — there is no storage sandbox here (the ShellBackend is the privilege boundary), and ANY readable APK can be installed, including ones that request dangerous permissions. Success is detected by "Success" in stdout.

Privilege: requires a working ShellBackend (Shizuku shell-UID or root).

Params: path (required, absolute apk path), replace (optional, default true → adds -r).

On success the result map carries success (true) and path.

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 outputSchema: Map<String, Any>
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