Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Contributing to Tetheron

Tetheron connects an Android phone to a Linux desktop. The repository holds a Kotlin and Compose app for Android (android/), a Rust workspace for the desktop (desktop/: the daemon tetherd, the GTK app tether, tether-cli) and the protobuf schemas both sides share (proto/).

Ways to help

  • Test on your phone and distribution. Tetheron is developed against a small number of devices, so a report that something works or fails on another phone model, Android skin, distribution or desktop session is useful. The supported platforms page shows what has been checked, and the verification checklists give you steps to follow.
  • Report bugs. Follow Report a bug. Report security problems privately, as described in SECURITY.md.
  • Write code. Fix a bug, finish an open item from the roadmap, or pick an issue. Say in the issue that you are working on it.
  • Improve the documentation. See Write documentation.

Translations are not possible yet. The text of both apps is in English in the source code and neither app has a translation catalogue. Adding one is a code contribution to discuss in an issue first.

Where to start

  1. Work through the tutorial. It takes you from a fresh clone to a running daemon paired with a fake phone. You need neither an Android phone nor the Android toolchain.
  2. Read the architecture page and the repository layout.
  3. Before you open a pull request, read Submit a pull request.

Pages in this guide

PageWhat it is for
Tutorial: build and run without a phoneBuild, test, run the app against a fake daemon and the daemon against a fake phone
Set up a development environmentInstall the Linux and Android toolchains and prepare a test phone
Build, run and install from sourceBuild each part, run debug builds in place of or beside the installed ones, build the APK and the .deb
Test your changesUnit tests, what CI runs, the fake backends, the manual checklists and the rules for tests on a real phone
Debug TetheronLogs on both sides, D-Bus inspection, call audio, the enhanced tier and the mirror window
Add or change a protocol featureChange proto/, the Rust side and the Kotlin side together
Submit a pull requestBranches, commit messages, sign-off and review
Write documentationPage kinds, language and Markdown conventions of this site
Package and releaseVersion numbers, tags, the .deb and the signed APK
Repository layoutWhat lives in which directory and crate
Code styleRules for Rust, Kotlin, protobuf and shell
Platform findingsBehaviour of Android, vendor skins and Linux desktops that the code depends on

Ground rules

  • Do not contribute code or knowledge obtained by reverse engineering proprietary software. Code from open-source projects may be reused only under a licence compatible with GPL-3.0, and must be credited.
  • Contributions are licensed GPL-3.0-or-later. Every commit carries a Signed-off-by line (git commit -s). There is no contributor licence agreement.
  • Reviews talk about code, not people. The code of conduct applies everywhere in the project.

Names

The project is called Tetheron. Programs, crates, D-Bus names, the Android package and paths still use tether (tetherd, tether-core, org.tether.Daemon1, org.tether.android, ~/.config/tether). They will be renamed together in a later release (see the roadmap), so do not rename them piecemeal.

How decisions are made

Anything that is expensive to reverse is recorded as an architecture decision record (ADR): the shape of the protocol, cryptography, a platform mechanism, a dependency on a system service, the packaging format, the licence. The list of ADRs answers most “why not X” questions. To change an answer, propose a new ADR that supersedes the old one in a pull request. Small implementation choices need only a code comment or a line in the pull request.

The roadmap records what each milestone contains and what has shipped. A pull request that completes a feature updates the roadmap and the feature table.