v0.1.0-alpha.17 — Brick: NFC tap-to-block app blocking (Foqos-style), 3s vault hold, fixes - #18
Merged
Conversation
…s, block wall), 3s vault hold, screen-time sync perf Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Brick — new module
Foqos-style tap-to-block, built on the only mechanism Android gives a sideloaded app (Family Link's supervision APIs are restricted to Google's own package): an accessibility service that watches which app comes to the front and replaces blocked ones with a full-screen wall.
setAndAllowWhileIdle) arms the next start/end edge per profile; re-armed on every refresh, so reboots are covered when the service reconnects.Verification: the rules that must never be wrong were extracted into a pure
BrickPolicyand covered by 12 JVM unit tests, all passing — blocked vs allowed vs allowance-spent, zero-minute allowance is a hard block, allowances don't leak between apps, LifeOS itself is never blockable (or you couldn't unlock), NFC-only modes reject manual/time exits, strict modes reject everything but their condition, force-stop still works if a running profile is deleted. Debug + minified release builds pass.Honest caveat: a determined user can still disable the accessibility service in system settings — no non-privileged Android app can prevent that. Everything short of that is enforced.
2. Vault reveal
Hold on the Home "LifeOS" title reduced from 5s to 3s.
3. General fixes
Room v14 (4 Brick tables, auto-migration). versionCode 17.
🤖 Generated with Claude Code
Generated by Claude Code