testsAndMisc/linux_configuration/scripts/single_use/utils/lib
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
..
tests Revert the deliberate gate-probe break 2026-08-23 15:08:46 +02:00
analyze_repo_report.sh Fix two runtime defects the analyze_repo.sh split introduced 2026-08-16 22:02:17 +02:00
analyze_repo_scan.sh Split analyze_repo.sh into an entry script and five libs 2026-08-16 21:47:03 +02:00
analyze_repo_separate.sh Fix two runtime defects the analyze_repo.sh split introduced 2026-08-16 22:02:17 +02:00
analyze_repo_symbols.sh Split analyze_repo.sh into an entry script and five libs 2026-08-16 21:47:03 +02:00
analyze_repo_tools.sh Split analyze_repo.sh into an entry script and five libs 2026-08-16 21:47:03 +02:00
android_commands.sh Split update_android_hosts.sh; extract its blocklist as data 2026-08-16 21:23:39 +02:00
android_device.sh Split update_android_hosts.sh; extract its blocklist as data 2026-08-16 21:23:39 +02:00
android_module.sh Extract android_guardian; heavy_job_lock goes to its installer 2026-08-23 18:00:58 +02:00
bl9000_backup.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
bl9000_deps.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
bl9000_device.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
bl9000_magisk.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
bl9000_mtkclient.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
bl9000_usage.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
docs_all.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
docs_cpp.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
docs_js.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
docs_python_keywords.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
docs_python.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
docs_rust.sh Split three more linux_configuration giants 2026-08-16 19:43:55 +02:00
download_classify.sh Split three large linux_configuration scripts, defer a fourth 2026-08-16 19:06:16 +02:00
download_media.sh Split three large linux_configuration scripts, defer a fourth 2026-08-16 19:06:16 +02:00
download_sizes.sh Split three large linux_configuration scripts, defer a fourth 2026-08-16 19:06:16 +02:00
exercism_config.sh Split seven more linux_configuration scripts 2026-08-16 18:56:05 +02:00
idle_inhibit.sh Split three near-miss linux_configuration scripts 2026-08-16 18:38:43 +02:00
offline_cpp.sh Split offline docs and arch optimiser; defer libre_translate 2026-08-16 20:09:54 +02:00
offline_index.sh Split offline docs and arch optimiser; defer libre_translate 2026-08-16 20:09:54 +02:00
offline_js.sh Split offline docs and arch optimiser; defer libre_translate 2026-08-16 20:09:54 +02:00
offline_python.sh Split offline docs and arch optimiser; defer libre_translate 2026-08-16 20:09:54 +02:00
offline_rust.sh Split offline docs and arch optimiser; defer libre_translate 2026-08-16 20:09:54 +02:00
offline_status.sh Split offline docs and arch optimiser; defer libre_translate 2026-08-16 20:09:54 +02:00
passwordless_config.sh fixes/utils: split nvidia_troubleshoot 336 -> 169+181, passwordless 374 -> 195+193 2026-08-17 14:18:06 +02:00
repo_study_steps.sh Split five more linux_configuration single_use scripts 2026-08-16 18:51:28 +02:00
sd_card_ops.sh Split seven more linux_configuration scripts 2026-08-16 18:56:05 +02:00
steam_api.sh steam_compatibility: split 663 -> 140 + 199 + 156 + 124 + 103 2026-08-17 14:32:41 +02:00
steam_credentials.sh steam_compatibility: split 663 -> 140 + 199 + 156 + 124 + 103 2026-08-17 14:32:41 +02:00
steam_report.sh steam_compatibility: split 663 -> 140 + 199 + 156 + 124 + 103 2026-08-17 14:32:41 +02:00
steam_requirements.sh steam_compatibility: split 663 -> 140 + 199 + 156 + 124 + 103 2026-08-17 14:32:41 +02:00
study_doc_lookup.sh generate_study_materials: split into lib/ under the 250-line cap 2026-08-21 14:32:08 +02:00
study_doc_urls_more.sh generate_study_materials: split into lib/ under the 250-line cap 2026-08-21 14:32:08 +02:00
study_doc_urls.sh generate_study_materials: split into lib/ under the 250-line cap 2026-08-21 14:32:08 +02:00
study_gen_anki.sh generate_study_materials: split into lib/ under the 250-line cap 2026-08-21 14:32:08 +02:00
study_gen_docs.sh generate_study_materials: split into lib/ under the 250-line cap 2026-08-21 14:32:08 +02:00
study_gen_llm.sh generate_study_materials: split into lib/ under the 250-line cap 2026-08-21 14:32:08 +02:00