diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7769f98 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +User-visible changes of the apps and the `tsgw` gateway. The format follows +[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow +[docs/release.md](docs/release.md#versioning). + +## [Unreleased] + +The first release is in preparation. + +### Added + +- Desktop app (Linux Wayland/X11, Windows): servers and bookmarks, channel + tree with talking indicators, server and channel chat, voice with + push-to-talk (global hotkeys), voice activation, echo cancellation, noise + suppression and gain control, per-user volume. +- Observing a server invisibly and chatting in channels without joining + them, through the `tsgw` gateway or own ServerQuery credentials. +- TeamSpeak 6 streams: watching and sharing screens with sound (VP8, VP9, + optional H.264 through Cisco's OpenH264, AV1 decoding). +- `tsgw`: companion gateway for server admins (presence, channel chat + relay, history). +- Opt-in local crash reports; third-party notices in the About page. diff --git a/README.md b/README.md index 3aa1698..4b9f4eb 100644 --- a/README.md +++ b/README.md @@ -95,5 +95,9 @@ The vendored crates in `crates/proto/` are `MIT OR Apache-2.0` (upstream `LICENSE-MIT` / `LICENSE-APACHE` are kept there). New crates are declared under the same terms in `Cargo.toml`. -Third-party notices: the UI toolkit, Slint, is used under its royalty-free license, which -requires an attribution in the app's About page. +Third-party notices: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md), generated from +`Cargo.lock` by `scripts/notices.sh` and shown in the app's About page. The UI toolkit, +Slint, is used under its royalty-free license, which requires an attribution in the +About page. + +Security issues: see [SECURITY.md](SECURITY.md). Releases: [docs/release.md](docs/release.md). diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..7e2d34b --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,64 @@ +# Security + +## Reporting a vulnerability + +Please report security problems privately through GitHub: **Security > +Report a vulnerability** on +https://github.com/Faumaray/teamspeak_client_rs (private vulnerability +reporting). Do not open a public issue for them. If private reporting is not +available, open an issue asking for a contact, without details. + +Include what is affected (desktop app, Android app, `tsgw` gateway, `tsctl`), +the version or commit, and how to reproduce. You should get an answer within +a week. Fixes are released as soon as they are ready and credited in the +changelog unless you prefer otherwise. + +Supported versions: until 1.0, only the latest release gets fixes. + +In scope: this repository's code and its packages. Problems in TeamSpeak +servers or the official clients belong to TeamSpeak Systems GmbH; problems in +dependencies to their projects (tell us too if this client is affected). + +## What the client stores + +Everything stays on the device; there is no telemetry and no account with +us. + +| What | Where | Protection | +|---|---|---| +| Identities (TeamSpeak private keys) | SQLite database `client.db` in the data directory (`~/.local/share/tsc`, Flatpak `~/.var/app//data/tsc`, `%APPDATA%\tsc`, Android app storage) | File permissions of the user account only; not encrypted. An identity is the account on every server that knows it: back it up, do not share the file | +| Server and ServerQuery passwords | OS keyring (Secret Service, Windows Credential Manager, Android Keystore), service `tsc-client` | Keyring; kept in memory for the session only when there is no keyring | +| Bookmarks, settings, chat history | `client.db` | File permissions; history stays until deleted | +| Crash reports (opt-in) | `crash-reports` in the state directory (`~/.local/state/tsc`, `%LOCALAPPDATA%\tsc`) | Local only, never uploaded. They contain the panic message and a backtrace, which may include server addresses or names; review before attaching one to an issue | +| OpenH264 (opt-in) | Downloaded from Cisco into the app's directories | Loaded only if its SHA-256 matches a known Cisco build | + +## What others can see + +- **Voice connections** use the TeamSpeak protocol's encryption. The server + and its admins see what any client sees: your nickname, identity, IP + address, channel and messages. +- **Streams (TeamSpeak 6)** are peer-to-peer WebRTC (DTLS-SRTP). Viewers and + streamers exchange ICE candidates, so **they learn each other's IP + addresses**, including local network addresses. Only watch and share + streams with people you are fine sharing your address with. +- **Relayed channel chat** (gateway or own ServerQuery login) is posted by a + query client as `[Nick] text`; people in that channel see it came through + a relay. + +## What the gateway (`tsgw`) stores + +The gateway is run by a server admin (see +[docs/gateway-admin.md](docs/gateway-admin.md)). In its SQLite database +(`history.path`, default `tsgw.db`): + +| Table | Contents | Retention | +|---|---|---| +| `tokens` | SHA-256 hashes of login tokens (never the tokens), the user's unique id and database id, expiry | Removed after expiry (`auth.token_ttl_hours`, default 30 days) | +| `messages` | Relayed server and channel chat: target, time, author unique id and name, text | `history.retention_days` (default 30); disable with `history.enabled = false` | +| `audit` | Time, unique id and action of every login and post | Not pruned automatically; the admin should rotate it | + +It holds no voice and no passwords of users: users log in by signing a +challenge with their identity key. The gateway's own ServerQuery credentials +(usually with admin rights) are in its config file, a password file or +`TSGW_QUERY_PASSWORD`: keep them readable only by the gateway's user. Serve +the gateway over TLS (`wss://`) only; tokens travel in its messages. diff --git a/docs/i18n.md b/docs/i18n.md new file mode 100644 index 0000000..460d7de --- /dev/null +++ b/docs/i18n.md @@ -0,0 +1,135 @@ +# Translations + +The UI is translated with Slint's gettext-based translations: strings in +`.slint` files are marked with `@tr(...)`, extracted into a `.pot` template, +translated in `.po` files, and **compiled into the binary** (Slint's bundled +translations). Nothing is loaded at runtime, so there is no dependency on +GNU gettext (LGPL) and it works the same on Linux, Windows and Android. + +## Marking strings + +In `.slint` files every user-visible string goes through `@tr`: + +```slint +Button { text: @tr("Connect"); } +Text { text: @tr("Connected to {}", server-name); } // arguments: {} or {0} {1} +Text { text: @tr("{n} user online" | "{n} users online" % count); } // plurals +Text { text: @tr("menu" => "Quit"); } // explicit context +``` + +- Whole sentences with placeholders, never concatenated fragments: word + order differs between languages. Use `{0}`, `{1}` when there are several + arguments, so translators can reorder them. +- Plurals always with the `|` / `%` form, even if English only needs two + forms; other languages have more. +- Not translated: nicknames, channel and server names, chat text, protocol + identifiers, the product name, log messages. +- By default the context of a string is the name of the component it is in, + so the same English word can be translated differently in different + places. Renaming a component therefore invalidates its translations until + they are merged again (`msgmerge` keeps them as fuzzy). + +Strings produced in Rust (error messages, notification texts, status lines) +cannot use `@tr`. Keep the wording in Slint: an exported global with pure +functions that the Rust code calls, e.g. + +```slint +export global Strings { + pure public function connection-lost(reason: string) -> string { + return @tr("Connection lost: {}", reason); + } +} +``` + +```rust +let text = window.global::().invoke_connection_lost(reason.into()); +``` + +Errors from lower layers (protocol, IO) are shown as details after a +translated sentence; they stay in English. + +## Files + +``` +crates/tsc-ui/lang/ + tsc-ui.pot template, generated + de/LC_MESSAGES/tsc-ui.po one directory per language (gettext locale name) + pt_BR/LC_MESSAGES/tsc-ui.po +``` + +The file name is the translation domain, which is the crate name +(`tsc-ui`); Slint's build looks for `lang//LC_MESSAGES/.po`. + +## Workflow + +Tools (developer machines only): `cargo install slint-tr-extractor`, and +GNU gettext for `msgmerge` / `msginit` (`gettext` package; on Windows from +MSYS2 or Git for Windows' bundled tools). + +```sh +# 1. Extract the template after changing strings +slint-tr-extractor --package-name tsc-ui crates/tsc-ui/ui/*.slint -o crates/tsc-ui/lang/tsc-ui.pot + +# 2. Update every translation (new strings empty, changed ones fuzzy) +for po in crates/tsc-ui/lang/*/LC_MESSAGES/tsc-ui.po; do + msgmerge --update --backup=none "$po" crates/tsc-ui/lang/tsc-ui.pot +done + +# 3. Start a new language +mkdir -p crates/tsc-ui/lang/de/LC_MESSAGES +msginit --no-translator --locale=de --input=crates/tsc-ui/lang/tsc-ui.pot \ + --output-file=crates/tsc-ui/lang/de/LC_MESSAGES/tsc-ui.po +``` + +Translators edit the `.po` files (Poedit, Lokalize, or a hosted service +such as Weblate pointed at `crates/tsc-ui/lang`). Fuzzy and untranslated +entries fall back to English. Run the extraction when strings change and +before each release (string freeze, see [release.md](release.md)). The +template carries a creation date and source line numbers, so CI does not +compare it exactly; a stale template only means new strings are not +translatable yet. + +## Bundling and language selection + +`crates/tsc-ui/build.rs` compiles the translations into the binary: + +```rust +slint_build::compile_with_config( + "ui/app.slint", + slint_build::CompilerConfiguration::new() + .with_style("fluent-dark".into()) + .with_bundled_translations("lang"), +) +``` + +slint-build tracks the `.po` files, so edits rebuild. It fails ("No +translations found") while `lang/` has no `.po` file yet, so enable it +together with the first language. + +At startup Slint picks the translation matching the system locale (exact +match such as `pt_BR` first, then the language `pt`), English otherwise. A +language setting in the app (stored in the settings, "System" by default) +calls `slint::select_bundled_translation("de")` after the window has been +created; `""` or `"en"` selects English. Changing it takes effect +immediately for all `@tr` strings. + +The desktop app (tsc-ui) and the Android app share the `.slint` files and +therefore the translations. Texts outside Slint need their own mechanism: + +- Android system texts (foreground service notification, permission + rationale): Android string resources in `android/app/src/main/res/values-/`. +- Desktop file and AppStream metainfo: translated with `itstool` / `msgfmt + --desktop` / `msgfmt --xml` from `.po` files when there are translations + for the app itself. + +## Checks + +- A pseudo-translation catches unmarked strings and truncation: create a + test language (e.g. `lang/eo/`) with `msgen` from the template, replace + the texts with longer accented versions, and select it with the language + setting (or `LANG=eo.UTF-8` on Linux). +- Test at least one language with longer words (German) and one with a + different script (Russian) on every screen before a release (manual + matrix row GE7). +- Dates and numbers are formatted in Rust; use unambiguous formats + (ISO dates, 24-hour times) until there is locale-aware formatting. diff --git a/docs/release.md b/docs/release.md new file mode 100644 index 0000000..f187648 --- /dev/null +++ b/docs/release.md @@ -0,0 +1,179 @@ +# Releasing + +How a release is versioned, built, signed and checked. The product name and +app id are still placeholders (see [packaging/README.md](../packaging/README.md)); +rename them before the first public release, since the app id cannot change +afterwards on Flathub or Google Play. + +## Versioning + +- One version for the apps: `version` of `crates/tsc-ui` (desktop; the + installer and the About page read it), `crates/tsc-android` and the + Android app's `versionName`. Semantic versioning; before 1.0 a minor bump + may break settings or the gateway protocol, and the changelog says so. +- Android `versionCode` must grow with every upload: + `major * 1000000 + minor * 1000 + patch` (0.2.3 is 2003). +- The gateway `tsgw` (`crates/tsc-gateway`) is versioned on its own, since + server admins update it separately. Its wire protocol is versioned in the + WebSocket subprotocol (`tsgw.v1+json`); a breaking change needs `v2` and a + period in which the gateway serves both. +- Library crates are not published (`publish = false`) and keep their + versions. +- Tags: `v` for the apps (`v0.2.0`), `tsgw-v` for the + gateway. Tags are annotated and signed (`git tag -s`). + +## Changelog + +`CHANGELOG.md` follows [Keep a Changelog](https://keepachangelog.com/). Every +change a user or server admin notices adds a line under `Unreleased` +(Added / Changed / Fixed / Removed / Security). At release the section gets +the version and date, and its highlights also go into the `` entry +of `packaging/linux/io.github.faumaray.TsClient.metainfo.xml` (shown by +software centers and Flathub). Release notes also state the TeamSpeak server +versions the release was tested against (TS3 and TS6 from +`dev/docker-compose.yml`). + +## Third-party notices + +`THIRD_PARTY_NOTICES.md` lists the licenses of everything compiled into the +apps. It is shown in the About page (`tsc_platform::notices::text()`) and +shipped in every package. It is generated, never edited: + +```sh +cargo install cargo-about --locked --version 0.9.2 --features cli +scripts/notices.sh # regenerate +scripts/notices.sh --check # what CI runs +``` + +- `about.toml`: accepted licenses (the same list as `deny.toml`), the + targets we ship (Linux, Windows, Android), no build or dev dependencies, + and clarifications for crates whose license files cargo-about does not + find (Slint, the bundled libopus, AWS-LC, OpenH264). Clarifications pin + file checksums; after a dependency update that changes such a file the + script fails and the new text has to be checked and its checksum updated. +- `about.hbs`: the Markdown template, with the notices that do not come from + crates: the Slint attribution, OpenH264 (downloaded at runtime, not + shipped), the vendored tsclientlib and libvpx. +- The output does not depend on the host, so CI (`notices` job in + `.github/workflows/ci.yml`) compares the committed file exactly and fails + when `Cargo.lock` changed without a regeneration. The cargo-about version + is pinned in the script and the job: a newer version may format + differently, so update both together. + +A new license has to be allowed in `deny.toml` (cargo-deny fails first) and +in `about.toml`, and must be compatible with distributing the apps under +MIT OR Apache-2.0 (no GPL/AGPL/LGPL code linked in; LGPL only as a +dynamically loaded system library, after review). + +## Signing + +Signing keys and certificates never go into the repository. In CI they live +in the secrets of a GitHub environment `release` that requires approval, +are written to `$RUNNER_TEMP` in the job and deleted at its end. + +### Windows (Authenticode) + +Unsigned executables trigger SmartScreen warnings; signed ones build +reputation with the publisher's certificate. Sign `tsc-desktop.exe` first, +then build the installer with `/DSIGN=...`, which signs the installer and the +uninstaller it writes (see [packaging/windows/README.md](../packaging/windows/README.md)). +Always timestamp (`/tr ... /td SHA256`), so signatures stay valid after the +certificate expires. + +Options for the certificate: + +- **Azure Trusted Signing**: Microsoft-managed certificates, no hardware + token, billed monthly; needs an Azure subscription and identity + validation of the publisher (check the current eligibility rules). Sign + with `signtool` and the Trusted Signing dlib (NuGet package + `Microsoft.Trusted.Signing.Client`): + + ```powershell + # metadata.json: {"Endpoint": "https://.codesigning.azure.net", + # "CodeSigningAccountName": "", "CertificateProfileName": ""} + signtool sign /v /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 ` + /dlib Azure.CodeSigning.Dlib.dll /dmdf metadata.json target\release\tsc-desktop.exe + ``` + + In GitHub Actions, `azure/trusted-signing-action` does the same with a + service principal (client id, tenant id, secret as environment secrets). +- An OV or EV code-signing certificate (on a hardware token or in a cloud + HSM, as CAs require since 2023) with `signtool /f` or the HSM's CSP. +- SignPath's free plan for open-source projects (signing happens in their + service from a CI artifact). + +Check the result with `signtool verify /pa /v ` for the executable, +the installer and `uninstall.exe` after installing. + +### Linux + +- **Flathub** builds and signs the Flatpak itself (with Flathub's key) from + a manifest in the `flathub/` repository. For the first submission + open a pull request against `flathub/flathub` with the manifest, where the + source is this repository at the release tag and commit (not `type: dir`) + plus the generated `cargo-sources.json`. Before submitting: run + `flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest` + and `... repo`, `appstreamcli validate` on the metainfo, add screenshots + and the release entry to the metainfo. Flathub reviews names and branding: + the app must not look like an official TeamSpeak product. +- For our own releases (GitHub): a tarball of `tsc-desktop` with the desktop + file, metainfo, icon and notices, and optionally a Flatpak bundle + (`flatpak build-bundle --gpg-sign= ...`). Publish `SHA256SUMS` and + sign it (`gpg --detach-sign` or minisign) with a key whose fingerprint is + in the README. + +### Android + +APKs and app bundles are signed with a keystore kept outside the +repository; losing it means existing installs can no longer be updated. + +- Create it once: + `keytool -genkeypair -v -keystore tsc-release.jks -alias tsc -keyalg RSA -keysize 4096 -validity 10000`, + and back it up (two offline copies, password in a password manager). +- The Gradle build reads the keystore path, alias and passwords from Gradle + properties or environment variables (`~/.gradle/gradle.properties`, CI + secrets), never from files in the repository. Without them it builds + unsigned or debug-signed artifacts only. +- CI: the keystore as a base64 secret, decoded to `$RUNNER_TEMP`, removed + afterwards. Check with `apksigner verify --print-certs app-release.apk`. +- Google Play: use Play App Signing; our keystore is then the upload key + (it can be reset through Play support if lost). F-Droid builds and signs + itself unless reproducible builds are set up. + +## Checklist + +Before tagging: + +1. `main` is green in CI, including the smoke job (TS3 + TS6) and the + browser interop job. +2. `cargo deny --workspace check` is clean; the ignores in `deny.toml` are + still needed and still justified. +3. `scripts/notices.sh` has been run after the last dependency change (CI + `notices` job green); new licenses in the diff were reviewed. The About + page shows the AboutSlint widget (required by Slint's royalty-free + license), the OpenH264 attribution and the notices. +4. The [manual test matrix](testing/manual-matrix.md) has been run for this + version, results committed; failures are fixed or listed as known issues. +5. Translations: `.pot` regenerated and `.po` files merged + ([i18n.md](i18n.md)); string freeze announced a week before. +6. Versions bumped (`crates/tsc-ui`, `crates/tsc-android`, Android + `versionName` / `versionCode`, `tsc-gateway` if it changed), + `Cargo.lock` updated, changelog and metainfo `` written. + +Release: + +7. Tag `v` (signed) on the release commit and push it. +8. Build the artifacts from the tag: Windows executable and installer + (signed), Linux tarball, Flatpak bundle, Android APK / AAB (signed); the + gateway container image if it changed. +9. Verify: signatures (`signtool verify`, `apksigner verify`), the installer + and the Flatpak on a clean machine (matrix rows IN1-IN3), the version in + the About page. +10. `SHA256SUMS` (signed), a draft GitHub release with the changelog section, + known issues and the tested server versions; publish it. +11. Update the Flathub manifest (tag, commit, `cargo-sources.json`), Google + Play / F-Droid. + +After: + +12. Add an empty `Unreleased` section to the changelog. diff --git a/docs/testing/manual-matrix.md b/docs/testing/manual-matrix.md new file mode 100644 index 0000000..37d864a --- /dev/null +++ b/docs/testing/manual-matrix.md @@ -0,0 +1,215 @@ +# Manual test matrix + +What CI cannot check: other clients' WebRTC stacks, real desktops and +portals, real audio hardware, Android power management and the installers. +Run this matrix before every release (see [release.md](../release.md)) and +after changes to the area in question. + +## How to record results + +- Fill in **Result**, **Date** (YYYY-MM-DD) and **Version** (from the About + page; the commit hash for unreleased builds) in the tables below and + commit the update with the release. +- Result: `pass`, `fail` with a link to the issue, `partial` with a note, or + `n/a` when the platform does not support the feature. Empty means not run. +- Keep only the latest run per row; earlier runs are in the git history. +- Note the desktop and OS versions in **Notes** the first time a row is run + on a new release of them (e.g. "GNOME 48.2, Fedora 42"). + +Platforms: + +| Name | Session | +|---|---| +| GNOME | GNOME Shell 48 or newer, Wayland (older GNOME has no GlobalShortcuts portal) | +| KDE | KDE Plasma 6, Wayland | +| X11 | Any X11 session (e.g. Xfce, or GNOME/KDE on Xorg) | +| Win10 | Windows 10 22H2 | +| Win11 | Windows 11 24H2 or newer | +| Android | A phone with Android 12 or newer; note the model | + +Servers: TeamSpeak 6 (streams need it; use the version pinned in +`dev/docker-compose.yml` or newer) and TeamSpeak 3.13 for voice checks. The +official client is the current TeamSpeak 6 client for the same OS unless +noted. + +## Streams with the official TeamSpeak 6 client + +- **ST1** The official client watches our stream: we share a monitor at + 1080p30 with sound in our channel; the official client joins it. Pass: + picture within 5 s, smooth motion (move a window around), sound in sync + (play a video with speech), no freeze over 10 minutes, stop from either + side ends it cleanly. +- **ST2** We watch the official client's stream (screen with sound). Same + pass criteria. Note the codec it sent (debug log or stats). +- **ST3** Screen share with sound: system audio reaches viewers; voices of + the call are not sent back to them (known gap on Linux PipeWire, see + [media.md](../media.md): note what viewers hear). +- **ST4** Portal restore token (Wayland): share, stop, share again. Pass: the + second share starts without the picker; after revoking the permission in + the desktop's settings the picker shows again. +- **ST5** H.264: enable OpenH264 (download on first use, attribution text + shown next to the switch), stream to the official client and watch its + H.264 stream. Disable it again: H.264 is no longer offered. + +| ID | Platform | Result | Date | Version | Notes | +|---|---|---|---|---|---| +| ST1 | GNOME | | | | | +| ST1 | KDE | | | | | +| ST1 | X11 | | | | | +| ST1 | Win10 | | | | | +| ST1 | Win11 | | | | | +| ST2 | GNOME | | | | | +| ST2 | KDE | | | | | +| ST2 | X11 | | | | | +| ST2 | Win10 | | | | | +| ST2 | Win11 | | | | | +| ST3 | GNOME | | | | | +| ST3 | KDE | | | | | +| ST3 | X11 | | | | | +| ST3 | Win10 | | | | | +| ST3 | Win11 | | | | | +| ST4 | GNOME | | | | | +| ST4 | KDE | | | | | +| ST5 | GNOME or KDE | | | | | +| ST5 | Win11 | | | | | + +## Global push-to-talk + +- **PT1** Bind push-to-talk (Wayland: the desktop's dialog appears; accept + or change the key), focus another application (a browser, a game in + fullscreen), hold the key: the talking indicator lights and others hear + us; release: it stops within 100 ms. Repeat 20 times quickly: no stuck + transmission. Hold the key and Alt+Tab away: release still ends it. +- **PT2** Change the binding and restart the app: the new binding works; on + Wayland the desktop keeps the binding without asking again. +- **PT3** Windows: with an elevated window (e.g. Task Manager) focused, note + whether push-to-talk works (a hook of a non-elevated app does not see + those keys; document, do not fail). + +| ID | Platform | Result | Date | Version | Notes | +|---|---|---|---|---|---| +| PT1 | GNOME | | | | | +| PT1 | KDE | | | | | +| PT1 | X11 | | | | | +| PT1 | Win10 | | | | | +| PT1 | Win11 | | | | | +| PT1 | Flatpak on GNOME or KDE | | | | | +| PT2 | GNOME | | | | | +| PT2 | KDE | | | | | +| PT2 | X11 | | | | | +| PT2 | Win11 | | | | | +| PT3 | Win11 | | | | | + +## Audio + +- **AU1** Echo cancellation in a real one-hour call: laptop or desk + speakers (no headset) on our side, a second person on another client. + Pass: the other side hears no echo of their own voice (also while both + talk), our voice is not cut off, and the delay at the end of the hour is + the same as at the start (clap test at 0, 30 and 60 minutes). Note CPU + usage. +- **AU2** Device hotplug during a call: unplug the USB headset in use: audio + moves to the default device within a few seconds and an error or notice + is shown; plug it back in: it moves back within 5 s. Repeat with a + Bluetooth headset (connect, disconnect, switch between headset and + high-quality profiles). +- **AU3** Change the system default output and input while connected with + "default" selected: the app follows. + +| ID | Platform | Result | Date | Version | Notes | +|---|---|---|---|---|---| +| AU1 | GNOME or KDE | | | | | +| AU1 | Win11 | | | | | +| AU1 | Android | | | | | +| AU2 | GNOME | | | | | +| AU2 | KDE | | | | | +| AU2 | X11 | | | | | +| AU2 | Win10 | | | | | +| AU2 | Win11 | | | | | +| AU2 | Android | | | | | +| AU3 | GNOME or KDE | | | | | +| AU3 | Win11 | | | | | + +## Android + +- **AN1** Background voice: connect, lock the phone, 30 minutes with the + screen off (unplugged, not on a charger). Pass: still connected, both + directions audible the whole time, the foreground notification is shown + and its mute / disconnect actions work. Note the battery used. +- **AN2** Watch a stream: the official desktop client's and ours. +- **AN3** Share the screen (MediaProjection) with sound to the official + client and to our desktop app; stop from the notification. +- **AN4** A phone call during a voice session: our audio pauses, the session + resumes afterwards. Switch between Wi-Fi and mobile data: it reconnects. + +| ID | Platform | Result | Date | Version | Notes | +|---|---|---|---|---|---| +| AN1 | Android | | | | | +| AN2 | Android | | | | | +| AN3 | Android | | | | | +| AN4 | Android | | | | | + +## Install and uninstall + +- **IN1** Flatpak (bundle or Flathub): install, first run (microphone + permission, portals, notifications, keyring), update over the previous + version (data kept), `flatpak uninstall` (data kept) and + `flatpak uninstall --delete-data` (`~/.var/app/` removed). +- **IN2** Windows installer on a clean VM (no Visual C++ redistributable, + no Rust toolchain): SmartScreen and UAC show the publisher of the + signature, the app starts from the Start menu, an update over the + previous version keeps the settings, uninstall from Settings > Apps + removes the files, shortcut and registry key and keeps `%APPDATA%\tsc`; + `uninstall.exe /S` works too. +- **IN3** Android APK: install, update over the previous version (same + signature, data kept), uninstall. + +| ID | Platform | Result | Date | Version | Notes | +|---|---|---|---|---|---| +| IN1 | GNOME | | | | | +| IN1 | KDE | | | | | +| IN2 | Win10 | | | | | +| IN2 | Win11 | | | | | +| IN3 | Android | | | | | + +## General + +- **GE1** About page: the AboutSlint widget, the OpenH264 attribution and + the full third-party notices (scrollable) are shown. +- **GE2** Crash reports: with reports enabled, start the app with + `TSC_TEST_CRASH=1`: it exits with a panic and, on the next start, offers + the report (open folder, delete). With reports disabled nothing is + written. Reports are in `~/.local/state/tsc/crash-reports` (Flatpak: + `~/.var/app//.local/state/tsc/crash-reports`) or + `%LOCALAPPDATA%\tsc\crash-reports`. +- **GE3** Saved passwords survive a restart (GNOME Keyring, KWallet, Windows + Credential Manager, Android Keystore); without a keyring the app warns + and keeps them for the session only. +- **GE4** Notifications for pokes and private messages; clicking one brings + the window up. +- **GE5** Suspend and resume the machine while connected: the app + reconnects. +- **GE6** HiDPI and fractional scaling (150 %), two monitors with different + scales: text is sharp, windows open on the right monitor. +- **GE7** Another UI language (once translations exist): switch, restart, + no untranslated or truncated strings on the main screens. + +| ID | Platform | Result | Date | Version | Notes | +|---|---|---|---|---|---| +| GE1 | any desktop | | | | | +| GE1 | Android | | | | | +| GE2 | Linux | | | | | +| GE2 | Win11 | | | | | +| GE3 | GNOME | | | | | +| GE3 | KDE | | | | | +| GE3 | Win11 | | | | | +| GE3 | Android | | | | | +| GE4 | GNOME | | | | | +| GE4 | KDE | | | | | +| GE4 | Win11 | | | | | +| GE5 | Linux | | | | | +| GE5 | Win11 | | | | | +| GE6 | GNOME | | | | | +| GE6 | KDE | | | | | +| GE6 | Win11 | | | | | +| GE7 | any desktop | | | | |