mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-22 08:02:17 +01:00
Twelve prose violations to zero. Eight files split into per-topic subdirectories with the original left as an index; both SKILL.md files keep their frontmatter so discovery still works, with detail moved to references/. Deleted docs/cleanup-2026-05/ (7 files) and linux_configuration/docs/ VERIFICATION.md on the user's ruling: unreferenced records of finished work whose rules are now enforced by the polling, shellcheck and shfmt hooks. PACMAN_WRAPPER_SECURITY.md was split instead - unlike those, it documents live guarantees. Every split verified by a sorted diff against HEAD: zero content lines lost, only the new headings and index links added. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2.1 KiB
2.1 KiB
post_title: "Phone focus recovery design"
author1: "GitHub Copilot"
post_slug: "phone-focus-recovery-design"
microsoft_alias: "copilot"
featured_image: ""
categories:
- "Documentation"
tags:
- "android"
- "adb"
- "backup"
- "shell"
ai_note: "AI-assisted design document"
summary: "Design for a rooted-Android recovery, backup, monitoring, and one-command orchestration workflow built on phone_focus_mode."
post_date: "2026-05-01"
Goal
Create a repeatable rooted-Android management workflow that can:
- restore a freshly formatted phone to the previously hardened state
- back up important phone state whenever the phone appears on this PC
- monitor security and device-health drift over time
- expose one highly visible entrypoint at
scripts/run_all/run_phone.sh
The design must build on the existing phone_focus_mode/ deployment system
instead of replacing it with a second parallel toolchain.
Existing foundation
The existing phone_focus_mode/ implementation already provides the core
security stack:
deploy.shdeploys the focus scripts and companion app over ADBfocus_daemon.shenforces location-based focus restrictionshosts_enforcer.shprotects/system/etc/hostsdns_enforcer.shforces DNS behavior that respects the hosts filelauncher_enforcer.shkeeps the approved launcher installed and pinnedmagisk_service.shrestores the protections automatically on boot
The new workflow should reuse these assets rather than re-implement them.
Split into one file per area to stay under the 250-line cap.