Skip to content

Beta 3

Latest

Choose a tag to compare

@KNITIPKA KNITIPKA released this 26 Nov 22:02
· 1 commit to main since this release

Frog Reader BETA 3 is a landmark release introducing the native Rust engine (frogreader-core), full PDF reading & annotation support, a Room 3 + SQLite FTS5 storage architecture, and a permanent RSA-4096 release signing certificate ready for future seamless updates, Google Play, and F-Droid builds. This release covers all changes since BETA 2.

Install and upgrade

Download FrogReader-BETA-3.apk from the assets below. The accompanying SHA256SUMS.txt records the APK checksum.

Important

Clean install required when moving from Beta 2 or earlier:

  1. New permanent signing certificate: Starting with BETA 3, Frog Reader transitions from the legacy Android Debug key to a permanent RSA-4096 PKCS12 production signing certificate (CN=KNITIPKA, SHA-256 27:FA:5C:18:99:1F:E9:53:AC:25:BE:BD:7A:64:61:99:4A:90:42:AA:BA:93:E8:95:6A:AC:99:DA:6B:B9:A7:70). Uninstall any earlier beta before installing Beta 3.
  2. New SQLite database & Backup format v4: Beta 3 replaces the legacy pre-SQLite JSON storage with Room 3 + SQLite and Backup format v4 (database/frogreader.db). Pre-SQLite backups created by Beta 2 or earlier (format v2) cannot be restored into Beta 3 — re-import your original ebook/PDF files after installing Beta 3.

All future releases from BETA 3 onward share this permanent signing key and SQLite backup format, allowing seamless in-place updates and backup restores.

  • Application ID: knitipka.frogreader (Frog Reader)
  • Minimum Android version: Android 9.0 (API 28)
  • Backup format: Version 4 (compacted SQLite snapshot via VACUUM INTO with PRAGMA quick_check + PRAGMA foreign_key_check validation and rollback protection)

What's new

Native Rust Engine (frogreader-core)

  • Direct Rust parsers & FRB v2 binary cache: EPUB (ZIP/OPF/NCX/NAV, CSS cascade & selectors, HTML/MathML/SVG/Ruby), FB2, Markdown (GFM tables/footnotes), TXT, and MOBI/AZW3 (KF8) now parse in native Rust and stream directly into LZ4 + CRC32 chunked .frb caches with tiny JVM/native memory peaks.
  • Native Rust WOFF & WOFF2 (Brotli): Full WOFF 1.0 and WOFF 2.0 decompression (brotli-decompressor) runs in native Rust; org.commonmark and org.brotli:dec are completely removed from the release APK (0 runtime classes).
  • SIMD native book search: Full-text in-book search scans compressed .frb blocks directly in native memory without allocating JVM Chapter trees.
  • 5× faster full-book pagination & instant jumps: 6-worker parallel chapter pagination with lock-free typography/font resolvers and a direct Android StaticLayout fast path (verified pixel-for-pixel identical to Compose TextMeasurer across 336 matrix cases on Android 16), plus anchor-sliced instant jumps from .rpi for huge chapters (500+ pages) and zero-flash seek/TOC navigation.
  • Optional Reader Loading HUD: English developer diagnostics overlay toggleable in Settings → Reading → Screen and startup (off by default) showing per-stage timings (ms/s), first-paint latency, pagination throughput (pg/s), and jump durations.

Native PDF Reader (:pdf-viewer)

  • AndroidX PDF + PDFium integration: Native PDF rendering, isolated document service, text selection, word-map native JNI binding, outline/TOC cache, highlights, notes, bookmarks, saved passages, and dedicated PDF reader settings.

Room 3 + Bundled SQLite FTS5 Storage

  • Single ACID SQLite 3.50+ database: Library metadata, reading progress, shelves, quotes, bookmarks, reading queue, reading log, daily stats, achievements, and FTS5 instant full-text search indexes live in frogreader.db via Room 3 + BundledSQLiteDriver (WAL mode, foreign keys enforced).
  • Backup Format v4: Atomic VACUUM INTO database snapshots with pre-swap integrity verification and .pre_restore_bak rollback.

Distribution & Store Readiness

  • Permanent RSA-4096 PKCS12 signing (CN=KNITIPKA, valid through 2054) — no debug-key fallback in release builds.
  • F-Droid & reproducible source build ready: dependenciesInfo is disabled (includeInApk = false, includeInBundle = false), and source builds without signing credentials produce a clean unsigned release APK/AAB.
  • 16 KiB page-size alignment: All native .so binaries (arm64-v8a, armeabi-v7a, x86, x86_64) and the release APK pass PT_LOAD 0x4000 and zipalign -c -P 16 verification.

See CHANGELOG.md for the complete technical changelog.

Verification

  • Rust workspace: cargo fmt --check, cargo clippy -- -D warnings (0 warnings), cargo test --locked (232 passed, 0 failed).
  • JVM unit tests: ./gradlew test — 2,418 passed, 8 skipped, 0 failures, 0 errors.
  • Android Lint: :app:lintDebug and :app:lintRelease — 0 errors.
  • Physical device (Google Pixel 9a, Android 16 / API 36):
    • 100% direct Rust-vs-Kotlin EPUB parity on Hebrew Bible (122/122 chapters, 11,972 notes, 40,558 link targets, 0 diffs).
    • Re:Zero (677 chapters, 35,929 pages): FRB build 1.29 s (was 38.8 s), full R8 pagination 21.57 s (was 108.7 s, 5.04× faster), warm .rpi reopen < 1 s.
    • IndexedPaginationPassTest (4/4), IndexedReaderUiTest (core 5/5 + real-corpus seek & frame matrix), RustEngineDeviceBenchmarkTest (3/3).
  • Release binaries: zipalign -c -P 16 -v 4 passed, apksigner verify V2 passed (CN=KNITIPKA, RSA-4096), non-debuggable versionCode=7, versionName=BETA 3, 0 org/commonmark & 0 org/brotli runtime classes, app-release.aab bundle verified.

Source and license

Licensed under GPL-3.0-only. See THIRD_PARTY_NOTICES.md. Source is pinned at tag beta-3.