appitool Android build type, v1 ā
Build type URI: https://appitool.appibara.com/buildtypes/android/v1
Status: Stable. Emitted by appitool flow android --attest; changes follow Versioning.
Predicate type: SLSA Provenance v1 (https://slsa.dev/provenance/v1)
This build type describes an Android app bundle (.aab) or APK (.apk) built by appitool with appitool flow android. A provenance statement with this buildType says: this AAB or APK was built by appitool, from this source, with these parameters, by this builder.
The statement is signed with Sigstore and stored as a Sigstore bundle (for example MyApp_release.aab.sigstore.json). It is separate from Android app signing: the AAB or APK keeps its own signature, and this attestation describes how it was produced.
Subject ā
- The built
.aabor.apkis the only subject.nameis its file name;digestholds itssha256. - The digest is of the final file, after Gradle has signed it.
External parameters ā
Inputs chosen by whoever started the build. Verifiers should compare these with what they expect. Every field is a string unless noted.
command(required): alwaysflow android.distribution(required):appstore,adhocordevelopment, as given to-d, --distribution.packageName(required): the app's package name, given with--package-nameor detected from Gradle (the flavor'sapplicationIdwhen a flavor is set).format(required):aaborapk, as given to--formator defaulted (aabforappstore,apkotherwise).flavor(optional): the Gradle product flavor, as given to--flavor. Absent when no flavor was used.source(required, object): the source that was built.repository(required): the repository URL, for examplehttps://github.com/acme/myapp.ref(optional): the git ref that was checked out, for examplerefs/tags/v1.2.0orrefs/heads/main.
External parameters never contain credentials: no Google service account keys, Match passwords, keystore passwords, git tokens or webhook URLs.
Internal parameters ā
Values appitool derived during the build. They are informational: useful for auditing and reproducing a build, but verifiers should not base trust decisions on them.
versionName(required): the app'sversionName.versionCode(required): theversionCodeappitool assigned, computed as the latest remote version code or the project's, whichever is higher, plus one.buildType(required): the Gradle build type,release(forappstoreandadhoc) ordebug(fordevelopment).gradleTask(required): the Gradle task that produced the subject, for examplebundleReleaseorassembleProductionRelease.signing(required): how the subject was signed:match(the release keystore from appitool Match) orgradle(the project's own Gradle signing config, as used for debug builds).releaseTag(optional): the git tag appitool creates for the release, for exampleš¤_1.2.0_42.
Resolved dependencies ā
Each entry is an in-toto resource descriptor.
- Source (required): the commit that was built.
uri:git+<repository>@<ref>, for examplegit+https://github.com/acme/myapp@refs/tags/v1.2.0.digest:{ "gitCommit": "<40-character commit SHA>" }.
- appitool (required): the appitool that ran the build.
name:appitool.uri:https://github.com/appibara-ltd/appitool/releases/tag/v<version>, for examplehttps://github.com/appibara-ltd/appitool/releases/tag/v0.11.10.digest(optional):{ "sha256": "<SHA-256 of the appitool executable>" }.
The uri identifies the appitool release that ran the build. appitool's releases carry their own Sigstore-signed provenance, but it covers the release archives (appitool-*.tar.gz), not the extracted executable, so the executable's sha256 identifies the binary that ran and cannot be checked against that provenance directly.
Builder ā
runDetails.builder.id names who ran the build and stands behind the statement. For keyless signing it must match the identity in the Sigstore signing certificate.
- Your own CI (GitHub Actions): the workflow that ran appitool,
https://github.com/<owner>/<repo>/.github/workflows/<file>@<ref>. The signing certificate is issued to that same workflow. This proves which repository's CI built the app. "Built with appitool" is that workflow's claim, which you can audit by reading the workflow file at that ref. - Your own CI, signed with a private key (
--attest --attest-key): the samebuilder.id, but the bundle carries a public key instead of a certificate, and an RFC 3161 timestamp instead of a transparency log entry. The workflow named inbuilder.idis then the key holder's claim, not something the signature proves; verifiers trust whoever holds the key (appitool attestation verify --key). - nativeflow build service:
https://nativeflow.app/builder/v1. nativeflow builds in an isolated job and signs with its own identity, so the statement is backed by nativeflow rather than by the app's own CI.
runDetails.metadata should hold invocationId (for GitHub Actions, the run URL with its attempt), startedOn and finishedOn.
Example ā
{
"_type": "https://in-toto.io/Statement/v1",
"subject": [
{ "name": "MyApp_production_release.aab", "digest": { "sha256": "3c8dā¦" } }
],
"predicateType": "https://slsa.dev/provenance/v1",
"predicate": {
"buildDefinition": {
"buildType": "https://appitool.appibara.com/buildtypes/android/v1",
"externalParameters": {
"command": "flow android",
"distribution": "appstore",
"packageName": "com.acme.myapp",
"format": "aab",
"flavor": "production",
"source": {
"repository": "https://github.com/acme/myapp",
"ref": "refs/tags/v1.2.0"
}
},
"internalParameters": {
"versionName": "1.2.0",
"versionCode": "42",
"buildType": "release",
"gradleTask": "bundleProductionRelease",
"signing": "match",
"releaseTag": "š¤_1.2.0_42"
},
"resolvedDependencies": [
{
"uri": "git+https://github.com/acme/myapp@refs/tags/v1.2.0",
"digest": { "gitCommit": "a1b2c3ā¦" }
},
{
"name": "appitool",
"uri": "https://github.com/appibara-ltd/appitool/releases/tag/v0.11.10",
"digest": { "sha256": "7e41ā¦" }
}
]
},
"runDetails": {
"builder": {
"id": "https://github.com/acme/myapp/.github/workflows/release.yml@refs/tags/v1.2.0"
},
"metadata": {
"invocationId": "https://github.com/acme/myapp/actions/runs/123456789/attempts/1",
"startedOn": "2026-11-30T10:00:00Z",
"finishedOn": "2026-11-30T10:09:00Z"
}
}
}
}Verifying ā
A JSON Schema for the external and internal parameters is published next to this page.
- Verify the attestation with
appitool attestation verify, which uses sigstore-swift:
appitool attestation verify -f MyApp_production_release.aab \
--bundle MyApp_production_release.aab.sigstore.json \
--repo acme/myapp \
--signer-workflow acme/myapp/.github/workflows/release.yml \
--package-name com.acme.myapp -d appstoreThis checks the Sigstore signature against Sigstore's trusted root, that the statement's subject is the file's sha256, that the predicate type is SLSA provenance v1, and that the signing certificate was issued to the given workflow in the given repository. --package-name also checks that buildType is https://appitool.appibara.com/buildtypes/android/v1, and with -d that the external parameters name packageName and distribution; external parameters this spec does not define are rejected. Without --bundle, appitool fetches the attestation from the repository's GitHub attestations instead.
- Check any other external parameters you care about, such as
source.repository. - Optionally, check that the appitool version in
resolvedDependenciesis one you trust. appitool's release archives can themselves be verified withappitool attestation verify -f appitool-<platform>.tar.gz.
Any Sigstore verifier can check the signature and signer, for example gh attestation verify MyApp_production_release.aab --bundle MyApp_production_release.aab.sigstore.json --repo acme/myapp --signer-workflow acme/myapp/.github/workflows/release.yml; check buildType and the external parameters yourself afterwards.
Google Play re-signs and splits the uploaded AAB, so this attestation covers the file you built and uploaded, not the APKs Google Play delivers to devices. An APK distributed directly (for example through Firebase App Distribution) can be checked byte for byte.
Versioning ā
- This page describes
v1, which is stable: the meaning of its fields will not change. - New optional fields may be added to the internal parameters of
v1. - The external parameters of
v1are fixed: verifiers should reject external parameters they do not recognise, so adding one requires a new version. - Renaming or removing a field, or changing what a field means, requires a new build type at
ā¦/android/v2. This page stays online so older attestations can still be read.
Changelog ā
- v1: declared stable, with the same fields as the draft.
- v1 (draft): first version.
