|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Android DEX | Integrated Technical Documentation</title> |
| 7 | + <!-- Combined Typography & System Fonts --> |
| 8 | + <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 9 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 10 | + <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700&family=JetBrains+Mono&display=swap" rel="stylesheet"> |
| 11 | + <link rel="stylesheet" href="web/style.css"> |
| 12 | +</head> |
| 13 | +<body> |
| 14 | + <aside class="sidebar"> |
| 15 | + <div class="logo-container"> |
| 16 | + <div class="logo-icon">📱</div> |
| 17 | + <span class="logo-text">Android<span>DEX</span></span> |
| 18 | + </div> |
| 19 | + |
| 20 | + <nav class="nav-menu"> |
| 21 | + <div class="nav-group"> |
| 22 | + <div class="nav-group-title">Getting Started</div> |
| 23 | + <div class="nav-item"> |
| 24 | + <a href="index.html" class="nav-link active">Introduction</a> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + |
| 28 | + <div class="nav-group"> |
| 29 | + <div class="nav-group-title">Deep Dive</div> |
| 30 | + <div class="nav-item"> |
| 31 | + <a href="web/architecture.html" class="nav-link">Architectural Design</a> |
| 32 | + </div> |
| 33 | + <div class="nav-item"> |
| 34 | + <a href="web/boot-flow.html" class="nav-link">Boot & Initialization</a> |
| 35 | + </div> |
| 36 | + <div class="nav-item"> |
| 37 | + <a href="web/reconnection.html" class="nav-link">Reconnection System</a> |
| 38 | + </div> |
| 39 | + <div class="nav-item"> |
| 40 | + <a href="web/data-model.html" class="nav-link">Real-Time Data Model</a> |
| 41 | + </div> |
| 42 | + <div class="nav-item"> |
| 43 | + <a href="web/error-handling.html" class="nav-link">Error Handling</a> |
| 44 | + </div> |
| 45 | + <div class="nav-item"> |
| 46 | + <a href="web/modules.html" class="nav-link">System Modules</a> |
| 47 | + </div> |
| 48 | + <div class="nav-item"> |
| 49 | + <a href="web/device-manager.html" class="nav-link">Device Manager</a> |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + </nav> |
| 53 | + |
| 54 | + <div class="sidebar-footer"> |
| 55 | + <span class="version-badge">DEX-STABLE-104-SINGLE</span> |
| 56 | + </div> |
| 57 | + </aside> |
| 58 | + |
| 59 | + <main class="main-content"> |
| 60 | + <header class="page-header"> |
| 61 | + <div class="breadcrumb">Documentation / Overview</div> |
| 62 | + <h1>Your Phone, Reimagined as a Desktop</h1> |
| 63 | + <p class="description">Architectural deep-dive into the synchronization between Windows NT and Android Linux environments. Reimagining Android as a high-performance desktop experience.</p> |
| 64 | + </header> |
| 65 | + |
| 66 | + <section class="doc-section"> |
| 67 | + <h2>Quick Start</h2> |
| 68 | + <p>Connect your device via USB or Wi-Fi to begin. The system auto-detects your device and initiates the secure handshake protocol.</p> |
| 69 | + <table> |
| 70 | + <thead> |
| 71 | + <tr> |
| 72 | + <th>Mode</th> |
| 73 | + <th>Setup</th> |
| 74 | + </tr> |
| 75 | + </thead> |
| 76 | + <tbody> |
| 77 | + <tr> |
| 78 | + <td><strong>USB</strong></td> |
| 79 | + <td>Plug in your phone · Enable **USB Debugging**</td> |
| 80 | + </tr> |
| 81 | + <tr> |
| 82 | + <td><strong>Wi-Fi</strong></td> |
| 83 | + <td>Same network · Enable **Wireless Debugging**</td> |
| 84 | + </tr> |
| 85 | + </tbody> |
| 86 | + </table> |
| 87 | + |
| 88 | + <h3>Launch Options</h3> |
| 89 | + <pre><code># Auto-detect — recommended for first use |
| 90 | +android_dex_win.exe |
| 91 | + |
| 92 | +# Force USB connection |
| 93 | +android_dex_win.exe --usb |
| 94 | + |
| 95 | +# Connect to a specific IP address |
| 96 | +android_dex_win.exe 192.168.1.100 |
| 97 | + |
| 98 | +# Connect with explicit port |
| 99 | +android_dex_win.exe 192.168.1.100:5555</code></pre> |
| 100 | + <blockquote> |
| 101 | + <p><strong>Smart Auto-Detection:</strong> With no arguments, the app scans for available devices. One device found → connects automatically. Zero or multiple → the ADB Manager dialog opens to let you choose — no restart needed.</p> |
| 102 | + </blockquote> |
| 103 | + </section> |
| 104 | + |
| 105 | + <section class="doc-section"> |
| 106 | + <h2>The Handshake Protocol</h2> |
| 107 | + <p>A three-layer cryptographic-style handshake ensures all components are ready before the desktop UI unlocks.</p> |
| 108 | + |
| 109 | + <div id="mermaid-protocol" class="mermaid"> |
| 110 | +sequenceDiagram |
| 111 | + participant PC as Windows Side (Flutter/ADB) |
| 112 | + participant JAR as Android Logic Engine (Java JAR) |
| 113 | + participant APK as Android App Hub (Kotlin APK) |
| 114 | + |
| 115 | + Note over PC: 1. ADB Initialization (startAdbBlocking) |
| 116 | + PC->>PC: 2. Local Server Setup (JarServer & ApkServer .start) |
| 117 | + |
| 118 | + Note over PC,JAR: Phase 1: Engine Deployment (Bridge) |
| 119 | + PC->>JAR: Push JAR to Device (via ADB Pipe) |
| 120 | + PC->>JAR: Launch JAR Runtime (adb.startJarRuntime) |
| 121 | + JAR-->>PC: Handshake Response: "jar.hello" (Logic Engine Ready) |
| 122 | + |
| 123 | + Note over PC,APK: Phase 2: Feature Manager Startup (Hub) |
| 124 | + PC->>APK: Check Install & Install if Missing |
| 125 | + PC->>APK: Trigger Service startup (ServerStartService) |
| 126 | + APK-->>PC: WebSocket Handshake: "apk.hello" (App Hub Ready) |
| 127 | + |
| 128 | + PC->>APK: 3. Start Extended Notification & Media Services |
| 129 | + Note over PC,APK: System Synchronized: Desktop UI Unlocked |
| 130 | + </div> |
| 131 | + </section> |
| 132 | + |
| 133 | + <section class="doc-section"> |
| 134 | + <h2>Key Features</h2> |
| 135 | + <table> |
| 136 | + <thead> |
| 137 | + <tr> |
| 138 | + <th>Feature</th> |
| 139 | + <th>Description</th> |
| 140 | + </tr> |
| 141 | + </thead> |
| 142 | + <tbody> |
| 143 | + <tr><td><strong>Multi-Window Apps</strong></td><td>Each Android app runs in its own resizable, movable Windows window</td></tr> |
| 144 | + <tr><td><strong>Live Telemetry</strong></td><td>Real-time Battery, Volume, Wi-Fi, BT, Data & more</td></tr> |
| 145 | + <tr><td><strong>Notifications</strong></td><td>Android notifications pushed instantly to Windows desktop</td></tr> |
| 146 | + <tr><td><strong>Media Control</strong></td><td>Artwork, metadata & playback controls</td></tr> |
| 147 | + <tr><td><strong>Low Latency</strong></td><td>Shell-level commands bypass UI overhead</td></tr> |
| 148 | + <tr><td><strong>Auto-Healing</strong></td><td>Multi-stage recovery restores connection seamlessly</td></tr> |
| 149 | + </tbody> |
| 150 | + </table> |
| 151 | + </section> |
| 152 | + |
| 153 | + <footer class="page-footer"> |
| 154 | + <div></div> <!-- Spacer --> |
| 155 | + <a href="web/architecture.html" class="footer-link"> |
| 156 | + <span>Next Section</span> |
| 157 | + <strong>Architectural Design →</strong> |
| 158 | + </a> |
| 159 | + </footer> |
| 160 | + </main> |
| 161 | + |
| 162 | + <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script> |
| 163 | + <script> |
| 164 | + mermaid.initialize({ startOnLoad: true, theme: 'dark' }); |
| 165 | + </script> |
| 166 | +</body> |
| 167 | +</html> |
0 commit comments