Offline screenshot search powered by FreeSched — 100% air-gapped, zero
INTERNETpermission, zero gallery permissions, 16 KiB page-aligned.
Recall (org.freesilicon.recall) indexes and searches your screenshots locally on Android using SQLite FTS5, quantized INT8 vector similarity, and FreeSched's AHardwareBuffer (0x1000000) + sync_file GPU↔NPU pipeline (arm64-v8a).
- Zero
<uses-permission>declarations: NoINTERNET, noACCESS_NETWORK_STATE, noREAD_MEDIA_IMAGES, noMANAGE_EXTERNAL_STORAGE, and noAccessibilityService. - Scoped user-driven import only: Android Photo Picker (
PickMultipleVisualMedia), Android Share Sheet (ACTION_SEND/ACTION_SEND_MULTIPLE), and SAF Folder Picker (ACTION_OPEN_DOCUMENT_TREE). - Owner-only local store (
0600): SQLite FTS5 + INT8 embedding index and cached thumbnails reside strictly in app-privatenoBackupFilesDir/databaseswith cloud backup disabled. - Cancel-safe & non-resurrecting deletes: Monotonic
import_generationfencing ensures deleting a screenshot while indexing is in flight never resurrects it on late completion. - 16 KiB Page Alignment: Built for
arm64-v8awithPT_LOAD >= 0x4000, uncompressedjniLibs, andzipalign -P 16.
- Import & Dedupe (
ImportManager,Sha256Hasher) — Streams incoming URIs through SHA-256 deduplication and reserves a monotonicimport_generationin SQLite. - Pretrained Visual+Text Search & Zero-Permission OCR (
MobileClipOnnxEncoder,ClipBpeTokenizer,BitmapOcrExtractor,:models_pack) — Play Asset Delivery install-time pack bundles SHA-256-verified pretrainedMobileCLIP-S0INT8 ONNX vision+text encoders (11 MBvision +41 MBtext + CLIP BPE tokenizer, fetched at build time byscripts/fetch-mobileclip-onnx.shon 16 KiB-aligned zero-permissiononnxruntime-android:1.25.0) alongsideocr_glyphs_int8.rcl1for both visual object/item search and light/dark-aware on-device OCR. - FreeSched Hardware Telemetry & 8-Image Calibration (
FreeSchedEngine) — Discovers NNAPI accelerators (google-edgetpu,qti-htp/qti-dsp,mtk-neuron/mtk-mdla) viafreesilicon/freeschedand runs an apples-to-apples 8-image 2-layer FFN calibration (64 -> 128 -> 64) on CPU vs FreeSched AHB+NNAPI without faking NPU speedup on fallback. - Hybrid Store (
RecallDatabase) — Combines SQLitefts5(bm25) lexical search with quantized 512-d INT8 cosine similarity and normalized OCR bounding boxes. - 3-Screen Jetpack Compose UI —
- Search Home: Instant semantic + OCR search, matched snippet pills, masonry grid, and
+ Importsheet. - Indexing & Benchmark Card: Live batch telemetry, 8-image calibration comparison, and 1-tap PNG Hardware Card exporter (zero personal screenshots included).
- Result Detail & Crop Jump: Pinch/pan zoom focused on matched OCR bounding boxes,
Copy,Share,Redact(v1.1 hook), and atomicDelete.
- Search Home: Instant semantic + OCR search, matched snippet pills, masonry grid, and
# 1. Sync pinned freesilicon/freesched (c795eed1) & build its 16 KiB arm64-v8a AAR
./scripts/build-freesched-aar.sh
# 2. Run JVM + Robolectric unit tests, assemble debug APK & Play Asset Delivery AAB
./gradlew testDebugUnitTest assembleDebug bundleDebug
# 3. Verify zero platform permissions, 16 KiB ELF alignment, and clean-room boundaries
./scripts/check-zero-permissions.sh
./scripts/check-16k-alignment.sh
./scripts/clean-room-audit.shApache License 2.0 — see LICENSE.