/ $ Terminal_

by Ricardo Fernández Serrata

Version 34 (January 16, 2021)

Download (83 downloads)

An Android Command-Line-Interface Shell Terminal-Emulator. Uses Automate's Web Dialog as HTML terminal-window and communicates with the ACLI Shell (MKSH, nowadays). Made to be as similar as possible to an ADB Interactive Shell in a terminal window.

It has a prompt that prints Exit Code (only if ≠ 0) and Working Directory. If WD contains a substring equal to {storage("primary")} (Home Directory), it will be shown as "~" (similar to Linux terminals). The flow auto-detects ⚫Dark🌙(night) and ⚪Light☀️(day) modes and sets terminal-window theme accordingly.

If someone can, make a crossover between this flow and llamalab.com/automate/community/flows/27224 . The result would be the ultimate Automate Terminal.

MirBSD Korn Shell Manual: www.mirbsd.org/htman/i386/man1/mksh.htm

List of installed executable files and symlink binaries for each Android version: chromium.googlesource.com/aosp/platform/system/core/+/refs/heads/upstream/shell_and_utilities






If a user grants more privileges to Automate, they will be allowed to do more things (even if the flow doesn't request those privileges). If the user grants storage access, Automate (and this terminal) will be allowed to read/write contents of user storage via Shell.

Each time AM sends text to the shell, a new shell session starts, that's why the shell doesn't "remember" previous cmds (except CD, because of this terminal), except when used inside scripts AND/OR 1-liner multi-cmds.

"sh" command can be used to run script files and exit interactive shell during the execution of the script.

Semicolon symbol (";" without quotes) is one of the cmd delimiters (used to execute multiple cmds in sequence in just 1 line without running a script)

If a Linux Prompt prints "#", means SU. If it prints "$", means normal user. (This flow wasn't tested/debugged using root, thus is rootless)

Future changelog: Terminal-side support for "alias" command.

4.0 average rating from 1 reviews

5 stars
4 stars
3 stars
2 stars
1 star

Reviews and ratings can be submitted in the app.