mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-19 00:14:22 +01:00
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
|
||
|---|---|---|
| .. | ||
| lib | ||
| llm-notes | ||
| 96-restore-pkg-wrappers.hook | ||
| install_makepkg_wrapper.sh | ||
| install_pacman_wrapper.sh | ||
| makepkg_capped.sh | ||
| makepkg_wrapper.sh | ||
| mkpkg.sh | ||
| pacman_blocked_keywords.txt | ||
| pacman_greylist.txt | ||
| pacman_lock_lib.sh | ||
| pacman_whitelist.txt | ||
| pacman_wrapper.sh | ||
| pw_challenge.sh | ||
| pw_cleanup.sh | ||
| pw_guard.sh | ||
| pw_policy.sh | ||
| pw_ui.sh | ||
| README_FOR_LLM.md | ||
| rewrap_pkg_managers.sh | ||
| words.txt | ||