Skip to content

Add Android companion and fix Termux startup - #1

Open
benfirad wants to merge 2 commits into
buildwithparallel:masterfrom
benfirad:agent/android-serial-fallback
Open

benfirad wants to merge 2 commits into
buildwithparallel:masterfrom
benfirad:agent/android-serial-fallback

Conversation

@benfirad

@benfirad benfirad commented Aug 9, 2026 •

Copy link
Copy Markdown

What changed

  • Fix Android/Termux startup when PySerial's native port enumerator is unavailable.
  • Add a dependency-free native Android companion that renders only the local Crosstalk service.
  • Add a fixed-command Termux controller for start, stop, restart, status, and logs.
  • Preserve the existing Reticulum identity and application data in Termux.
  • Bind the backend to 127.0.0.1:8000; cleartext traffic is permitted only for localhost.
  • Route external links to the system browser and keep WebView file access/debugging disabled.
  • Add Android APK build instructions and CI coverage.

Validation

  • 31 Python tests pass.
  • Frontend production build passes.
  • Backend package build passes.
  • Android APK builds and verifies with v2/v3 signatures.
  • Tested on a rooted Samsung SM-G965F running Android 10 in portrait and landscape.
  • Verified stop-to-auto-start lifecycle from the Android companion.
  • Verified the Reticulum identity hash is unchanged across backend restart.

The Android shell intentionally keeps the Python/Reticulum backend in Termux. This avoids shipping a second runtime and, more importantly, preserves the user's existing identity and storage.

@benfirad benfirad changed the title Prevent Android startup failure during serial port discovery Add Android companion and fix Termux startup Aug 9, 2026
@benfirad
benfirad marked this pull request as ready for review August 9, 2026 19:45
@dataslayermedia

Copy link
Copy Markdown
Collaborator

Leaving this open rather than merging as-is.

The serial-port Android/Termux startup fix is useful, but the rest is a large first-time Android companion: native WebView, Termux RUN_COMMAND plus allow-external-apps=true, a debug-signed APK, and CI that runs sdkmanager on a stock Ubuntu runner with no Android SDK setup.

A smaller PR with just the serial fallback (and tests) would be much easier to land. No need to add secrets or a release signing key to get there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants