The problem
This project builds an Android photo vault app that keeps photos and videos behind a PIN lock, hidden albums and AES-256-GCM encryption. A photo vault is needed because the stock gallery shows every image to anyone holding the phone, and moved files often stay visible in recents, cloud backups and file managers. This app stores photos in app-private storage that gallery apps cannot scan, encrypts each file with a key held in the Android Keystore, and opens only after a PIN or a BiometricPrompt fingerprint or face check. A second, decoy PIN opens a harmless vault with ordinary photos, so hidden albums stay invisible under pressure to unlock the app. Photos are imported through the system picker, encrypted during import, and shared only as temporary decrypted copies that a FileProvider deletes after sharing. Builder note from the demo build: the demo unlocks with PIN 2468, decoy PIN 0000 opens a separate vault, and 3 wrong PINs trigger a 30-second lockout.
The owner opens VaultKeep and is asked for the PIN or a fingerprint.
Follow the working sequence
How it works
The vault works as a closed loop: photos enter through the system picker, are encrypted before they are stored, and can leave only through controlled sharing or the correct unlock. Import copies each selected photo into app-private storage and encrypts it with AES-256-GCM using a per-file key wrapped by a MasterKey in the Android Keystore; the original can then be deleted from the gallery on confirmation. Album records — names, counts and covers — are kept in a Room database, while the encrypted bytes never leave the app's private directory, so gallery apps and file managers cannot see them. Unlocking checks the PIN against a salted hash, or asks BiometricPrompt for a fingerprint or face match; the decoy PIN routes to the decoy vault instead. Sharing decrypts a temporary copy, hands it to the receiving app through a FileProvider, and deletes it when sharing finishes. A background timer re-locks the vault 1 minute after the app leaves the foreground.
- The user picks photos or videos in the system picker, and the app copies them into app-private storage.
- Each file is encrypted with AES-256-GCM through EncryptedFile, using a per-file key wrapped by the Android Keystore MasterKey, while album names and counts are stored in a Room database.
- After import, the gallery original can be deleted on the user's confirmation, so no unencrypted copy remains on the device.
- Opening the vault or a hidden album asks for the 4-digit PIN, checked against a salted hash, or a BiometricPrompt fingerprint or face match; 3 wrong PINs trigger a 30-second lockout and a break-in photo.
- Entering the decoy PIN opens the decoy vault with ordinary photos, while the hidden albums stay completely invisible.
- Sharing decrypts a temporary copy, sends it through a FileProvider, and deletes the copy when sharing finishes; the vault auto-locks 1 minute after the app leaves the foreground.
Tech stack:
- Kotlin
- Jetpack Compose · Material 3
- Room Database
- Jetpack Security · EncryptedFile
- Android Keystore
- BiometricPrompt · androidx.biometric
- CameraX
- MediaStore · Storage Access Framework
| Parameter | Value |
|---|---|
| Platform | Android 8.0 (API level 26) and above (design target) |
| App language | Kotlin |
| UI | Jetpack Compose with Material 3 components |
| Local database | Room (album and photo metadata) |
| File encryption | AES-256-GCM via Jetpack Security EncryptedFile (AES256-GCM-HKDF-4KB scheme) |
| Key storage | Android Keystore (MasterKey, AES256-GCM scheme) |
| Biometric unlock | BiometricPrompt system prompt (fingerprint or face, Class 2 or Class 3) |
| PIN | 4 digits, stored only as a salted hash (design target) |
| Lockout | 30 seconds after 3 failed PIN attempts (design target) |
| Auto-lock | 1 minute after the app leaves the foreground (design target) |
| Storage | App-private internal storage, invisible to gallery apps and file managers |
| Demo vault | 9 sample photos, approximately 1.4 MB total (measured in the demo build) |
| Internet needed | No — fully offline, no account and no cloud upload |
Project features
The vault is built around four capabilities that work together: encrypted storage, hidden albums, flexible unlocking and controlled sharing. Every photo and video is encrypted with AES-256-GCM as it is imported, with keys held in the Android Keystore so files stay unreadable outside the app. Hidden albums live in app-private storage, invisible to the gallery, recent apps and file managers, and open only after the correct PIN or a biometric check. A decoy PIN opens a second, ordinary-looking vault for situations where the owner is pressured to unlock the phone. Sharing never exposes the original file: the app hands out a temporary decrypted copy through a FileProvider and deletes it afterwards. Around these four sit the supporting controls — break-in alerts, auto-lock, import cleanup and per-album locks — that make the vault usable every day without weakening it.
- [AES-256-GCM on-device encryption] Every imported photo and video is encrypted with Jetpack Security EncryptedFile using the AES256-GCM-HKDF-4KB scheme, with keys held in the Android Keystore, so the files are unreadable outside the app.
- [Hidden albums] Albums live in app-private storage that the MediaStore never scans, so hidden photos do not appear in the gallery, in file managers, or as thumbnails on the recent-apps screen (FLAG_SECURE).
- [PIN lock with decoy PIN] A 4-digit PIN, stored only as a salted hash, guards the vault; a second decoy PIN opens a harmless vault with ordinary photos while the hidden albums stay invisible.
- [Biometric album lock] Fingerprint or face unlock through the BiometricPrompt system prompt, available for the whole vault and per hidden album.
- [Break-in alerts and lockout] Three wrong PINs trigger a 30-second lockout and capture a front-camera photo with a timestamp, shown in a break-in log inside the app.
- [Secure import and sharing] Photos are picked through the system picker, encrypted during import, and the gallery original can be deleted on confirmation; sharing hands out a temporary decrypted copy through a FileProvider that is deleted after sharing.
- [Auto-lock and vault settings] The vault re-locks 1 minute after the app leaves the foreground, with settings for changing the PIN, a recovery question, hiding from recents and per-album locks.
What is included
- Complete Android app source code in Kotlin with Jetpack Compose UI
- Room database schema and the EncryptedFile storage layer
- Working demo build with sample photos and the PIN, decoy and biometric flows
- Project report PDF (background, encryption design, architecture, testing)
- PPT presentation for final review
- Viva Q&A preparation document (encryption, Keystore, BiometricPrompt, Room, MediaStore)
- Setup instructions (Android Studio, minimum SDK, permissions)
Limitations & prerequisites
- If the PIN and the recovery answer are both lost, the encrypted files cannot be recovered — there is no master password, by design.
- Jetpack Security 1.1.0 marks EncryptedFile deprecated in favour of direct Android Keystore use; the build documents the migration path for that change.
- The break-in photo needs camera permission, and devices without a front camera skip the photo while still applying the lockout.
- Biometric unlock depends on device hardware; devices without fingerprint or face hardware fall back to PIN only.
- A 4-digit PIN has 10,000 combinations, so brute-force protection relies on the 30-second lockout after 3 failed attempts, not on PIN length alone.
- Videos are supported, but large video files increase import time and storage use; the demo build was tested with photos only.
- The vault protects files on the device; it does not remove photos already backed up to a cloud gallery before import.
Frequently Asked Questions
Is this project suitable for a final-year project?
Yes — for Computer Science, IT and Android app development programs, because it combines on-device encryption, Android Keystore key management, BiometricPrompt authentication, a Room database and MediaStore integration in one working app. The report explains each layer — encryption scheme, key wrapping, PIN hashing and the decoy mechanism — so the student can defend the design in the viva.
How are the photos encrypted?
Each photo is encrypted with AES-256-GCM through Jetpack Security EncryptedFile using the AES256-GCM-HKDF-4KB scheme, with the encryption keys held in the Android Keystore. Files are encrypted during import, before they are written to app-private storage, so no unencrypted copy of a vault photo ever sits on the device.
What is the decoy PIN and why does it matter?
The decoy PIN is a second 4-digit PIN that opens a harmless vault containing ordinary photos, while the real hidden albums stay invisible. It matters when someone is pressured to unlock the app: the owner can hand over a working PIN and a plausible vault without exposing private photos.
What happens if the PIN is forgotten?
The recovery question set during setup resets the PIN without touching the encrypted files, so photos stay safe. If the recovery answer is also forgotten, the files cannot be decrypted — there is no master password — so the setup flow warns the user to store the recovery answer safely.
Does the app need internet or an account?
No — the vault works fully offline, with encryption, PIN checks, biometric unlock and sharing all running on the device, and no account, no server and no cloud upload of any kind. The only permissions the app requests are storage access for import and the camera for the optional break-in photo, so nothing about the user or their photos ever leaves the phone.
Can this project be customized?
Yes — realistic extensions include a hidden video album, a per-album biometric lock, an intruder-photo log with timestamps, a cloud backup of the encrypted vault with a user-held key, and a duress PIN that wipes the vault. Each extension is scoped in the report as optional work, so the base build stays exactly as listed.
Components & software requirements
- Kotlin
- Jetpack Compose · Material 3
- Room Database
- Jetpack Security · EncryptedFile
- Android Keystore
- BiometricPrompt · androidx.biometric
- CameraX
- MediaStore · Storage Access Framework
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.