How ch6vip/fqapp works
fqapp is an Android-local client for discovering and consuming novels, short dramas, audio books, and manga from upstream services. The documented user flow is browse/search, open a work, then read or play it online or from cache; the app also supports listening, progress/history, downloads, and backup. The tree exposes the Android host and Rust core, but not the Flutter UI or its local persistence implementation, so those are not expanded into speculative components. Endpoint coverage is represented at the subsystem level where source was not sampled.
Main entry points: client.rs Upstream client · MainActivity.kt Android host · mod.rs Endpoint registry · dispatch.rs Request dispatcher
Components 27
Android app
- Android host
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Native playback
android/app/src/main/kotlin/com/fqapp/fqapp/NativePlayerPlugin.kt - Background audio
android/app/src/main/kotlin/com/fqapp/fqapp/ListenKeepAliveService.kt - Reader device controls
android/app/src/main/kotlin/com/fqapp/fqapp/ReaderDevicePlugin.kt - System TTS
android/app/src/main/kotlin/com/fqapp/fqapp/SystemTtsPlugin.kt - Local book import
android/app/src/main/kotlin/com/fqapp/fqapp/LocalBookPickerPlugin.kt - Library backup
android/app/src/main/kotlin/com/fqapp/fqapp/LibraryBackupPlugin.kt - Book export
android/app/src/main/kotlin/com/fqapp/fqapp/DownloadsPlugin.kt
Rust core
- Flutter Rust API
rust/src/api/mod.rs - Loopback server
rust/src/server.rs - Request dispatcher
rust/src/dispatch.rs - REST route matcher
rust/src/endpoints/router.rs
Content services
- Endpoint registry
rust/src/endpoints/mod.rs - Discovery and catalog
rust/src/endpoints - Novel reading
rust/src/endpoints - Drama video
rust/src/endpoints/video.rs - Manga reading
rust/src/endpoints/manga.rs - Audio books
rust/src/endpoints
Device and signing
- Upstream client
rust/src/upstream/client.rs - Device pool
rust/src/device/mod.rs - Device registration
rust/src/device/register.rs - Request signing
rust/src/sign/mod.rs - HTTP transport
rust/src/upstream/http.rs
Media support
- Native CENC crypto
native/crypto_core/mp4_cenc.c - JNI bridge
native/android/jni_bridge.c
Other components
- Reader
- Upstream content service
Connections 30
- Reader → Android host: uses
README.md - Android host → Native playback: registers
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Android host → Reader device controls: registers
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Android host → System TTS: registers
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Android host → Local book import: registers
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Android host → Library backup: registers
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Android host → Book export: registers
android/app/src/main/kotlin/com/fqapp/fqapp/MainActivity.kt - Native playback → Background audio: dispatches controls
android/app/src/main/kotlin/com/fqapp/fqapp/ListenKeepAliveService.kt - Native playback → Native CENC crypto: decrypts media
- Flutter Rust API → Request dispatcher: dispatches requests
rust/src/api/mod.rs - Loopback server → Request dispatcher: dispatches requests
rust/src/server.rs - Request dispatcher → REST route matcher: matches paths
rust/src/dispatch.rs - Request dispatcher → Endpoint registry: dispatches handlers
rust/src/dispatch.rs - Request dispatcher → Loopback server: serves web UI
rust/src/dispatch.rs - Endpoint registry → Discovery and catalog: registers handlers
rust/src/endpoints/mod.rs - Endpoint registry → Novel reading: registers handlers
rust/src/endpoints/mod.rs - Endpoint registry → Drama video: registers handlers
rust/src/endpoints/mod.rs - Endpoint registry → Manga reading: registers handlers
rust/src/endpoints/mod.rs - Endpoint registry → Audio books: registers handlers
rust/src/endpoints/mod.rs - Discovery and catalog → Upstream client: requests content
- Novel reading → Upstream client: requests chapters
- Drama video → Upstream client: requests media
- Manga reading → Upstream client: requests pages
- Audio books → Upstream client: requests audio
- Upstream client → Request signing: generates signatures
rust/src/upstream/client.rs - Upstream client → Device pool: selects device
rust/src/upstream/client.rs - Upstream client → HTTP transport: sends requests
rust/src/upstream/client.rs - Device pool → Device registration: refills pool
rust/src/device/mod.rs - HTTP transport → Upstream content service: sends HTTP
- Native CENC crypto → JNI bridge: exposes native crypto
native/android/jni_bridge.c