Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
1396a65
v2.4.0: the in-app Android API bridge, the defensible permission prof…
GlobalTechInfo Nov 3, 2026
7d65afc
Zero-warning compile: reach the withdrawn members by name, not by ref…
GlobalTechInfo Nov 3, 2026
e05fb39
api bridge: project guest paths to the session rootfs, bound the unbo…
GlobalTechInfo Nov 4, 2026
896325d
api: fix CodeRabbit findings across bridge/parser/ui, rebuild helper,…
GlobalTechInfo Nov 4, 2026
73182a3
api: fix lint indentation in SafApi
GlobalTechInfo Nov 4, 2026
50fa90b
api: stop the socket handler dying without an answer; pin the rootfs-…
GlobalTechInfo Nov 4, 2026
4873b70
api: make every socket-connection outcome observable
GlobalTechInfo Nov 4, 2026
4838934
api: read the request inline on the request thread, not on a separate…
GlobalTechInfo Nov 5, 2026
4dc7f89
api: keep stop/start reachable, fix the SAF tree picker, quiet the pe…
GlobalTechInfo Nov 5, 2026
7d2b1f8
v2.4.1: the tool screens - workspaces, startup hook, snippets, dashbo…
GlobalTechInfo Nov 8, 2026
ba408fc
v2.5.0: install a distro from a file, URL, or Docker/OCI image
GlobalTechInfo Nov 11, 2026
d9c1483
Distro catalogue: Amazon Linux 2027 and NixOS; dnf without its -q
GlobalTechInfo Nov 12, 2026
1c2e569
Catalogue shas to the published digests; sudo shim into every bin dir
GlobalTechInfo Nov 12, 2026
a856153
Catalogue: NixOS to the live image with nix in it; Amazon card; 2.5.0
GlobalTechInfo Nov 14, 2026
b703526
Merge branch 'main' into feature/termux-api
GlobalTechInfo Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .fdroid/com.redtermapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License: GPL-3.0-or-later
WebSite: https://github.com/GlobalTechInfo/RedTerm
SourceCode: https://github.com/GlobalTechInfo/RedTerm
IssueTracker: https://github.com/GlobalTechInfo/RedTerm/issues
Changelog: https://github.com/GlobalTechInfo/RedTerm/blob/v2.4.0/CHANGELOG.md
Changelog: https://github.com/GlobalTechInfo/RedTerm/blob/v2.5.0/CHANGELOG.md

Description: |
RedTerm is a full terminal environment for Android. It installs real Linux
Expand All @@ -15,7 +15,7 @@ Description: |

Included:

* 20 Linux distributions: Alpine, Debian, Ubuntu, Kali, Fedora, Rocky,
* 20+ Linux distributions: Alpine, Debian, Ubuntu, Kali, Fedora, Rocky,
AlmaLinux, Void, Arch, Manjaro and openSUSE, for arm64-v8a, armeabi-v7a,
x86_64 and x86.
* A built-in OpenSSH client and server, so you can reach a machine over SSH
Expand All @@ -33,9 +33,9 @@ Description: |
# Screenshots are referenced by URL from the release tag, so no copies live in
# the repository and nothing has to be duplicated or rewritten.
Screenshots:
- 1: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.4.0/screenshots/home.jpg
- 2: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.4.0/screenshots/main.jpg
- 3: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.4.0/screenshots/terminal.jpg
- 4: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.4.0/screenshots/sessions.jpg
- 5: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.4.0/screenshots/settings.jpg
- 6: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.4.0/screenshots/notification.jpg
- 1: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.5.0/screenshots/home.jpg
- 2: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.5.0/screenshots/main.jpg
- 3: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.5.0/screenshots/terminal.jpg
- 4: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.5.0/screenshots/sessions.jpg
- 5: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.5.0/screenshots/settings.jpg
- 6: https://raw.githubusercontent.com/GlobalTechInfo/RedTerm/v2.5.0/screenshots/notification.jpg
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,62 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.5.0]

### Added

- **Amazon and NixOS added to the catalogue**: images built by the rootfs-images pipeline,
installable from the Welcome screen, each with its own icon.
- **NixOS ships nix itself, so a session installs packages over the network**: the image
keeps the nix tool family and the nixpkgs registry source, and `nix profile install
nixpkgs#nodejs`, `nix shell nixpkgs#git` and `nix run nixpkgs#hello` substitute from
cache.nixos.org into the session's writable store. The base tools move with a newer
image; in-session installs do not.
- **The nixpkgs channel is registered on the live alias**: the image's channel table
points at nixpkgs-unstable, because the nixpkgs-26.05 alias no longer resolves.
The classic channel *update* (the nix-channel/nix-env unpack) cannot finish under
proot — it is nix's own privileged unpack step, and a proot session cannot satisfy
it — so the registry commands above are the supported install path, and the table's
job is environment completeness, not update-ability.
- **Named the CA bundle, so HTTPS verifies**: the store's openssl was built against a
prefix the image prune removes, so its compiled-in certificate paths were dead and
standalone `curl` and `git` over HTTPS failed verification (curl rc=60), measured.
The session now exports `CURL_CA_BUNDLE` and `SSL_CERT_FILE` to the kept nss-cacert
bundle; HTTPS works without anything else.

- **Custom distro installer**: install a distro from a tarball, a URL, or a Docker/OCI image,
instead of only the catalogue. Reached from the Welcome screen, the Distro dashboard, and
Settings → More tools. Registry images are pulled through the registry-v2 flow (anonymous
token, per-arch manifest selection) and the layers unpacked in order; the compression of a
file or URL is read from its own magic bytes, never the extension.
- **Mosh reachability probe**: when a mosh session produces no output, probe whether the host's
UDP port is actually reachable, so a blocked-UDP path is told apart from "the server has no
mosh" and a working tunnel is suggested.
- **Recording GIF export and playback speed**: export a session recording to GIF, and step the
player through 0.5×/1×/2×/4×.
- **Workspace pin and split-open**: pin a workspace to the home screen, and open a two-session
workspace straight into a split pane.
- **Scheduled job history and backoff**: each job shows its recent runs (with an output tail in
the notification), and consecutive failures back off the next retry before it gives up.
- **Workspaces**: bundled shells, servers, theme and snippets that open in one tap (Settings → More tools → Workspaces).
- **Startup-hook GUI**: edit the guest startup hook written into a distro (Settings → More tools → Startup hook).
- **Snippet library**: save commands and paste them into any session (Settings → More tools → Snippets).
- **Distro dashboard**: per-distro version, size, updates and disk (Settings → More tools → Distro dashboard).
- **SSH tunnel manager**: open and close standalone `ssh -N` tunnels that keep a server's saved
forwards open with no terminal in front of them. Reached from the SSH screen.
- **SFTP transfer queue**: parallel, resumable SFTP transfers. Reached from the SFTP browser's menu.
- **Scheduled guest jobs**: run guest commands on a schedule (Settings → More tools → Scheduled jobs).
- **Local port forward**: open device ports that reach a target, any number at once and across
any servers. A target is either the device itself (a guest service bound to `127.0.0.1` in a
proot distro) or a saved SSH server, in which case the forward rides `ssh -N -L` and the
remote host:port is reached through the connection. Reached from the SSH screen.
- **Recording index**: recordings are listed newest-first and searchable on the Recordings screen.
- **Settings**: eight feature rows consolidated into a single "More tools" hub.

### Fixed

- **RedTerm:API bridge stop**: the redterm-api listener stops cleanly when a session ends instead of lingering.

## [v2.4.0]

### Added
Expand Down
8 changes: 6 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "com.redtermapp"
minSdk = 24
targetSdk = 37
versionCode = 8
versionName = "2.4.0"
versionCode = 9
versionName = "2.5.0"
}

signingConfigs {
Expand Down Expand Up @@ -53,6 +53,10 @@ android {
abortOnError = true
warningsAsErrors = false
checkDependencies = true
// UseKtx is a false positive on Bitmap.createBitmap (the GIF exporter's
// only use of it): there is no KTX equivalent for that static factory,
// so the rule just manufactures a warning it cannot actually be fixed.
disable += "UseKtx"
}

packaging {
Expand Down
50 changes: 50 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,56 @@
android:theme="@style/Theme.RedTermApp"
android:windowSoftInputMode="adjustResize" />

<activity
android:name=".ui.WorkspaceActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.StartupHookActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.SnippetLibraryActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.DistroDashboardActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.TunnelManagerActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.TransferQueueActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.ScheduledJobsActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.LocalPortForwardActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.LocalDistroInstallActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.MoreToolsActivity"
android:exported="false"
android:theme="@style/Theme.RedTermApp" />

<activity
android:name=".ui.DistroDiagnosticsActivity"
android:exported="false"
Expand Down
Binary file added app/src/main/assets/distro-icons/amazonlinux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/distro-icons/nixos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions app/src/main/java/com/redtermapp/RedTermApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class RedTermApp : Application() {
// socket while the app's process is up; a dead process reads as "the
// app is not running", which the guest helper reports honestly.
com.redtermapp.util.api.ApiSocket.start(this)
resumeStandaloneSsh()
createNotificationChannel()
loadRootfsCatalogue()
verifyMoshNative()
Expand Down Expand Up @@ -99,6 +100,30 @@ class RedTermApp : Application() {
* wrong one, and -1 means an exception escaped the native layer. "It did not work"
* and "it threw" are different bugs.
*/
/**
* Standalone `ssh -N` processes outlive the app that started them: Android
* reclaims the process and reparents its children to init, so a tunnel or
* forward the user asked to keep open keeps running with no app to manage
* it. On a cold start we reap those orphans and re-open whatever the
* on-disk record says was open.
*
* Off the main thread: the re-open writes launcher scripts and can run the
* binary extraction, and neither belongs at process start.
*/
private fun resumeStandaloneSsh() {
Thread({
val ctx = applicationContext
if (!com.redtermapp.util.SshClient.ensureInstalled(ctx)) return@Thread
com.redtermapp.ui.OrphanSweeper.sweep(ctx)
val tunnels = com.redtermapp.ui.TunnelManager.resumeAll(ctx)
val forwards = com.redtermapp.ui.ForwardManager.resumeAll(ctx)
com.redtermapp.util.AppLog.i(
ctx, "port-forward",
"cold start: reaped orphans, re-opened $tunnels tunnel(s), $forwards forward(s)"
)
}, "redterm-ssh-resume").apply { isDaemon = true }.start()
}

private fun verifyMoshNative() {
val ctx = applicationContext
Thread({
Expand Down
Loading
Loading