A full-featured Material 3 + Monet screenshot suite for Android 11+ (API 30+) built around AccessibilityService.takeScreenshot() — delivering continuous pipelined scrolling capture, region capture, delayed capture, multi-photo collage stitching, 4-edge cropping, rich annotations, offline OCR & QR recognition, beautified gradient frames, and history management without MediaProjection consent dialogs.
- Quick Settings Tiles & Floating Chooser:
- Main Tile (
LongScreenshotTileService): Single-tap takes a Full Screen capture (or stops an active scroll capture); long-press (QS_TILE_PREFERENCES) opens the floating Capture Chooser (CaptureChooserActivity) for Scroll Shot, Full Screen, Region Shot, Manual/Auto mode, and Delay (0s / 3s / 5s) — with descriptive QS subtitles (Tap: Full · Hold: More). - Region Tile (
RegionScreenshotTileService): Immediate interactive freehand or aspect-locked (Free,1:1,4:3,16:9,Full) region cropper.
- Main Tile (
- Smooth Scrolling Capture (
StitchEngine+ScrollStitcher+AutoTouchGuard):- Auto & Manual Modes: Continuous zero-fling glide (
Slow,Balanced,Fast) with pipelined mid-motion sampling; yields immediately to Manual mode the instant you touch the screen (FLAG_WATCH_OUTSIDE_TOUCH), with an optional Auto-finish at bottom toggle. - Robust Alignment: 128-column RGB signatures with 85% trimmed error skip fixed headers, bottom bars, and FABs; waits for SystemUI Quick Settings collapse and auto-rebases Frame 1 if closing animations were settling.
- Split-Screen & Large Canvas Support: Auto-crops active split-screen/freeform bounds, trims status & gesture bars cleanly, and spills strips to disk (
ARGB_8888up to36000 × 1440).
- Auto & Manual Modes: Continuous zero-fling glide (
- 4-Edge Editor, Rich Annotations, Frame Beautifier & Offline OCR/QR (
PreviewActivity+LongCropView):- 2-Finger Zoom & Pan (
1x–3x) across all editing modes with<= 1800pxGPU-safe tiles. - 4-Edge & 4-Corner Crop: Drag top, bottom, left, or right handles (with viewport-following side capsules safe from gesture-navigation Back zones).
- Mosaic Redaction: Freehand Brush mode (
1–20size) + Box mode with adjustable Strength (1–10) and live pixelated preview. - Unified Annotate Tab: Pen, Arrow, Line, Box, Oval, Step Badge (
①②③), Text Note, and Spotlight Focus, backed by 9 preset swatches, a 2D HSV/RGB color wheel, adjustable stroke width, and Undo / Redo. - Beautify Frame: 6 rounded-corner shadow frames (
Monet,Ocean,Sunset,Forest,Slate,Light). - Visual Custom Split Lines & Per-Page Editing: Tap
Splitto interactively add, remove, or drag cut lines; unedited captures split into a multi-page editor (Prev / Next,Delete page,Save 1,Save all (N)). - Offline Text & QR Extraction (
TextQrRecognizer): Bundled ML Kit Chinese+Latin OCR and ZXing QR/barcode decoder for tall screenshots.
- 2-Finger Zoom & Pan (
- Multi-Photo Stitch, History Browser & Export (
PhotoStitchActivity,HistoryActivity,ImageSaver):- Photo Stitch: Pick 2–12 gallery images and join vertically or horizontally with configurable gap & corner radius.
- Capture History: Searchable, filterable grid browser with multi-select share and batch delete.
- Flexible Saving: Export PNG / WebP / JPEG (configurable quality
60–100%) to a customizablePictures/<folder>directory, Copy (FileProvider), Share, or act directly fromBigPictureStylenotifications (Share/Copy/Delete).
- Delayed Countdown & System Screenshot Assist:
3s/5sfloating countdown pill (CountdownOverlayController) for capturing menus and transient UI, plus opt-inScreenshotObserver+AssistOverlayControllerfor quick actions after system screenshots.
- Material 3 Monet & Localization: Wallpaper dynamic colors, DayNight edge-to-edge UI, English & Simplified Chinese (
values+values-zh), Android 13+localeConfig, and in-app language switching.
Requires JDK 17–21 and Android SDK (compileSdk 36, minSdk 30):
./gradlew :app:testDebugUnitTest :app:assembleDebug :app:assembleRelease
# Optional per-ABI split release APKs (arm64-v8a + armeabi-v7a + universal):
./gradlew :app:assembleRelease -PsplitApks=true
adb install -r app/build/outputs/apk/debug/app-debug.apkFor signed release builds, provide keystore.properties (storeFile, storePassword, keyAlias, keyPassword) in the project root or set KEYSTORE_FILE / KEYSTORE_PASSWORD / KEY_ALIAS / KEY_PASSWORD.
| File | Responsibility |
|---|---|
AppPrefs.kt / ScrollCaptureApp.kt |
Centralized preferences (auto_scroll, scroll_speed, trim_system_bars, auto_finish_bottom, export_format, save_subdir, delay_seconds, editor defaults) and stale cache pruning |
CaptureAction.kt |
CaptureAction enum & pure-Kotlin CaptureGeometryMath (CaptureGeometryMathTest.kt) |
ScrollCaptureService.kt / AutoTouchGuard.kt |
Accessibility capture lifecycle, single-frame & scroll sessions, speed profiles, shade wait, pipelined auto-scroll, instant outside-touch handoff (AutoTouchGuardTest.kt) |
CaptureOverlayController.kt / CountdownOverlayController.kt / AssistOverlayController.kt |
Draggable Monet top/bottom control pill, delayed countdown badge, and screenshot assist mini-pill |
StitchEngine.kt / ScrollStitcher.kt / NativeStitchBridge.kt |
Frame alignment (StitchEngineTest.kt), zero-copy JNI dispatch to Rust (rust/snapflow-native/), Frame-1 auto-rebase, disk-backed strip spill, and exportable diagnostics (StitchDiagnostics.kt) |
rust/snapflow-native/ |
Native Rust libsnapflow_native.so (AndroidBitmap_lockPixels zero-copy RGB signature extraction, SIMD-friendly row_diff, and O(n) trimmed L1 matching with automatic Kotlin fallback) |
RegionSelectionView.kt / RegionCaptureActivity.kt |
Interactive freehand/aspect-locked region capture flow |
PreviewActivity.kt / LongCropView.kt / ImageEditor.kt |
Tiled viewer, 4-edge crop, Mosaic/Annotate tools, Undo/Redo, 2-finger zoom/pan, Beautify frames, visual Split lines & per-page editor |
TextQrRecognizer.kt |
Offline ML Kit Chinese+Latin OCR & ZXing QR/barcode recognizer |
PhotoStitchActivity.kt / HistoryActivity.kt / RecentCapturesStore.kt |
Multi-photo collage stitcher and searchable batch history browser |
ImageSaver.kt / ScreenshotActionReceiver.kt |
Custom-folder PNG/WebP/JPEG export, custom split-page saving, clipboard copy, BigPictureStyle notification actions |
MainActivity.kt / ScrollTestActivity.kt |
Material 3 hub, quick actions, recent captures strip, settings, and dedicated scroll-test feed |
LongScreenshotTileService.kt / RegionScreenshotTileService.kt / CaptureActivity.kt / CaptureChooserActivity.kt |
Quick Settings tiles with subtitles, long-press floating chooser (QS_TILE_PREFERENCES), and shade collapse handoff |
ColorWheelView.kt / RgbColorPickerDialog.kt |
Interactive 2D HSV color wheel & synchronized R/G/B sliders dialog |
GNU General Public License v3.0 (GPL-3.0) — see LICENSE. Upstream MIT notice for derived portions is preserved in NOTICE.