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
- 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.
- Read the architecture page and the repository layout.
- Before you open a pull request, read Submit a pull request.
Pages in this guide
| Page | What it is for |
|---|---|
| Tutorial: build and run without a phone | Build, test, run the app against a fake daemon and the daemon against a fake phone |
| Set up a development environment | Install the Linux and Android toolchains and prepare a test phone |
| Build, run and install from source | Build each part, run debug builds in place of or beside the installed ones, build the APK and the .deb |
| Test your changes | Unit tests, what CI runs, the fake backends, the manual checklists and the rules for tests on a real phone |
| Debug Tetheron | Logs on both sides, D-Bus inspection, call audio, the enhanced tier and the mirror window |
| Add or change a protocol feature | Change proto/, the Rust side and the Kotlin side together |
| Submit a pull request | Branches, commit messages, sign-off and review |
| Write documentation | Page kinds, language and Markdown conventions of this site |
| Package and release | Version numbers, tags, the .deb and the signed APK |
| Repository layout | What lives in which directory and crate |
| Code style | Rules for Rust, Kotlin, protobuf and shell |
| Platform findings | Behaviour 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-byline (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.