1. scriptEnv() now passes all 13 env vars required by iptables.sh:
APP_MODE, APP_UIDS, BYPASS_UIDS, API_PORT, ROUTE_TABLE,
ROUTE_TABLE_V6, DNS_MODE, PROXY_MODE (plus existing 5)
2. Validate() accepts "whitelist"/"blacklist" app modes
DefaultConfig() now defaults to "whitelist" mode
3. New ResolvePackageUIDs() resolves Android package names to
Linux UIDs via /data/system/packages.list with multi-user support
4. Sync Go struct json tags with config.json keys:
- apps.list (was packages), dns.proxy_dns (was remote_doh),
- ipv6.mode string (was enable bool), health.threshold,
- rescue.max_attempts (was max_failures), etc.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>