/ $ Terminal_

by Ricardo Fernández Serrata

Version 46 (July 23, 2021)

Download (142 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 it's truthy), Working Directory, and type of user. If WD contains a substring equal to Home, it will be shown as "~" (like most Linux terminals). The flow auto-detects ⚫Dark🌙(night) and ⚪Light☀️(day) modes and sets window theme accordingly.

The $HOME environment variable is set, but can only be read. If you set $HOME to something else, the change will only last during the execution of the cmd line. When a new session starts, $HOME will be reset to {home}.

Input "su" to enter root mode. Likewise, use "us" to exit SuperUser mode. SU privilege is optional, only required for SU mode.

If someone can, please 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

developer.android.com/studio/command-line/adb#shellcommands

en.wikipedia.org/wiki/Computer_terminal

en.wikipedia.org/wiki/Terminal_emulator

en.wikipedia.org/wiki/Shell_(computing%29

en.wikipedia.org/wiki/Command-line_interface

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" cmd can be used to run script files even if execution permission is disabled, 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)

Terminal-side support for aliases is complicated and would require premium. I've decided to not add alias cmd

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.