| Interface | Description |
|---|---|
| Debug.OnLogListener | |
| Shell.OnCommandLineListener |
Command per line callback for parsing the output line by line without
buffering It also notifies the recipient of the completion of a command
block, including the (last) exit code.
|
| Shell.OnCommandResultListener |
Command result callback, notifies the recipient of the completion of a
command block, including the (last) exit code, and the full output
|
| StreamGobbler.OnLineListener |
Line callback interface
|
| Class | Description |
|---|---|
| Application |
Base application class to extend from, solving some issues with
toasts and AsyncTasks you are likely to run into
|
| Debug |
Utility class for logging and debug features that (by default) does nothing when not in debug mode
|
| HideOverlaysReceiver |
Base receiver to extend to catch notifications when overlays should be
hidden.
|
| Policy |
Helper class for modifying SELinux policies, reducing the number of calls to a minimum.
|
| Shell |
Class providing functionality to execute commands in a (root) shell
|
| Shell.Builder |
Builder class for
Shell.Interactive |
| Shell.Interactive |
An interactive shell - initially created with
Shell.Builder -
that executes blocks of commands you supply in the background, optionally
calling callbacks as each block completes. |
| Shell.SH |
This class provides utility functions to easily execute commands using SH
|
| Shell.SU |
This class provides utility functions to easily execute commands using SU
(root shell), as well as detecting whether or not root is available, and
if so which version.
|
| StreamGobbler |
Thread utility class continuously reading from an InputStream
|
| Toolbox |
Utility class to decide between toolbox and toybox calls on M.
|
| Exception | Description |
|---|---|
| ShellNotClosedException |
Exception class used to notify developer that a shell was not close()d
|
| ShellOnMainThreadException |
Exception class used to crash application when shell commands are executed
from the main thread, and we are in debug mode.
|