A battle-tested, high-performance, and rootless Docker container engineered for lightning-fast Android pipelines. Features native multi-arch execution, zero-config dynamic project detection, and native AI Agent support.
Say goodbye to flaky pipeline scripts, slow QEMU arm64 emulation, and broken permissions.
Native compilation on both amd64 and arm64. Build with 100% native silicon speed on Apple Silicon runners, AWS Graviton, and standard Linux servers without slow QEMU translation.
Ultra-fast static scanner (<50ms) parses build.gradle(.kts) and version catalogs to automatically align target SDKs and Java toolchains without manual pipeline parameters.
Comes with OpenJDK 21 (default) and OpenJDK 17 preinstalled. Instant dynamic toggle via switch-jdk [17|21] in <20ms without restarting the container.
Hardened with universal 777 read/write permissions for arbitrary UIDs. Cryptographically signed with Sigstore / Cosign and attested with SPDX SBOM for zero supply-chain risk.
Works out-of-the-box on the public web. When behind corporate firewalls, automatically imports custom CA certificates into Java truststores and configures HTTP/S proxies & Nexus mirrors.
Precompiled Ruby 4.0.9 + Fastlane 2.241.2 ready out-of-the-box in /opt/rbenv. Includes Bundletool 1.18.3, Android CLI, and Gradle Managed Devices with SwiftShader headless GPU.
Explore the internal layer topology, automated proxy and mirror resolution, and multi-architecture execution paths.
Drop-in pipeline files for your favorite CI platform with built-in caching and best practices. Full turnkey templates & GitLab Component available in ci-templates/.
name: Android CI
on: [push, pull_request]
jobs:
build:
name: Build & Test Android App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Android CI Box Composite Action
uses: hatem-noureddine/android-ci@v1
with:
version: 'latest' # or specific SemVer like '1.6.4' or '1.6.4-slim'
run: |
ci-doctor --summary
./gradlew test lintRelease assembleDebug --no-daemon
Antigravity, Claude Code, GitHub Copilot Workspace, Roo Code and Cursor can inspect, build, lint, and fix Android projects in a closed-loop.
ci-doctor --jsondetect-android-project"] --> B["2. Autonomous Alignswitch-jdk [17|21]install-sdk-version <api>"]
B --> C["3. Build & Test./gradlew test lintRelease"]
C --> D{Build Succeeded?}
D -->|Yes| E["4. Package & Publishbundletool / Fastlane"]
D -->|No / Error Dump| F["5. Analyze & Fix| CLI Utility | Location | Agent Purpose | Latency |
|---|---|---|---|
| ci-doctor | /usr/local/bin/ci-doctor | Complete probe (Java, SDK, KVM/GMD, Proxies, Mirrors). Emits human-readable or --json. |
<150ms |
| detect-android-project | /usr/local/bin/detect-android-project | Scans build.gradle(.kts) & version catalogs to identify highest compileSdk & Java version. | <50ms |
| switch-jdk | /usr/local/bin/switch-jdk [17|21] | Instant dynamic JAVA_HOME and binary symlink toggle without restarting container. | <20ms |
| install-sdk-version | /usr/local/bin/install-sdk-version <api> | Installs older/preview SDK platforms using official Google Android CLI with sdkmanager fallback. | On-demand |
| install-ndk-version | /usr/local/bin/install-ndk-version <ndk> | Installs Android NDK & CMake dynamically with universal rootless permissions. | On-demand |
Never waste developer or agent time wondering why a pipeline failed. ci-doctor validates your JDK, Android SDK packages, KVM hardware acceleration, proxies, and enterprise mirror connectivity in milliseconds.
runner@android-ci-box:~$ ci-doctor
=== hateum/android-ci-box Health Diagnostics (v1.8.0) ===
[OK] Operating System: Ubuntu 26.04 LTS (Resolute) - Arch: aarch64 (Native arm64)
[OK] Current User: runner (UID: 1000, GID: 0, Rootless: OK)
[OK] Default Java: OpenJDK 21.0.13 (/opt/jdk-21)
[OK] Secondary Java: OpenJDK 17.0.21 (/opt/jdk-17 ready for switch-jdk)
[OK] Standalone Gradle: 9.8.2 (/opt/gradle/gradle-9.8.2/bin/gradle)
[OK] Android SDK: API 35, 36, 37.0 pre-installed in /opt/android-sdk
[OK] Build-Tools: 35.0.0, 36.0.0, 37.0.0 available
[OK] Fastlane: 2.241.2 (Precompiled Ruby 4.0.9 in /opt/rbenv)
[OK] Security: 0 Unfixed Critical CVEs (Trivy & Scout Passed)
[OK] Supply Chain: Sigstore Cosign Signed & SPDX SBOM Attested
[OK] Network Mode: Public Internet (Direct unthrottled access)
β¨ ALL SYSTEMS HEALTHY (0 Warnings, 0 Errors)
ci-lane)
Zero Fastfile to maintain. Zero Ruby setup. The container embeds an autonomous Fastfile router that handles your complete build, badge, signing, and store deployment out of the box.
Automated JUnit unit tests, Android Lint, Detekt Kotlin code smells analysis, SonarQube/Cloud, and Paparazzi/Roborazzi screenshot tests.
Overlay customized ribbons ("BETA", "QA", "STAGING", commit SHA) and shields on launcher icons so testers instantly recognize pre-release builds.
Base64 Keystore auto-decoding and signing. Push artifacts directly to Firebase App Distribution, Google Play Console, and send Slack/Teams/Discord alerts.
Want to run the complete production pipeline in a single command?
ci-lane all
Sequentially runs lint β detekt β unit tests β release assemble β release bundle (.aab).
Built by an Android developer for Android developers. Stop fighting generic DevOps pipelines that don't understand AGP, Gradle daemons, or Keystores. Get battle-tested mobile automation tailored to your app.
Complete implementation or modernization of your mobile pipelines on GitHub Actions, GitLab CI, or Bitrise. Rootless execution, multi-stage builds, and zero infrastructure overhead for your mobile team.
In-depth audit of slow Android builds. We eliminate silent Exit Code 137 OOMKills with cgroups auto-tuning and accelerate cold and incremental build cycles by 3x to 5x.
Eliminate stressful manual Friday releases. Complete automation of Keystore signing, QA/Beta icon badging, Firebase App Distribution, and Google Play Console phased rollout tracks.
Direct engineering guidance to migrate legacy build configurations to modern Google standards: AGP 9.x, Gradle 9, Kotlin DSL (.kts), Version Catalogs (`libs.versions.toml`), and Compose compiler.
Tell me about your mobile team's current setup. I'll get back to you with actionable insights and availability.
Back this project on GitHub Sponsors to help maintain multi-arch CI parity.