A lightweight (runtime JAR: 32.4 KB) decoder for Android tombstones, focused on extracting meaning without adding weight.
- Decodes Android tombstone protobuf format
- Zero runtime dependencies
- Java 8
import com.abovevacant.epitaph.wire.TombstoneDecoder;
import com.abovevacant.epitaph.core.Tombstone;
class Example {
static void main(String[] args) {
try (InputStream input = new GZIPInputStream(new FileInputStream("tombstone.pb.gz"))) {
Tombstone tombstone = TombstoneDecoder.decode(input);
System.out.println(tombstone.buildFingerprint);
System.out.println(tombstone.signal.name); // SIGSEGV
System.out.println(tombstone.signal.codeName); // SEGV_MAPERR
for (Cause cause : tombstone.causes) {
System.out.println(cause.humanReadable); // null pointer dereference
}
}
}
}| Field | Description |
|---|---|
arch |
CPU architecture (ARM64, ARM, X86_64, etc.) |
buildFingerprint |
Android build identifier |
pid, tid, uid |
Process/thread/user IDs |
signal |
Signal info (number, name, code, fault address) |
causes |
Crash causes with human-readable descriptions |
threads |
All threads with registers and backtraces |
memoryMappings |
Loaded libraries and memory regions |
logBuffers |
Logcat dumps |
openFds |
Open file descriptors |
The current source implements the Android 17 schema, including Tombstone.executableName, kernelRelease, ppid, MemoryMapping.vmFlags, and FD.details. See the changelog for availability in published releases. Older tombstones use empty-string/zero defaults for these fields; existing constructors remain available.
Branch-specific baselines independently monitor main, Android 16 release/QPR/security branches, and Android 17 release/security branches. The daily/manual check also fails when a new major, QPR, or security branch appears from Android 16 onward. It compares schema contents rather than commit IDs and requires review before advancing baselines. See the upstream review.
./scripts/check-proto-schema.sh # shallow Git fetch
python3 -m unittest discover -s scripts/tests -v # offline checker testsThe checker needs Python 3.10+ (standard library only) and Git. These are development tools, not library dependencies.
Tests include a complete real Android 17 emulator crash, with the protobuf, debuggerd text, and reproduction source.
./gradlew build
./scripts/release.py --check <version>
# Check only credentials, including when a local release tag already exists:
./gradlew --no-configuration-cache checkCentralPortalCredentialsBoth --check and an actual release.py <version> invocation independently verify
Central Portal credentials and namespace access before fetching refs or changing
release files, commits, or tags. A previous successful check is never reused.
The probe uses the publishing task's effective credentials and a read-only
list-deployments request; it does not
upload, publish, or delete anything. Credentials are passed from Gradle over
stdin, not logged or written to a temporary file.
Configure the Portal user-token username/password pair using
centralPortalUsername / centralPortalPassword Gradle properties or
CENTRAL_PORTAL_USERNAME / CENTRAL_PORTAL_PASSWORD environment variables.
The Gradle properties take precedence. Authentication failures, namespace access
failures, and network/API errors stop the release. This checks access, not bundle
validation or a guarantee that a later upload cannot fail.