MITM capture setup

Capture Hubspace HTTPS traffic (the same endpoints aioafero uses) with mitmweb in WireGuard mode, a rooted Android emulator, and adb from WSL. Based on Hubspace-Homeassistant #198; works around Android API 35 cert pinning.

mitmweb and scripts/adb.sh run in WSL (Windows adb.exe under the hood). The emulator runs on Windows — WSL — adb to the Windows emulator.

Page

When to use it

First-time install

One-time setup — WSL Docker + openssl; Windows SDK (adb) + emulator; sideload WireGuard and Hubspace

Daily use

Session workflow — WSL mitmweb + adb.sh; Windows emulator boot