I’m building a personal Android device-owner app that blocks distracting apps and websites. It already works for apps using a hardcoded blocklist of package names, enforced deterministically.
For websites, I’m using a lightweight DNS filter via VpnService to block known domains. This works for stable sites but fails for constantly changing ones (e.g., mirror/anime sites).
The issue is handling unknown apps or domains. I need a simple, reliable BLOCK/ALLOW decision using minimal input (name, package, domain, or basic metadata). I tried using Gemini, but it’s too inconsistent for enforcement.
I want a lightweight, practical solution without building a full ML system.
Constraints:
highly reliable / deterministic behavior
low latency
minimal data inspection
no user bypass or settings
hardcoded allow/block lists remain primary
feasible for a solo developer
Question:
What is the most practical way to handle classification of unknown apps/domains in this setup?