Whitelist diet_guard_app in phone_focus_mode

The new diet_guard companion phone app was being disabled by
focus_daemon.sh within ~1s of launch, same as workout_app/todo before
they were added.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HNcFybBsNt3FzzhqVvFh5C
This commit is contained in:
Krzysztof kuhy Rudnicki 2026-06-22 17:33:34 +02:00
parent 4eac1a45fe
commit c06a76f9ca
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"intent": "Let the new diet_guard companion phone app stay running on the BL9000 phone instead of being killed by phone_focus_mode within ~1s of launch.",
"scope": ["phone_focus_mode/config.sh"],
"changes": [
"Added com.kuhy.diet_guard_app to the 'User-requested productive apps' whitelist block, alongside com.kuhy.workout_app."
],
"verification": [
{
"command": "adb push config.sh /data/local/tmp/focus_mode/config.sh (via root cp) && focus_ctl.sh restart, then pm list packages -d/-e",
"result": "pass",
"evidence": "com.kuhy.diet_guard_app absent from `pm list packages -d`, present in `pm list packages -e` after restart; app stayed alive (pidof returned a pid after 5s, previously killed within ~1s)."
}
],
"risks": ["None — additive whitelist entry, no change to enforcement logic for other apps."],
"rollback": ["Remove the added line from config.sh, push, and restart focus_daemon to re-disable the app."]
}

View File

@ -297,6 +297,7 @@ com.kuhy.focusstatus
# --- User-requested productive apps ---
com.stronglifts.app
com.kuhy.workout_app
com.kuhy.diet_guard_app
com.shazam.android
com.ichi2.anki
com.metrolist.music