An action block that executes a shell command as superuser (root).
The fiber will pause until the command has completed.
The command should be formatted as it would when executed at a shell prompt, that includes proper escaping. Use the cliEncode function when including a filename or other text as an argument.
The standard output and error will contain the full text as generated by the command during its execution.
The exit code is usually set to 0
(zero) for a successful execution of the command.
On Android 11+ the contents of /data/data/
may be inaccessible or immutable,
it may be possible to access it though
/data_mirror/data_ce/null/0/
or /data_mirror/data_de/null/0/
instead.
Caution! Don’t execute a command that will shutdown or reboot the device as that may cause a boot loop.
Note! This feature isn’t officially supported, requires a rooted device, may not work on all devices.