1. UNIVERSAL SMARTPHONE SETUP GUIDE
PLUG & PLAY ON ANY ANDROID
1
ACTIVATE USB DEBUGGING
Works on Google Pixel, Samsung Galaxy, Xiaomi, OnePlus, Motorola, or any standard Android phone:
- Open Settings > About Phone.
- Tap Build Number 7 times rapidly until you see "You are now a developer!".
- Go to System > Developer Options and switch on USB Debugging.
- Plug into PC with a reliable USB cable. When prompted on phone screen, check "Always allow from this computer" and tap Allow.
2
TETHERING CONFIGURATION
Enable high-speed USB data networking between PC and phone:
- In Developer Options, tap Default USB Configuration and select USB Tethering.
- Or simply turn on USB Tethering in Network & Internet > Hotspot & Tethering.
- The native
usb-tether.exe daemon handles NCM/RNDIS hardware gadget switching automatically when plugged in.
3
1-CLICK PC INSTALLATION
No Python, no compilers, and no Visual Studio needed! Simply copy the folder:
- Copy or download the
Glue/RUST folder to your desktop or laptop.
- Double-click
Install-Glue.bat.
- It auto-detects and auto-downloads Google's official
platform-tools (ADB) if missing.
- Registers Windows Startup hooks and starts the entire suite detached in the background!
# Portable Launch & Stop Commands (In Glue\RUST\)
Install-Glue.bat # Verifies ADB, registers shell:startup, and starts Supervisor + Taskbar Sentinel
Uninstall-Glue.bat # Cleanly terminates all 6 daemons and unregisters startup shortcuts
2. INSIDE THE 6 NATIVE RUST DAEMONS
SUB-500 KB STANDALONE COMPILES
SUPERVISOR
477 KB BINARY
~10 MB RAM
🎛️ DAEMON COMMAND CENTER
The system tray heartbeat and control hub for the entire Glue ecosystem.
- Dynamic Tray Badge: 🟢 Neon Green (5GHz locked + tethered), 🟡 Amber (2.4GHz drift or idle), 🔴 Red (phone disconnected).
- Asynchronous Watchdog: 3-second background polling cycle that auto-revives any crashed enabled daemon without freezing the UI.
- Interactive Acrylic HUD: Left-click popup tray HUD displaying live phone battery (+/- mA charge rate), tether link speed, and independent daemon toggles.
- Slide-Out Tuning Drawer: Real-time haptic tuning window with 40 FPS audio/PWM visualizers, interactive sliders, and preset audio profiles.
TASKBAR WIDGET
364 KB BINARY
~18 MB RAM
🛡️ TASKBAR SENTINEL
Native Win32 HUD pill docked directly at the bottom-left of the Windows 11 taskbar (X=4, Y=1036, W=340, H=40).
- Flyout Absorber: Intercepts mouse clicks to permanently block MSN Weather and news popups from stealing focus.
- 5 Live Metrics: Real-time CPU %, RAM %, Disk I/O MB/s, Total System Power in Watts (NVML GPU + Ryzen power model + 80+ Gold PSU efficiency), and monthly electric cost ($/mo).
- Custom Right-Click Menu: Custom native Rust context menu replaces Windows default popups, allowing live $/kWh electric rate adjustments.
- Left-Click Action: Instantly launches Windows Task Manager (
taskmgr.exe).
DSP ENGINE
460 KB BINARY
~11 MB RAM
🔊 AUDIOTOMARTPHONEHAPTICS
Real-time system audio loopback capture engine synthesizing haptic waves directly onto Android smartphones.
- Direct WASAPI Loopback: Uses
cpal to capture native Windows audio endpoint streams at 48,000 Hz Float32 with 0ms latency.
- 3-Band Butterworth Filterbank: Pure Rust Direct Form II Transposed biquad filters separating Sub-Bass (30-90Hz), Mid-Punch (90-220Hz), and Snap (220-1200Hz) with zero memory allocations.
- Dual-EMA AGC: Fast EMA (α = 0.30) and Slow EMA (α = 0.008) tracking with adaptive dynamic headroom.
- Smooth PWM Envelope: Fast attack (~25ms) and musical release (~85ms) continuous curve tracking layered with cosine hit transients.
- Persistent ADB Pipeline: Streams synchronized
cmd vibrator_manager synced waveforms directly to the phone's LRA actuator.
NETWORKING
355 KB BINARY
~6 MB RAM
📶 WI-FI 5GHZ SENTINEL
Continuous wireless watchdog ensuring high-bandwidth low-latency tethering performance.
- ADB Telemetry Probe: Periodically queries phone Wi-Fi link speed, frequency (MHz), SSID, and BSSID via
cmd wifi status.
- 2.4 GHz Drift Auto-Nudge: When the phone drifts onto congested 2.4 GHz bands, it automatically cycles the Wi-Fi interface (
svc wifi disable; sleep 1; svc wifi enable).
- Anti-Flapping Cooldown: Imposes a 45-second cooldown after recovery to prevent network oscillation.
CONNECTIVITY
380 KB BINARY
~7 MB RAM
🦀 USB TETHERING DAEMON
Bulletproof hardware detection and automatic NCM/RNDIS networking bridge.
- Multi-Tier Activation: Tier 1 kernel gadget switch (
setprop sys.usb.config ncm,adb), Tier 2 UI automation fallback, Tier 3 Android connectivity service commands.
- Win32 IP Helper Monitoring: Uses
GetAdaptersAddresses to track network interface link status, link speed in Mbps, and IPv4 leases.
- Socket Probe Watchdog: Non-blocking DNS socket ping (
1.1.1.1:53) detects silent stalls and triggers instant tether renegotiation.
POWER CONSERVATION
386 KB BINARY
~4.8 MB RAM
🔋 PHONE ENERGY DAEMON
Enforces the Eco-Tether power profile over ADB to eliminate device thermal throttling and preserve battery longevity.
- Low-Power Display Clamp: Clamps display sleep to 15s, forces 60 Hz peak refresh rate, dims screen to minimum, and forces Battery Saver ON.
- Zero Battery Burn: Keeps the phone cool to the touch even during heavy multi-gigabit downloads and prolonged gaming sessions.
- State Auto-Restoration: Automatically restores original user brightness, timeout, and refresh rates upon disconnect or exit.
3. THE BEFORE & AFTER: PYTHON TO RUST
OVER 88% SYSTEM RAM REDUCTION
WHY THE REWRITE HAPPENED
The original Glue suite was cobbled together using Python (with NumPy, SciPy, PyAudioWPatch, PyStray, Tkinter) and PowerShell scripts.
While it functioned, it required massive multi-hundred megabyte Python runtimes, suffered from Garbage Collection (GC) latency spikes during gaming,
consumed over 400 MB of system RAM, and required tricky virtual environment management on new machines.
By porting every single utility to 100% native Win32 Rust (compiled via MinGW with LTO and size optimization),
the entire ecosystem became completely portable, zero-dependency, and virtually imperceptible to the host operating system.
| COMPONENT / SERVICE |
LEGACY PYTHON / PS STACK |
NATIVE RUST COMPILED |
SAVINGS & IMPACT |
| Audio to Haptics Engine |
~102 MB RAM (PyAudio + SciPy) |
~11.4 MB RAM (Rust WASAPI) |
-89% RAM, 0ms GC pauses |
| Supervisor & System Tray HUD |
~40 MB RAM (Tkinter + PyStray) |
~10.1 MB RAM (Native Win32 GDI) |
-75% RAM, zero window lag |
| Taskbar Sentinel & Watts Widget |
~200 MB RAM (MSN WebView2) |
~18.5 MB RAM (Win32 Acrylic Pill) |
-91% RAM, popups blocked |
| Wi-Fi 5GHz Sentinel |
~65 MB RAM (PowerShell 5.1) |
~6.1 MB RAM (Native Rust) |
-91% RAM, no console flicker |
| USB Tethering Daemon |
~14 MB RAM (Python 3.11) |
~7.2 MB RAM (Native Rust) |
-49% RAM, IP Helper APIs |
| Phone Energy Daemon |
~12 MB RAM (Python 3.11) |
~4.8 MB RAM (Native Rust) |
-60% RAM, instant event exit |
| TOTAL COMBINED SUITE |
~433 MB RAM + Python Env |
~58 MB RAM Total |
OVER 88% CRUNCH! |
💥 ACTION PANEL: RAM CRUNCH PLAYROOM
Click inside the panel below to trigger retro comic action sound stamps!