AndroidCore State Store
Centralized, static state store holding a live mirror of the Android device's system status via JSON telemetry.
Real-Time State Mapping
AndroidCore consists of reactive ValueNotifier fields that direct UI updates when telemetry changes.
| Domain | Field Name | Description |
|---|---|---|
| Battery | batteryPercentage | Current level (0–100) |
| Volume | volumeMusic | Current music/media volume |
| Wi-Fi | wifiName | Connected SSID |
| Bluetooth | bluetoothName | Connected device name |
| System | torch | Flashlight state |
JSON Telemetry Protocol
All data is sent over encrypted TCP or WebSocket channels from the Android components back to the Windows PC. updateFromMessage() routes each packet to the correct handler.
Example: Battery Update
{
"type": "battery_update",
"battery": {
"percentage": 87,
"charging": true,
"voltage": 4.2,
"temperature": 29.5,
"health": "Good",
"plug_type": "USB"
}
}
Example: Device Flags
{
"type": "battery_small",
"states": {
"wifi": true,
"bluetooth": false,
"airplane_mode": false,
"wifi_name": "HomeNetwork",
"rotation_lock": false
}
}
Permissions Context
The system tracks permission states such as NotificationlistenerAccess and AccessibilityServicePermission. The UI shows a warning banner if core permissions are revoked during a session.