testsAndMisc/docs/superpowers/contracts/phone-focus-mode-fresh-install-2026-05-31.json
Krzysztof kuhy Rudnicki dcbfbc3ca4 feat(phone): automate BL-9000 fresh-phone recovery after factory reset
- batch3_bloatware_uninstall.sh: rewrite with 42 confirmed BL-9000 packages
  (39 Blackview OEM + Chrome, YouTube, YouTube Music); batch removal without
  reboots; --list dry-run; ADB_SERIAL/PHONE_IP support
- deploy.sh: ensure_magisk_hosts_module() auto-creates Magisk Systemless Hosts
  module dir+module.prop and reboots if absent/disabled — no manual Magisk UI
  interaction required
- deploy.sh: fetch_home_coords_from_phone() enables location and captures GPS
  fix; falls back to stub coords with clear next-step instruction on failure
- deploy.sh: --capture-coords action for post-WiFi GPS capture + daemon restart
- config.sh: add com.kuhy.workout_app and com.shazam.android to WHITELIST
- hosts scripts: broaden Facebook/Messenger unblocking to all subdomains
  (fbcdn.net, facebook.net, m.facebook.com)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 16:22:49 +02:00

18 lines
1.4 KiB
JSON

{
"title": "BL-9000 fresh-phone recovery automation",
"objective": "After a factory reset, deploy.sh runs end-to-end without any manual Magisk UI or coordinate-entry steps: it auto-installs the Magisk Systemless Hosts module (rebooting if needed), captures home GPS coordinates automatically, and deploys all focus mode daemons and hosts blocking. A separate --capture-coords action handles the case where GPS is unavailable at deploy time.",
"acceptance_criteria": [
"deploy.sh detects missing Magisk Hosts module, creates it, reboots, and continues without user intervention",
"deploy.sh captures current GPS as home coords when config_secrets.sh has placeholder values",
"On GPS failure, deploy completes with stub coords and prints exact --capture-coords command",
"--capture-coords updates phone config_secrets.sh and restarts daemon in one command",
"batch3_bloatware_uninstall.sh removes all 42 BL-9000 bloatware packages with 0 errors",
"com.kuhy.workout_app and com.shazam.android are never disabled by focus mode"
],
"out_of_scope": [
"Wireless ADB auto-reconnect after reboot (USB reconnect is handled; wireless requires manual re-pairing)",
"Launcher enforcement setup (still requires manual Minimalist Phone install + --snapshot-launcher)"
],
"verifier": "ADB_SERIAL=BL9000EEA0000102 ./deploy.sh && ./deploy.sh --capture-coords && ./deploy.sh --status (Distance: 0m, No apps disabled)"
}