mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 11:43:10 +02:00
Demo mode: one-tap Start/Stop demo curfew via the companion notification (CurfewDemoReceiver) and curfew-demo-on/off CLI, driving the curfew_force_on file so the full stack can be exercised any time with a guaranteed off switch. Net stopgap: Android netd reasserts the whole filter table ~1-4x/5s, wiping the custom FOCUS_CURFEW_NET chain; un-waited iptables calls also lost the xtables lock race and left partial chains. Add an iptw -w lock-wait helper, a cached UID list, and a 1s watchdog that re-pins the chain when netd flushes it, plus heartbeat/rebuild logging. Proper netd/eBPF firewall tracked as follow-up. Verified live on the BL9000 (Android 13): demo on/off engages and fully restores all layers; chain now full (24 rules) and near-continuous (~98% steady state) vs intermittent before. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| java/com/kuhy/focusstatus | ||
| AndroidManifest.xml | ||
| build.sh | ||