fixed issues with CA now generates its own new cert
All checks were successful
release / build-and-upload (push) Successful in 16m53s

This commit is contained in:
404errordeveloper 2026-10-08 20:16:08 +02:00
parent a930a697fa
commit c1948a1439
11 changed files with 458 additions and 34 deletions

View file

@ -12,22 +12,26 @@ adb devices # phone listed and authorised
./bin/drm proxy install-ca --reinject
```
The phone must be rooted (Magisk). `install-ca` pushes the MITM CA and bind-mounts
it over the system trust store, including into already-running zygote namespaces —
a user-store CA is not enough, modern apps ignore it.
The phone must be rooted (Magisk). On first `install-ca`, the host **generates a
unique MITM CA** for this install under `data/proxy-ca.crt` + `data/proxy-ca.key`
(gitignored). That pair is what gets pushed to the phone — each user/machine gets
their own CA, not a shared key from the zip.
Verify the mount:
`install-ca --reinject` Magisk-bind-mounts **your** CA into the system trust store
(including zygote). A user-store CA is not enough; modern apps ignore it.
Verify the mount (hash is printed by `install-ca`, not a fixed value):
```bash
adb shell 'ls /system/etc/security/cacerts/ | grep 6c3578b4'
adb shell 'su -c "ls /apex/com.android.conscrypt/cacerts/6c3578b4.0"'
# hash from: [+] … (hash abcdef01)
adb shell 'su -c "ls /apex/com.android.conscrypt/cacerts/<hash>.0"'
```
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 reinject-ca
./bin/drm proxy install-ca --reinject
adb shell am force-stop <package>
```
@ -334,7 +338,7 @@ Also sanity-check that the KID you captured matches whatever you recorded in
|---|---|
| `tls: unknown certificate` in the app | CA not mounted into conscrypt; reinject, then force-stop the app |
| `timed out waiting for capture ([auth pid pssh mpd])` | playback never started, or `Hints` asks for a field this app does not send |
| `appproxy failed to start (transparent)` | see log; often CA key mismatch (`appproxy-ca.key` ≠ cert) — copy matching `rteproxy-ca.key` |
| `appproxy failed to start (transparent)` | CA cert/key mismatch on phone — `install-ca` must push **both** `rteproxy-ca.crt` and `rteproxy-ca.key`, then `--reinject`. Check `adb shell cat …/appproxy.log` for `private key does not match` |
| App loads catalog but stream spins / fails after a capture | leftover `APPROXY_TPROXY` iptables REDIRECT — run cleanup above |
| `launch: ui node not found within Ns` | launch marker does not match — dump the tree and pick a resource id |
| `launch: exit status 1` | monkey raced a force-stop; usually transient, retry |
@ -343,6 +347,11 @@ Also sanity-check that the KID you captured matches whatever you recorded in
| `CA inject skipped/failed` | transient after repeated runs; re-run `proxy reinject-ca` |
| Screen asleep mid-run | `adb shell svc power stayon true` |
| VPN on + classic `http_proxy` capture | use transparent mode instead (see above) |
| Log shows `Setting HTTP proxy -> 192.168…` for BBC | wrong args / passive mode — use `--app bbc --channel bbcone` (ASCII `--`, not a Word em-dash `—`) |
| `"bbcone" is a channel of --app bbc` | you passed a channel as `--app`; fix the flags |
| `unexpected arguments […]` | only flags are accepted; no bare words after the command |
| `launch:` / `auto-play:` aborts the run | fail-fast — fix the phone UI / channel, or omit `--auto-play` and navigate by hand |
Clear the phone's proxy / transparent redirect if a run is interrupted: