AndroidShellRuntime

class AndroidShellRuntime(workingDirectory: File) : ShellRuntime(source)

The device's own /system/bin/sh (toybox) in workingDirectory: no package manager and the app's permissions, so commands need approval by default.

Constructors

Link copied to clipboard
constructor(workingDirectory: File)

Properties

Link copied to clipboard
open override val description: String

Shown to the model, e.g. "Alpine Linux 3.24 (aarch64) with busybox and apk".

Link copied to clipboard
open override val isolated: Boolean = false

Whether commands are isolated from the app and device (a sandbox); if not, they need approval by default.

Functions

Link copied to clipboard
open suspend fun prepare()

One-time setup before the first command (e.g. installing a root filesystem); idempotent.

Link copied to clipboard
open override fun start(command: String): Process