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-27 22:22:43 +01:00
app Sped up the first photo and the time after the shutter without changing the picture: the GPU programs are compiled ahead and kept on disk, and the frames' alignment pyramids are built while the series is taken; the thumbnail's queue now counts the series of every viewfinder. 2026-11-27 22:22:43 +01:00
capabilities Fixed long exposures in Pro blurred by the tap: the exposure starts once the gyroscope says the phone is still, and a phone lying still takes it with the optical stabilization off. 2026-11-26 11:46:17 +01:00
diag Added the app's own processing to Photo: a series of 8 RAW frames after the press, uploaded to the GPU as they come, developed in a background queue (kept alive by a media processing service) and saved as Ultra HDR with its own EXIF; the camera's own photo with a flash, another lens, a full queue, heat or low battery, and the motion photo off by default. Tuned the look against the phone's own photos (no more dark bricks and wood in snowy or white scenes, a lamp's warmth kept). Until the release the EXIF notes which path took each photo. Fixed the queue badge not turning sideways; the diagnostics test uploads frames as the app does and saves a report per scene. 2026-11-27 13:19:34 +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.3.0. 2026-11-26 00:08:59 +01:00
processing Sped up the first photo and the time after the shutter without changing the picture: the GPU programs are compiled ahead and kept on disk, and the frames' alignment pyramids are built while the series is taken; the thumbnail's queue now counts the series of every viewfinder. 2026-11-27 22:22:43 +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.3.0. 2026-11-26 00:08:59 +01:00
settings.gradle.kts Added the GPU photo processing module and a diagnostics test for it: one RAW frame developed with OpenGL ES 3.1 compute as the computer prototype does (the owner's accepted look, equal to it within one 8-bit step), its metadata read from Camera2 as DngCreator writes it, and a test that saves a RAW series with the GPU's picture for a pixel-by-pixel comparison on a computer and reports where the development stopped if the app closed during it. 2026-11-26 22:32:48 +01:00

Camera

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

Current version: v0.3.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
  • Night mode using the phone’s own Night processing, with crosshairs that help you hold the phone steady
  • Bursts of up to 150 photos while you hold the shutter, grouped the same way as in Google’s camera

Pro

  • Manual ISO and shutter speed (up to 16 s), or set one and let the app meter the other
  • Manual focus with focus peaking, white balance in kelvins, a histogram
  • Long exposures with a countdown on the shutter button, and crosshairs that help you hold the phone steady
  • RAW (DNG) saved alongside each photo, from the lens in use and with the photo’s framing, or a 50 MP DNG from the main lens

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