Repository navigation
Description
What is the current behaviour and why should it be changed?
Android builds are experimental. The existing CI build uses Qt 5.15.2 and older Android build tools, and produces an APK through a CI-oriented script. It does not provide the proposed Qt 6 build or a Play testing upload workflow. There are also separate open issues for Qt 6 permissions (#2528), signing (#2404), version-code portability (#3087), and updating Oboe (#3762).
I've also noted #4008, as changing the Android package name (which happens currently on each build, as far as I'm aware) requires uninstall, loss of settings and reinstall.
A more maintainable local and CI build process, a path to newer toolchains, and reproducibly signed packages would help develop and test Android builds. Play distribution also needs an AAB, an appropriate application identity, signing and versioning.
Describe possible approaches
Continue with the existing Qt 5 APK build and address the individual issues separately, or modernise the build in stages. The latter would support newer tooling and testing channels, but adds build and deployment complexity and requires Android device testing.
Draft PR #4006 explores the following approach:
- Share a configurable Android build driver between local builds and CI, with separate toolchain profiles; retain Qt 5 multi-ABI APKs and add experimental Qt 6 per-ABI APKs.
- Update Oboe to 1.10.0 and use Qt 6 microphone-permission handling when building with Qt 6.5 or later.
- Support stable release signing and configurable application IDs and version codes, and provide an opt-in Qt 5 AAB build and GitHub workflow upload to the Play internal testing track. Keep debug and release identities distinct and document the required credentials and setup.
Before agreeing the scope, decide whether the Play workflow and Qt 6 build belong in the same effort or should be separate changes. In particular, agree on the official application ID and signing identities: changing either can prevent updates to existing installations, and Play and side-loaded signing may differ. The draft PR reports UI problems on Qt 6 and on Qt 5 targeting Android API 36; these need investigation and device testing rather than treating a successful build or upload as validation. The Qt 5 Play profile is experimental, and Qt 6 qmake builds in the draft produce APKs rather than a Play AAB.
Has this feature been discussed and generally agreed?
Not as an overall specification, as far as I know. #4006 is a draft implementation for discussion; the related issues above cover parts of the work. The intended scope, compatibility, release process, and testing requirements still need agreement.
🤖 Used AI: Copilot SDK in VS Code, to inspect the branch and draft this issue. I reviewed the draft before posting.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn Progress
Activity
pljones commentedon Nov 28, 2026
As discussed in #4012, we should move to Android Oreo (8.1) or later and fix a number of potential issues in the Android audio layer as a priority above this.
Possibly related: #2570
pljones commentedon Nov 29, 2026
Android modernisation: proposed working plan
This plan brings together #4009, #4006, #4012, and the audio assessment. It covers the full scope of the linked issues, including the cross-platform settings work in #4008 and the wider build migration in #3964.
This is a proposed sequence, not an agreed specification. Each numbered implementation step is intended to be a focused, reviewable PR, or a small series of PRs where noted. Each PR must leave the existing build working and provide a useful, testable result. Reconstruct the relevant parts of #4006 rather than assuming its existing commits are suitable PR boundaries.
Order and dependencies
The order below is a working order, not a requirement to bundle unrelated fixes. A safety fix must not be delayed merely to fit a packaging milestone.
flowchart TD A1["A1: Minimum Android API 27"] A2["A2: Update Oboe"] B1["B1: Dependency cache"] A3["A3: Crash and memory safety"] A4["A4: Real-time hazards"] A5["A5: Oboe configuration and tuning"] A6["A6: Disconnect recovery"] A7["A7: Check reported audio problem"] B2["B2: Shared local/CI build"] C0["C0: JSON-RPC attachments"] C1["C1–C7: Full settings export/import"] B3["B3: Version portability"] B4["B4: Signed release APKs"] B5["B5: Manual Play bundle"] B6["B6: Play upload"] B7["B7: Experimental Qt 6 APKs"] D["D1–D5: CMake migration (#3964)"] A1 -. priority .-> A3 A2 -. priority .-> A3 B1 -. priority .-> A3 A3 -. priority .-> A4 A4 -. priority .-> A5 A5 -. priority .-> A6 A6 -. priority .-> A7 B1 --> B2 C0 --> C1 B2 --> B3 C1 --> B3 B3 --> B4 --> B5 --> B6 B2 --> B7 C1 --> B7 D -. may supersede .-> B7Solid arrows are prerequisites; dotted arrows show priority or a possible alternative, not a hard dependency. The CMake migration is managed under #3964.
Decisions and constraints
mainID for debug builds. Agree Play versus side-loaded identities, upload and app-signing keys, custody, recovery, secrets access, whether to publish certificate fingerprints, and the migration story. An ID or incompatible signing-key change prevents an in-place update.A. Android minimum version and audio
A1. Raise the minimum Android version
Done: the minimum is consistently API 27 and the compatibility change and any untested devices are recorded. Do not claim that raising it fixes the reported audio problem.
A2. Update Oboe — #3762, #4012
8740d0ftoa36d098#4012; do not duplicate it from Android qt6 plus play store qt5 #4006 if it lands. Check dependency, API/backend and Android-version compatibility as part of review.Done: #3762 has a tested update, not merely a successful compile. Do not wait for A3–A7 to start this PR.
A3. Crash and memory-safety fixes — #3958, related #2570
int16_telement sizing. Establish what draining should do rather than relying on the misleading discard comment.Done: unsafe copies and failure-path dereferences are fixed and tested, with any remaining potential crash or security findings explicitly tracked. Callback mismatch is a code risk, not yet a proven cause of the audio report.
A4. Real-time hazards
Done: changed callback paths meet the project's real-time requirement with evidence, not just a successful build or average timing.
A5. Oboe guide: configuration, tuning and diagnostics
setBufferSizeInFrames: use frames rather than stereo sample counts, treat it as output tuning, check the result and handle any relevant backend limitation. Compare latency and glitches before choosing a new size.Done: configuration and buffer outcomes are tested, both original #2570 findings are resolved or documented as obsolete, and remaining guide deviations are addressed or tracked. Disabled conversion flags alone do not prove a mismatch.
A6. Oboe guide: disconnect recovery
Done: failures are visible and audio recovers safely from supported route changes.
A7. Determine whether the audio problem remains
Done: report whether the problem was reproduced and whether the changes improved it; do not claim a cause or resolution without evidence.
B. Build foundation
B1. Android dependency cache
Done: the cache change is independently useful and the existing Android CI APK still builds and is collected.
B2. Shared local/CI Qt 5 build
mainpackage name, CI artifact name and the Qt Creator debug path; use a valid checked-in manifest.Done: the existing debug build is reproducible locally and in CI, without release signing, Play or Qt 6 being prerequisites.
C. Cross-platform prerequisites: attachments and settings — #4008
The JSON-RPC attachment transport C0 is a prerequisite for full settings export/import. C0 and the completed C1–C7 settings work are prerequisites for every B3–B7 step, not just the release migration claim. This is not limited to Android or mixer setups: cover all client and server settings normally written to the relevant
.ini, GUI and JSON-RPC, on applicable platforms. Split the work into independently reviewable PRs.C0. JSON-RPC attachment transport
Implement and review separately before full settings export/import:
Done: the transport is specified, implemented and tested independently, including legacy clients, framing, authentication, limits, interrupted transfers, concurrency and backpressure. It does not depend on B3–B7.
C1. Inventory and specification
C2. Shared snapshot, validation and application
.inifilename and existing normal persistence. Preserve startup behaviour and do not add automatic load/save to headless servers. Keep I/O, allocation and blocking off real-time paths.C3. Client integration
C4. Server integration
C5. File handling and mobile migration
Android migration check: C1–C5 exercise the GUI migration with a separate test identity; the full B3–B7 gate also requires C0, C6 and C7.
C6. Settings RPC methods
docs/JSON-RPC.mdfrom source annotations and document the transport and methods.C7. End-to-end verification and closure
Done: all client/server, GUI/RPC, headless and mobile requirements above are satisfied or an explicitly agreed scope change is made to #4008.
B. Build, signing and distribution (continued)
Prerequisites for every step below: complete C0 and the full settings export/import work C1–C7, as well as the shared build foundation B2. The Play and Qt 6 branches remain independent of each other after these prerequisites.
B3. Version policy and portability — #3087
Done: #3087's portability and source-tarball requirements are met, not just the Play workflow. B3 and B4 may be combined only if both complete behaviours remain reviewable and independently testable.
B4. Signed release APKs — #2404, related #1760
Done: #2404 is satisfied, and the update failure in #1760 is checked against the relevant old/new signing and identity combinations rather than assumed resolved.
B5. Manual Qt 5 Play bundle
The CMake migration in #3964 will probably make some of this Qt 5/qmake-specific packaging work redundant or require substantial rework for Qt 6. Keep it isolated and weigh that cost when scheduling this step.
Done: a manually uploadable, installable test AAB is produced; outstanding UI problems remain explicit, with no claim that an upload alone validates the app.
B6. Opt-in Play upload
The move to CMake may also make parts of this upload workflow redundant or require substantial rework to consume the new build artifacts. Account for that when deciding how much workflow-specific integration to add.
Done: a real internal-track upload and installation are verified, or any unavailable credential/device test is explicitly recorded as outstanding.
B7. Experimental Qt 6 APKs — #2528
The CMake migration in #3964 will probably make much of this experimental qmake packaging work redundant or require substantial rework. Consider that cost before proceeding with this path.
Done: the chosen Qt 6 path is buildable and device-tested, with outstanding compatibility/UI defects tracked. If CMake is selected instead, perform D1–D5 and address the same permission and device checks there.
D. CMake migration — #3964
This work is managed under #3964 and is restated here for planning purposes. It is a cross-platform migration, not merely an Android packaging flag; its scope, sequencing and status are governed by that issue, not this plan. Agree the Qt 5 legacy versus Qt 6 modern split and whether any legacy build also moves to CMake. Preserve the legacy build and dependency pins while migrating; evaluate any alternative to Qt as a separate design decision.
D1. Establish build parity
Jamulus.pro, correcting omissions and platform-specific rules. Establish a source/define/flag comparison on Linux against qmake, plus functional client/server tests.D2. Windows and macOS
D3. Android Qt 6
D4. iOS and legacy investigation
D5. Close migration
Done: #3964's agreed cross-platform scope is complete; an Android-only Qt 6 build does not by itself close the wider migration.
Completion of #4009
Close the top-level issue only when the agreed audio, build, signing/versioning and experimental distribution outcomes are delivered and tested, the remaining linked-ticket scopes are completed or explicitly tracked with agreed ownership, and the identity/settings migration is documented. Report exact commands, device/OS/build identities, baseline versus changed behaviour, and untested cases for each PR. Builds and uploads alone are not runtime tests.