testsAndMisc/linux_configuration/scripts/periodic_background/digital_wellbeing/pacman
Krzysztof kuhy Rudnicki fe8629e104 Extract android_guardian; heavy_job_lock goes to its installer
github.com/kuhyx/android-guardian, cloned to ~/android-guardian

periodic_background/utils/ held two unrelated things: the Magisk module
and heavy_job_lock.sh. Only the module was a unit, so the directory is
split rather than moved.

heavy_job_lock.sh goes to digital_wellbeing/, NOT to ~/utils. Measured
rather than assumed: of its consumers only install_pacman_wrapper.sh
reads the repo copy, while pacman_wrapper.sh, makepkg_capped.sh and
meta/scripts/run_with_heavy_lock.sh all read the installed
/usr/local/bin copy. A library belongs with whoever installs it, and
exporting it would have added a cross-repo edge for one caller.

Fixed a bug that predates the extraction: update_android_hosts.sh set
GUARDIAN_MODULE_DIR to "$SCRIPT_DIR/android_guardian", a sibling that
never existed at that path -- packaging could not have worked from this
checkout at all. It now reads ${ANDROID_GUARDIAN_DIR:-~/android-guardian}
and require_guardian_module() gates build_module(), the single funnel
every packaging path goes through, so a missing checkout names the clone
command instead of failing inside a cp four helpers deep.

Verified both directions: with no checkout the guard fires with
instructions; with one, the module builds -- 182331 blocked domains, a
1.1 MB zip. The subsequent adb push failed on device-side storage, which
this commit does not touch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
2026-08-23 18:00:58 +02:00
..
lib pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
llm-notes Bring every markdown file under the cap 2026-08-16 19:25:59 +02:00
96-restore-pkg-wrappers.hook fix(pacman): wrap makepkg so an orphaned db.lck can't hang makepkg -i 2026-07-17 07:46:31 +02:00
install_makepkg_wrapper.sh Diagnose the pacman first-hook stall; fix the drift that hid a stale wrapper 2026-08-03 15:15:34 +02:00
install_pacman_wrapper.sh Extract android_guardian; heavy_job_lock goes to its installer 2026-08-23 18:00:58 +02:00
makepkg_capped.sh Diagnose the pacman first-hook stall; fix the drift that hid a stale wrapper 2026-08-03 15:15:34 +02:00
makepkg_wrapper.sh fix(pacman): wrap makepkg so an orphaned db.lck can't hang makepkg -i 2026-07-17 07:46:31 +02:00
mkpkg.sh refactor(linux_configuration/scripts): split all scripts into single_use/ and periodic_background/ 2026-05-15 00:32:35 +02:00
pacman_blocked_keywords.txt refactor(linux_configuration/scripts): split all scripts into single_use/ and periodic_background/ 2026-05-15 00:32:35 +02:00
pacman_greylist.txt refactor(linux_configuration/scripts): split all scripts into single_use/ and periodic_background/ 2026-05-15 00:32:35 +02:00
pacman_lock_lib.sh fix(pacman): wrap makepkg so an orphaned db.lck can't hang makepkg -i 2026-07-17 07:46:31 +02:00
pacman_whitelist.txt Fix pacman whitelist matching for yay's -U package-file installs 2026-08-12 22:43:30 +02:00
pacman_wrapper.sh pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
pw_challenge.sh pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
pw_cleanup.sh pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
pw_guard.sh pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
pw_policy.sh pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
pw_ui.sh pacman_wrapper: split into flat libs under the 250-line cap 2026-08-21 16:19:26 +02:00
README_FOR_LLM.md Apply prettier to two split prose files 2026-08-16 19:31:54 +02:00
rewrap_pkg_managers.sh fix(pacman): wrap makepkg so an orphaned db.lck can't hang makepkg -i 2026-07-17 07:46:31 +02:00
words.txt refactor(linux_configuration/scripts): split all scripts into single_use/ and periodic_background/ 2026-05-15 00:32:35 +02:00