How yihoooong/mimonitor_toolbox works
Mimonitor Toolbox is a desktop control panel for the Redmi G Pro 27U monitor. The principal workflow is user action in a control page, device/display logic, wireless ADB commands, then Android settings or MTK/LED hardware interfaces on the monitor. It also scans for devices, deploys ADB-keepalive support, and provides presets, logs, remote control, and game features. The README documents these capabilities; sampled source confirms representative Python and native macOS paths, so unsampled feature wiring is shown only where documented.
Main entry points: main_window.py Main window · device_features.py Device lifecycle · pages.py Control pages · Views SwiftUI views
Components 23
Desktop interface
- Qt startup
mimonitor_toolbox/app.py - Main window
mimonitor_toolbox/main_window.py - Control pages
mimonitor_toolbox/pages.py - SwiftUI app
macos/Sources/MimonitorToolbox/App.swift - SwiftUI views
macos/Sources/MimonitorToolbox/Views
Device control
- App state
macos/Sources/MimonitorToolbox/AppState.swift - Device lifecycle
mimonitor_toolbox/device_features.py - Display controls
mimonitor_toolbox/display_features.py - Presets
mimonitor_toolbox/presets.py - Virtual remote
mimonitor_toolbox/pages.py
ADB transport
- ADB client
mimonitor_toolbox/adb.py - ADB client
macos/Sources/MimonitorToolbox/Backend/AdbClient.swift
Monitor interfaces
- Monitor Android
- Android settings
- MTK controls
tools/mtk_direct/MtkDirectTool.java - LED controls
tools/colorful_led/ColorfulLedTool.java - ADB guardian
assets/adb_guardian/adbguardian-signed.apk
Supporting features
- Network scan
mimonitor_toolbox/network_scan.py - Windows services
mimonitor_toolbox/windows.py - macOS services
macos/Sources/MimonitorToolbox/Platform - Logs and export
mimonitor_toolbox/main_window.py - Global hotkeys
macos/Sources/MimonitorToolbox/Platform/HotkeyManager.swift
Other components
- Monitor user
Connections 23
- Monitor user → Qt startup: launches
- Qt startup → Main window: creates
- Main window → Control pages: shows
- Control pages → Display controls: invokes controls
- Display controls → Device lifecycle: uses device state
- Device lifecycle → ADB client: issues commands
- ADB client → Monitor Android: connects wirelessly
- Monitor user → SwiftUI app: opens
- SwiftUI app → SwiftUI views: presents
- SwiftUI views → App state: requests changes
- App state → ADB client: runs commands
- ADB client → Monitor Android: connects wirelessly
- Monitor Android → Android settings: reads and writes
- Monitor Android → MTK controls: executes JNI helper
- Monitor Android → LED controls: executes HIDL helper
- Device lifecycle → Network scan: scans devices
- Device lifecycle → ADB guardian: deploys and checks
- Display controls → Presets: applies preset state
- Control pages → Virtual remote: offers remote controls
- Main window → Logs and export: records and exports
- App state → Global hotkeys: registers bindings
- SwiftUI views → macOS services: uses platform features
- Main window → Windows services: uses system services