Add Windows-only garage capture via MITM proxy and ADB automation

This commit is contained in:
Jan-Peter von Hunnius 2026-08-22 10:23:56 +02:00
parent 7ac889cbff
commit b85672559b
6 changed files with 1962 additions and 7 deletions

29
capture.toml.example Normal file
View file

@ -0,0 +1,29 @@
# Example configuration for `cargo run --bin capture`.
# Copy to capture.toml and adjust to your machine; capture.toml is gitignored.
#
# The capture binary is Windows-only (BlueStacks + adb interception); on Unix
# hosts it builds as a stub that exits with an error message.
[device]
# BlueStacks ADB endpoint (BlueStacks Settings -> Advanced -> Android Debug Bridge)
serial = "127.0.0.1:5555"
# How long to wait for the emulator to come online before giving up
wait_secs = 180
[paths]
# Path to adb.exe (empty = auto-detect from LOCALAPPDATA, then PATH)
adb = 'C:\Users\<you>\AppData\Local\Android\Sdk\platform-tools\adb.exe'
# Path to the BlueStacks player, started automatically if the device is offline
bluestacks = 'C:\Program Files\BlueStacks_nxt\HD-Player.exe'
# Where the captured garage document is written
output = 'my_cars.json'
[proxy]
# Local port for the MITM proxy (must be free; close HTTP Toolkit first)
port = 8080
[capture]
# How long to wait for the game to boot and issue the sync request
timeout_secs = 300
# Per-request timeout when re-issuing the stored sync request (`capture replay`)
replay_timeout_secs = 30