PrivCommand class
Describes a non-interactive process to start in the connected server.
The command executes arguments directly. No shell is added implicitly, so
pass ['/system/bin/sh', '-c', script] when shell parsing is needed.
This class is written by hand rather than generated, because it validates its input at construction time and exposes unmodifiable collections. Both behaviours are part of its contract: the checks reject values that the native runtime would otherwise reject later with a less useful error.
Constructors
Properties
-
arguments
→ List<
String> -
Executable plus its arguments. The first entry is the executable.
final
-
environment
→ Map<
String, String> -
Extra environment variables merged into the server process environment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workingDirectory → String?
-
Absolute working directory, or
nullto inherit the server's.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Encodes the command for the Android side.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited