OTA Pulse
OTA Pulse is a modern, high-performance Android application for discovering, downloading, and inspecting official Over-The-Air (OTA) firmware packages for OnePlus, Realme, and OPPO (BBK) devices. The repository also includes a static landing page at index.html.
Request, inspect, stream, and extract partitions directly from official OEM OTA update servers without downloading full multi-gigabyte archives.
What the App Does
- Device Catalog: Browse and search 150+ built-in device definitions across OnePlus, Realme, and OPPO with regional variant filters (Global, India, Europe, China, North America, Sri Lanka)
- Favorites & Custom Devices: Star frequently queried devices or define custom device profiles with full import/export backup support
- Device Watchlist & Multi-Device Monitoring: Monitor updates across multiple devices and regional variants simultaneously with throttled background batch scans, clean card status indicators, dedicated region matrix management, and JSON import/export via the top bar overflow menu
- Rich OTA Metadata & Human-Readable Changelogs: Fetch live firmware metadata, update changelogs, full/incremental package sizes, MD5 hashes, and download endpoints; parse BBK HTML/text panel notes into clean Markdown with one-tap Chinese-to-English translation
- Custom Streaming Download Engine: Multi-threaded OkHttp download manager with foreground service supervision, pause/resume persistence, notification controls, Wi-Fi-only mode, bandwidth throttling, and custom download location selection
- Selective Partition Extraction: Inspect remote ZIP central directories over HTTP byte-range requests with ZIP64 64-bit disk offset support to extract critical partitions (e.g.
boot.img, init_boot.img, vendor_boot.img, recovery.img) without downloading full 8 GB archives
- Anti-Rollback (ARB) Protection: Parse Qualcomm XBL and ELF headers directly from payloads before extraction to guard against firmware rollback bricks
- Adaptive Home Screen Widget & Quick Settings Tile: Compact (2x2) and detailed (4x2) home screen widgets with Material 3 dynamic Monet colors, Pure Black AMOLED synchronization, and a one-tap Quick Settings Tile for instant background OTA checks
- Advanced Diagnostic Tools:
- Manual Query: Query arbitrary server parameters, components, and custom NV identifiers with region auto-hints
- Partition Extraction: Direct payload manifest inspection and streaming extraction
- Link Resolver: Validate and resolve official CDN URLs
- ARB Checker: Anti-Rollback index inspection and safety warnings
- Query History: Searchable, Room-backed query history with one-tap re-queries
- Hardware Identification: Automatic local SoC and model detection on the Home update screen with equalized metric card layouts
- Self-Updating & Background Scheduling: Centralized periodic update scheduler (
SoftwareUpdateScheduler), redesigned check interval cadence selector (15 min – 24 h), boot persistence, and hardened in-app GitHub release update checks with URL validation and APK signing-certificate verification
- Global Localization: 25+ regional languages supported out of the box
- Dynamic Theming & Modern Navigation: 100% Jetpack Compose UI with Material Design 3, Material Kolor dynamic color extraction, AMOLED pure black mode, expandable pill bottom navigation bar with spring physics, and full state preservation across tab navigation
Tech Stack
- Language: Kotlin 2.4.21
- UI Toolkit: 100% Jetpack Compose (
composeBom = 2026.09.00, Material 3 1.5.0-rc01, Material Kolor 5.0.1)
- SDK Targets:
minSdk = 29 (Android 10) • targetSdk = 37 • compileSdk = 37
- Build System: Android Gradle Plugin
9.5.1, Gradle 8.13, KSP 2.3.13
- Architecture: MVI / MVVM with Coroutines & StateFlow
- Dependency Injection: Hilt 2.60.1 + KSP 2.3.13
- Navigation: AndroidX Navigation Compose 2.10.2 (with predictive pop slide overrides and full tab state preservation)
- Background Work: WorkManager 2.12.0 (Hilt integration) & Custom Foreground Services
- Database & Persistence: Room 2.8.5 + Jetpack DataStore Preferences
- Networking: OkHttp 5.5.1 + Custom Streaming Range Engine
- Payload & Compression: Brotli 0.1.2, Apache Commons Compress 1.28.0, XZ 1.12, Protobuf Lite 4.36.2
- Markdown & Serialization: Markwon 4.6.2, Gson 2.15.0
- Logging: Timber 5.0.1
Quick Start
- Clone the repository:
git clone https://github.com/RemuruSama/OTA-Pulse.git
cd OTA-Pulse
- Open the project in Android Studio (Ladybug / Meerkat or newer recommended).
- (Optional) For signed release builds, create
keystore.properties in the project root:STORE_PASSWORD=your_keystore_password
KEY_PASSWORD=your_key_password
- Sync Gradle and run the
app configuration on an Android 10+ (API 29+) device or emulator.
Commands
| Command |
Description |
./gradlew assembleDebug |
Build debug APK (app/build/outputs/apk/debug/) |
./gradlew assembleRelease |
Build optimized release APK (app/build/outputs/apk/release/) |
./gradlew test |
Run all 18 unit test suites across app, catalog, network, download, changelog, watchlist, navigation, and crypto modules |
./gradlew connectedAndroidTest |
Run instrumented tests on an active device or emulator |
./gradlew lint |
Run Android lint analysis against lint-baseline.xml |
Project Structure
Otaupdater/
├─ app/
│ ├─ build.gradle.kts
│ └─ src/
│ ├─ main/
│ │ ├─ java/com/abhinav/otapulse/
│ │ │ ├─ app/ # Application shell, MainActivity, MainViewModel, OtaPulseApp (Compose root)
│ │ │ ├─ arb/ # Anti-rollback & extraction safety (XBL parser, ELF inspection)
│ │ │ ├─ catalog/ # Device catalog logic, parser, favorites, custom devices
│ │ │ ├─ core/ # Shared infrastructure
│ │ │ │ ├─ common/ # Utilities, crypto, permissions, mappers, card generators
│ │ │ │ ├─ database/ # Room database configuration & type converters
│ │ │ │ ├─ download/ # Custom OkHttp streaming download engine & foreground service
│ │ │ │ ├─ model/ # Shared domain models (OtaUpdate, WatchlistDevice, etc.)
│ │ │ │ ├─ network/ # Networking primitives, OTA resolver, GitHub updater
│ │ │ │ ├─ notifications/ # Notification channels & download helpers
│ │ │ │ ├─ preferences/ # App/theme settings datastores & OtaStatusStore
│ │ │ │ ├─ receiver/ # Boot & download action receivers
│ │ │ │ ├─ ui/ # Shared Compose design system & HolographicTheme
│ │ │ │ ├─ watchlist/ # WatchlistRepository & multi-device WatchlistScanner
│ │ │ │ └─ worker/ # Background workers (SoftwareUpdateCheckWorker, SoftwareUpdateScheduler)
│ │ │ ├─ di/ # Hilt dependency injection modules
│ │ │ ├─ feature/ # User-facing product flows & Compose screens
│ │ │ │ ├─ about/ # App info, developer profiles, what's new sheet
│ │ │ │ ├─ browser/ # In-app hardened WebView browser
│ │ │ │ ├─ devicecatalog/ # Catalog browsing, filters, OTA details sheet, changelog card
│ │ │ │ ├─ devices/ # Domain use cases & ViewModels for device catalog
│ │ │ │ ├─ downloads/ # Download queue, file lifecycle, DownloadsScreen
│ │ │ │ ├─ history/ # OTA query history tracking & browsing
│ │ │ │ ├─ otatools/ # Manual Query, Partition Extraction, Link Resolver, ARB Checker
│ │ │ │ ├─ quicktile/ # Quick Settings Tile service (OtaQuickTileService)
│ │ │ │ ├─ settings/ # Theme, clock interval picker, ARB toggle, backup import/export
│ │ │ │ ├─ updates/ # Home update discovery screen & state
│ │ │ │ ├─ watchlist/ # Device Watchlist screen, dialogs, and ViewModel
│ │ │ │ └─ widget/ # Home screen AppWidget provider & RemoteViews layouts
│ │ │ ├─ navigation/ # Compose Navigation host (OtaPulseNavGraph), Screen routes, LocalNavBarHeight
│ │ │ └─ ota/ # OTA engine, payload manifest, remote ZIP range parser, changelog & translation
│ │ │ └─ changelog/ # In-memory changelog fetcher, Markdown parser, Chinese-to-English translator
│ │ └─ res/ # Density-qualified drawables, RemoteViews layouts, HTTPS-only network_security_config, and 25+ localized string resources
│ └─ test/ # 18 comprehensive unit test suites
├─ devices/ # JSON device catalog (oneplus.json, oppo.json, realme.json)
├─ gradle/
│ └─ libs.versions.toml # Version catalog
├─ architecture.md # Deep architectural map, ownership rules, pressure points, and ADRs
├─ index.html # Static landing page
└─ settings.gradle.kts
Architecture & Decisions
OTA Pulse enforces strict package ownership and modular boundaries. Read architecture.md for the complete package blueprint, runtime flow, resource layer details, pressure points, and documented architectural decisions.
Contributing
We welcome contributions! Please review the guidelines below:
- Adding Devices: Add device definitions to
devices/oneplus.json, devices/oppo.json, or devices/realme.json. Do not hardcode device entries in Kotlin files.
- UI Components: Place feature-specific screens in
feature/<feature_name>/ui/. Reusable cross-feature widgets belong in core/ui/components/.
- Navigation: Register new screen destinations in
navigation/Screen.kt and wire them into navigation/OtaPulseNavGraph.kt.
- OTA Engine & Safety: Keep server request serialization in
core/network/Request.kt, rollback/extraction logic in ota/ and arb/, and changelog/translation in ota/changelog/.
- Architectural Changes: When introducing major architectural changes or switching core libraries, document the decision and trade-offs under Architectural Decisions in architecture.md.
- Testing: Ensure all unit tests pass before submitting a pull request:
./gradlew test
Credits
Support
If you find OTA Pulse useful, please consider giving it a star ⭐ on GitHub — it helps improve visibility and project reach!
评论