Private camera for photos and videos, with no Internet access
  • Kotlin 97.4%
  • HTML 2.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-24 10:10:42 +01:00
app Fixed shots and recordings lost while a session was being rebuilt, motion photos losing their video when the camera closed right after the shot, Allow doing nothing after a final refusal, and other findings of the pre-release review. 2026-11-24 10:09:13 +01:00
capabilities Added Settings pages (Photos, Video, Controls), backup and restore, mirrored selfies, shutter sound and codec settings, and the first-run wizard with per-access rows, asking for camera and microphone only once by itself. 2026-11-24 00:39:48 +01:00
diag Added a system camera test to diagnostics that asks Camera for a photo or a video as another app would and shows what came back. 2026-11-24 01:18:30 +01:00
gradle Added QR codes in Photo mode, read on their own thread with zxing-cpp, with the code's corners, a chip and a sheet to open, copy, share or join a Wi-Fi network (saying why when the system won't take it), a Macro chip when the camera switches to the ultrawide by itself, solid controls over the picture, and a macro test in the diagnostics. 2026-11-23 23:14:55 +01:00
metadata Releasing v0.1.0. 2026-11-24 10:10:42 +01:00
.gitignore Added the capability probe module and the camera diagnostics app with live capture tests and image quality tests for zoom sources, 50 MP RAW layout and comparison bursts. 2026-11-23 13:10:43 +01:00
build.gradle.kts Added the camera app skeleton with the family shell on one back stack, the settings pages, a placeholder camera screen and the launcher icons for the app and the diagnostics. 2026-11-23 14:55:58 +01:00
gradle.properties Added the capability probe module and the camera diagnostics app with live capture tests and image quality tests for zoom sources, 50 MP RAW layout and comparison bursts. 2026-11-23 13:10:43 +01:00
gradlew Added the capability probe module and the camera diagnostics app with live capture tests and image quality tests for zoom sources, 50 MP RAW layout and comparison bursts. 2026-11-23 13:10:43 +01:00
gradlew.bat Added the capability probe module and the camera diagnostics app with live capture tests and image quality tests for zoom sources, 50 MP RAW layout and comparison bursts. 2026-11-23 13:10:43 +01:00
LICENSE Added the capability probe module and the camera diagnostics app with live capture tests and image quality tests for zoom sources, 50 MP RAW layout and comparison bursts. 2026-11-23 13:10:43 +01:00
README.md Releasing v0.1.0. 2026-11-24 10:10:42 +01:00
settings.gradle.kts Added the camera app skeleton with the family shell on one back stack, the settings pages, a placeholder camera screen and the launcher icons for the app and the diagnostics. 2026-11-23 14:55:58 +01:00

Camera

A private camera for Android: Ultra HDR photos, motion photos, HDR video and QR codes, with no Internet access.

Current version: v0.1.0

Source code and releases: git.hnet.sh/hkr/camera

Bug reports and feature requests: github.com/legal-hkr/camera

Overview

Camera takes photos and videos at the best quality the phone’s hardware allows and keeps them only on the phone. It has no Internet permission: files are saved to the DCIM/Camera folder, where any gallery app can find them, in standard formats (Ultra HDR, Google’s motion photo format, HLG video) that don’t need a specific gallery. It can be the phone’s only camera app: it works over the lock screen, for other apps and from shortcuts.

Features

Photos

  • Ultra HDR at each camera’s full default resolution, with zero shutter lag
  • Motion photos (off, auto or on), in Google’s standard format
  • 4:3, 16:9 and 1:1 aspect ratios, flash with adjustable strength, a screen flash for selfies, and optional mirrored selfies
  • A 3- or 10-second timer, optionally counted down with the flash LED
  • Tap to focus and meter, touch and hold to lock exposure and focus, exposure compensation, face detection

Video

  • 4K and 1080p at 24, 30 or 60 fps, HLG HDR up to 30 fps, HEVC or AVC
  • Stereo sound, pause and resume, photos while recording, the flashlight

Zoom

  • Only the phone’s own lenses: a separate button for the ultrawide, and smooth zoom with haptic stops at the other lenses
  • A note when the phone switches to its automatic macro mode

And also

  • QR codes recognized on the phone: links, Wi-Fi networks to join and business cards to add to your contacts
  • Opens over the lock screen with a double press of the power button, showing only the shots from that session
  • Photos and videos for other apps, with a review before they are handed over
  • Selfie, Video and QR code shortcuts
  • Grid, level, and the volume keys as the shutter or zoom
  • If the phone overheats, a call comes in or storage fills up, recording stops and the video is saved; a low battery turns the flash off
  • Backup and restore of settings to a file you choose
  • English or Polish, independent of the system language
  • Material 3 Expressive design with your phone’s colors

Requirements

  • Android 14 (API level 34) or higher

Building

git clone https://git.hnet.sh/hkr/camera.git
cd camera
./gradlew :app:assembleDebug

Set the Android SDK path in local.properties (sdk.dir=…) first. Unit tests run with ./gradlew test.

The repository also holds :diag (Camera diagnostics, sh.hnet.camera.diag), a separate tool that reads what the phone’s cameras offer and tests it with real captures, and :capabilities, the capability detection both apps share. The diagnostics app is not released.

Contributing

Development happens on git.hnet.sh. The GitHub repository is a read-only mirror, updated on every push, and the place to report problems:

  • Issues: Open them on GitHub, with the app version and your Android version
  • Pull requests: Welcome on GitHub as well, but they can’t be merged there – accepted changes are applied on git.hnet.sh and reach the mirror from there, so the pull request itself ends up closed rather than merged

Tech stack

  • Language: Kotlin
  • Min SDK: Android 14 (API 34), target SDK: API 37
  • UI: Jetpack Compose with Material 3 Expressive
  • Camera: Its own engine on the platform’s Camera2 and MediaCodec

License

GPL-3.0

Acknowledgments

  • QR codes are read with zxing-cpp, available under the Apache License 2.0
  • Claude by Anthropic – AI assistant that provided valuable support during the development process, helping with code implementation, architecture decisions, and documentation