AirSlice

⚡ AirSlice v1.3.0 — High-Performance Android Local Web Server & HTTP 206 Media Streamer

Kotlin Jetpack Compose Release Platform APK Size

AirSlice (com.anasdev.fluxlink) is an offline-first, embedded HTTP file server and low-latency media streaming engine for Android. It transforms any Android device into a zero-configuration cloud workspace and video streaming server accessible from any desktop or mobile browser over local Wi-Fi or Direct Mobile Hotspot—requiring zero internet connection, zero cables, and zero client software installation.


Latest Release APK

Download APK


🌟 What’s New in Release v1.3.0


🌟 Previous Highlights (Release v1.2.1)


🌟 Previous Highlights (Release v1.2.0)


🌟 Previous Highlights (Release v1.1.2)


🌟 Previous Highlights (Release v1.1.1)


🌟 Previous Highlights (Release v1.1.0)


✨ Engineering Highlights


📊 Performance & Android Studio Telemetry

Telemetry Metric Measured Value (com.anasdev.fluxlink) Architectural Reason
Release APK Size 3.51 MB (Down from 75 MB) Custom standalone Material vector assets paired with crash-proof R8 code/resource shrinking (-dontobfuscate).
App CPU Usage ~8% – 10% OS-level NIO Zero-Copy (FileChannel) offloads packet transfer directly to the Linux kernel, keeping JVM user-space CPU usage minimal.
Memory Footprint (3 GB Transfer) 92 MB (Background) / 135 MB (UI Active) Strict O(1) streaming pipeline. Pre-allocated DirectBufferPool (reusable 512 KB direct buffers) prevents heap expansion regardless of file size.
Garbage Collection (GC) Events 0 GC pauses during video scrub/stream Pre-allocated direct buffer reuse and Draw-phase graphicsLayer animations eliminate allocation churn and JVM GC pauses.
Background Process Survival Zero throughput drop when app is backgrounded Powered by an Android Foreground Service holding a PARTIAL_WAKE_LOCK and WIFI_MODE_FULL_LOW_LATENCY hardware lock.

🏗️ System Architecture

AirSlice follows Clean Architecture + MVVM with reactive Kotlin StateFlow state management:

com.anasdev.fluxlink
├── data
│   ├── NetworkInfoProvider.kt        # Hotspot vs Wi-Fi interface scoring & callbacks
│   ├── HotspotClientTracker.kt       # Android 11+ ARP & HTTP client tracker for hotspot detection
│   ├── HostUrlChangeHandler.kt       # Graceful teardown of sockets, sessions, & rate limiters on URL change
│   ├── LocalServerEngine.kt          # Embedded HTTP Server Engine, HTTP 206 Range Streamer, ZIP Streamer
│   ├── ClipboardSessionStore.kt      # In-memory thread-safe FIFO clipboard repository (50 items, RAM-only)
│   ├── AndroidClipboardBridge.kt     # System clipboard manager bridge & notification fallback generator
│   ├── ClipboardCopyReceiver.kt      # BroadcastReceiver trampoline for notification 1-tap copy
│   ├── ClipboardRateLimiter.kt       # IP-based sliding window rate limiter for clipboard pushes
│   ├── SecurityManager.kt            # Dynamic 4-Digit PIN & Session Cookie Auth
│   ├── ConnectionApprovalManager.kt  # 1-Tap Approval State Machine
│   ├── ConnectedSessionManager.kt    # Live Client Session & Real-Time Activity Tracking
│   ├── FileAccessTracker.kt          # Thread-safe in-memory file & folder access tracker
│   ├── ThumbnailGenerator.kt         # Concurrency-Bounded In-Memory RGB_565 WebP Thumbnail Generator
│   ├── DirectBufferPool.kt           # Zero-GC 512 KB Reusable Direct Buffer Pool
│   ├── ServerDispatchers.kt          # Workload isolation via dedicated coroutine dispatchers
│   ├── LockManager.kt                # CPU WakeLock + Low-Latency Wi-Fi Lock
│   ├── FileManager.kt                # Directory metadata, MIME mappings, path-traversal validation
│   ├── VideoStreamDataSource.kt      # O(1) RandomAccessFile / FileChannel Range Streamer
│   └── QrCodeGenerator.kt            # Pure Kotlin QR Code bitmap generator
├── domain
│   ├── model                         # NetworkState, DirectoryContent, FileMetadata, ServerStatus, ClipboardItem, AppTheme, AppLanguage
│   └── repository                    # NetworkRepository, ServerRepository, SessionRepository, SettingsRepository
├── service
│   └── ServerForegroundService.kt    # Foreground Service, Notification, WakeLock & WifiLock lifecycle
├── presentation
│   ├── MainActivity.kt               # Main Activity Entrypoint, Share Sheet Handler & Keep-Screen-On Flag Manager
│   ├── ClipboardPushActivity.kt      # Transparent Trampoline Activity for native Share Sheet & Push Actions
│   ├── navigation/AppNavigation.kt   # NavHost with custom slide + fade transitions
│   ├── state/HomeViewModel.kt        # Unidirectional UI State, Shared Clipboard State & Intent handling
│   ├── state/SettingsViewModel.kt    # Settings StateFlows & Preferences Mutators
│   ├── ui/screens/HomeScreen.kt      # Morphing Power Control, Adaptive Layout, Connected Devices, Clipboard Card
│   └── ui/screens/SettingsScreen.kt  # Material 3 Categorized Settings & About Section
└── assets/web                        # Offline Single-Page Web Application (HTML5 / CSS3 / ES6 Vanilla JS)

👤 Developer & Maintainer

Developer: Anas Muhammad

GitHub Repository: EngAnasMuhammad/AirSlice