Verifying a reproducible Android application skeleton

← Back to Blog & Articles

The unit of work is a build that passes.

The durable artifacts are the version catalog, the support file, the manifest, and the verify script. The main hazard is a configuration change that looks like a fix.

Trace the startup path. The system creates the application class, which creates the container and schedules sync. The activity asks the container for what it needs and renders. Nothing else constructs a store or a client. If a second place does, the composition root has stopped being the root.

Capture the baseline with scripts/verify-fast on your machine. Record the Java, Gradle, and plugin versions it prints, and fill the last column of the support file. Then change one version in the catalog on a scratch branch and rerun to see what breaks.

Read the build and manifest diffs first. For each changed line, ask whether it changes the SDK level, a permission, an exported component, a repository, or a signing path. Any yes means a named reviewer.

When a build fails after an upgrade, bisect by version, one catalog line at a time. Record which line broke it. An agent that fixes the symptom with a second dependency has hidden the cause.

Check that the manifest declares only the permissions the product needs, that no component is exported without a filter, that cleartext is off, and that backup rules exclude app data. Check that no keystore or signing property exists in the repository or the workflow.

Verify in layers. The JVM tests are fast and run on every change. Lint catches resource and API problems. The debug build proves the app module compiles. Instrumented tests, which need an emulator, belong in a separate, slower job that this edition does not provide.

Run scripts/verify-fast before every push. Update the support file only after running it. Review the catalog when a security advisory lands, and make the update its own pull request.

  • Versions appear once, in the catalog.
  • The support file has a date and a version for every verified row.
  • The manifest declares only the permissions in use.
  • CI and the verify script run the same tasks.
  • No signing material exists in the repository.
  • Why does the target SDK change need a separate task?
  • What does FAIL_ON_PROJECT_REPOS prevent?
  • What would you check first in a manifest diff?
  • Why does the workflow have no secrets?

Continue with the book

Explore the full treatment, worked examples, and exercises in Agentic Android App Development.


Companion article for Agentic Android App Development, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top