C2PA Android example app
The c2pa-android-example repository contains a prototype Android application demonstrating how to capture photos and videos, embed Content Credentials, and then sign them.
The app is built using modern Android development practices with Jetpack Compose and CameraX.
Key Features
- Photo and video capture: Uses CameraX for a robust camera implementation.
- C2PA signing: Signs captured media with RSA keys to create a C2PA manifest, ensuring content authenticity.
- In-place signing: Correctly handles modern Android Scoped Storage by signing files from
content://URIs in-place using a temporary file strategy. - Location tagging: Fetches the device's current location and embeds it into the C2PA manifest.
- Video recording control: Supports starting, pausing, resuming, and stopping video recordings, with the UI reacting to the current state.
- Runtime permissions: Gracefully handles camera, audio, and location permissions.