v0.1.1: external modules, publish YAML, proxy reset, binary-first README
- Host discovers/builds modules under modules/ (bbc, rte, tg4) - module-publish.yaml tracked; local module.yaml gitignored - drm --modules-dir / DRM_MODULES_DIR - drm proxy reset; Magisk reinject reliability - modules-v* Forgejo release workflow + build scripts - BBC full Explore channel map including S4C - README quickstart based on release binaries
This commit is contained in:
parent
1d36961a7c
commit
f9c28be3f1
52 changed files with 2915 additions and 636 deletions
|
|
@ -51,6 +51,8 @@ func Run(args []string) error {
|
|||
clearProxyCmd(rest)
|
||||
case "transparent", "tproxy":
|
||||
transparentCmd(rest)
|
||||
case "reset":
|
||||
return resetCmd(rest)
|
||||
case "help", "-h", "--help":
|
||||
Usage()
|
||||
default:
|
||||
|
|
@ -82,12 +84,32 @@ Usage:
|
|||
proxyctl transparent --package PKG [--serial S] [--out DIR] [--reinject]
|
||||
iptables REDIRECT capture (UK VPN OK; no Wi‑Fi proxy)
|
||||
writes /data/local/tmp/capture/<pkg>/ ; adb-pulled to --out
|
||||
proxyctl reset [--serial S] [--keep-captures]
|
||||
stop MITM + delete pushed CA/binaries/scripts on device
|
||||
|
||||
Artifacts land under outputs/discover/<timestamp>/ by default.
|
||||
Transparent captures pull into outputs/transparent/<stamp>/ by default.
|
||||
`)
|
||||
}
|
||||
|
||||
func resetCmd(args []string) error {
|
||||
fs := flag.NewFlagSet("reset", flag.ContinueOnError)
|
||||
serial := fs.String("serial", "", "adb device serial")
|
||||
keep := fs.Bool("keep-captures", false, "leave /data/local/tmp/capture/")
|
||||
yes := fs.Bool("yes", true, "confirm reset (default true)")
|
||||
if err := fs.Parse(args); err != nil {
|
||||
return err
|
||||
}
|
||||
if !*yes {
|
||||
return fmt.Errorf("reset cancelled")
|
||||
}
|
||||
c := adb.New()
|
||||
if *serial != "" {
|
||||
c = c.WithSerial(*serial)
|
||||
}
|
||||
return proxy.ResetDevice(c, proxy.ResetOptions{KeepCaptures: *keep})
|
||||
}
|
||||
|
||||
func clientFrom(fs *flag.FlagSet, args []string) *adb.Client {
|
||||
serial := fs.String("serial", "", "adb device serial")
|
||||
_ = fs.Parse(args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue