Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s

- Rename product/host binary to streamd (drm compat copy still shipped)
- Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent
- Panel Modules store + agent pull sync (modstore / modsync)
- Rolling stable + beta download tags; README/docs channel curl blocks
- Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
404errordeveloper 2026-10-10 15:58:26 +02:00
parent 066e018749
commit da8e1123ec
140 changed files with 2949 additions and 851 deletions

View file

@ -1,6 +1,6 @@
# Using the capture binary
`drm capture` runs an HTTPS MITM **on the phone**, drives the app, and records the
`streamd capture` runs an HTTPS MITM **on the phone**, drives the app, and records the
DRM exchange. It is both the production capture path and the tool you use to
discover everything a new module needs.
@ -8,8 +8,8 @@ discover everything a new module needs.
```bash
adb devices # phone listed and authorised
./bin/drm proxy build # cross-compile the on-device MITM (linux/arm64)
./bin/drm proxy install-ca --reinject
./bin/streamd proxy build # cross-compile the on-device MITM (linux/arm64)
./bin/streamd proxy install-ca --reinject
```
The phone must be rooted (Magisk). On first `install-ca`, the host **generates a
@ -31,7 +31,7 @@ If an app still reports `tls: unknown certificate`, re-run the reinject and
force-stop the app so it inherits the mount:
```bash
./bin/drm proxy install-ca --reinject
./bin/streamd proxy install-ca --reinject
adb shell am force-stop <package>
```
@ -60,7 +60,7 @@ Nothing sets the global HTTP proxy.
| Wi‑Fi `http_proxy` → appproxy | Often breaks / fights VPN | Yes |
| `tcpdump` / pcap on `tun0` only | Yes | No (TLS ciphertext) |
| **Transparent appproxy** | Yes | Yes |
| `drm capture --app …` for BBC | Yes (uses transparent under the hood) | Yes |
| `streamd capture --app …` for BBC | Yes (uses transparent under the hood) | Yes |
Install the binary on the phone, play while it records to
`/data/local/tmp/capture/<package>/`, then pull. Ctrl+C on the host stops
@ -72,17 +72,17 @@ iptables and pulls into `outputs/transparent/<stamp>/`.
# 1. NordVPN (or other VPN) ON on the phone — UK egress for BBC
# 2. CA once (or after reboot if the conscrypt mount dropped)
.\bin\drm.exe proxy install-ca --reinject
.\bin\streamd.exe proxy install-ca --reinject
adb shell am force-stop <package> # e.g. bbc.iplayer.android
# 3. Start transparent MITM (VPN stays on)
.\bin\drm.exe proxy transparent --package <package>
.\bin\streamd.exe proxy transparent --package <package>
# 4. Open the app and play on the phone
# 5. Ctrl+C when done → stops iptables + pulls captures
```
On Linux/macOS the same commands use `./bin/drm` instead of `.\bin\drm.exe`.
On Linux/macOS the same commands use `./bin/streamd` instead of `.\bin\streamd.exe`.
### On-device artifacts
@ -104,11 +104,11 @@ adb pull /data/local/tmp/capture/bbc.iplayer.android .\bbc-cap
A leftover REDIRECT breaks playback even after the host command exits. Clear it:
```powershell
.\bin\drm.exe proxy stop
.\bin\streamd.exe proxy stop
adb shell "su -c 'sh /data/local/tmp/tproxy_iptables.sh stop; killall -9 appproxy 2>/dev/null; true'"
```
Do not leave a hung `drm capture` or `proxy transparent` in another terminal —
Do not leave a hung `streamd capture` or `proxy transparent` in another terminal —
it will reinstall the redirect and break the app.
### CA cert/key mismatch
@ -135,7 +135,7 @@ the app so the trusted CA hash still matches the cert appproxy signs with.
### Passive — no module needed
```bash
./bin/drm capture --wait 300
./bin/streamd capture --wait 300
```
Starts the MITM and nothing else. You open any app and play something; it records
@ -145,7 +145,7 @@ whatever license, PSSH and manifest traffic appears and writes
### Launch only
```bash
./bin/drm capture --app myapp --wvd data/device.wvd
./bin/streamd capture --app myapp --wvd data/device.wvd
```
Launches the app, then waits while you navigate by hand. Useful while you are still
@ -154,7 +154,7 @@ working out the UI sequence.
### Full automation
```bash
./bin/drm capture --app myapp --channel main --auto-play --wvd data/device.wvd
./bin/streamd capture --app myapp --channel main --auto-play --wvd data/device.wvd
```
Runs the module's `Launch` and `AutoPlay`, then waits for the required fields.
@ -224,7 +224,7 @@ Live log while a capture runs: `.cache/appproxy-<serial>.log`.
### 1. Record everything
```bash
./bin/drm proxy discover --install-ca --reinject
./bin/streamd proxy discover --install-ca --reinject
# play the app on the phone; Ctrl+C when done
```
@ -324,8 +324,8 @@ independent paths agreeing on the PSSH and key set is strong evidence both are
right:
```bash
./bin/drm catalog --app myapp --channel main --keys --wvd data/device.wvd --json > a.json
./bin/drm capture --app myapp --channel main --auto-play --wvd data/device.wvd
./bin/streamd catalog --app myapp --channel main --keys --wvd data/device.wvd --json > a.json
./bin/streamd capture --app myapp --channel main --auto-play --wvd data/device.wvd
diff <(jq -r '.keys[]' a.json | sort) <(sort outputs/myapp/latest/key.txt)
```
@ -356,7 +356,7 @@ Also sanity-check that the KID you captured matches whatever you recorded in
Clear the phone's proxy / transparent redirect if a run is interrupted:
```bash
./bin/drm proxy stop
./bin/drm proxy clear-proxy
./bin/streamd proxy stop
./bin/streamd proxy clear-proxy
adb shell "su -c 'sh /data/local/tmp/tproxy_iptables.sh stop; killall -9 appproxy 2>/dev/null; true'"
```