mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 08:10:59 +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
|
||
|---|---|---|
| .. | ||
| tests | ||
| analyze_repo_report.sh | ||
| analyze_repo_scan.sh | ||
| analyze_repo_separate.sh | ||
| analyze_repo_symbols.sh | ||
| analyze_repo_tools.sh | ||
| android_commands.sh | ||
| android_device.sh | ||
| android_module.sh | ||
| bl9000_backup.sh | ||
| bl9000_deps.sh | ||
| bl9000_device.sh | ||
| bl9000_magisk.sh | ||
| bl9000_mtkclient.sh | ||
| bl9000_usage.sh | ||
| docs_all.sh | ||
| docs_cpp.sh | ||
| docs_js.sh | ||
| docs_python_keywords.sh | ||
| docs_python.sh | ||
| docs_rust.sh | ||
| download_classify.sh | ||
| download_media.sh | ||
| download_sizes.sh | ||
| exercism_config.sh | ||
| idle_inhibit.sh | ||
| offline_cpp.sh | ||
| offline_index.sh | ||
| offline_js.sh | ||
| offline_python.sh | ||
| offline_rust.sh | ||
| offline_status.sh | ||
| passwordless_config.sh | ||
| repo_study_steps.sh | ||
| sd_card_ops.sh | ||
| steam_api.sh | ||
| steam_credentials.sh | ||
| steam_report.sh | ||
| steam_requirements.sh | ||
| study_doc_lookup.sh | ||
| study_doc_urls_more.sh | ||
| study_doc_urls.sh | ||
| study_gen_anki.sh | ||
| study_gen_docs.sh | ||
| study_gen_llm.sh | ||