testsAndMisc/focus_owner/assets/policy.json
Krzysztof kuhy Rudnicki 98ca3ac56a Whitelist com.kuhy.lyricanki in focus mode
Focus Owner hides every package absent from the allowlist, so a newly
installed lyricanki was installed=true but hidden=true: absent from the
launcher and from `pm list packages`, and `am start` reported the activity
did not exist even though dumpsys listed its MAIN/LAUNCHER filter. Nothing
about the app itself was wrong.

policy.json is regenerated from config.sh by python_pkg.focus_policy, never
hand-edited.

Also drops com.android.launcher3 and com.android.camera2 from
SYSTEM_NEVER_DISABLE. That list is prefix-matched and both are strict
supersets of entries already in it, so coverage is byte-identical; this
keeps config.sh under the 250-line cap without weakening the policy.
com.android.settings stays: its only shorter match is com.android.se, an
accidental substring rather than intent.

Verified on the phone: signer matched so the Device Owner upgraded in
place, dpm still reports DeviceOwner, lyricanki flipped to hidden=false,
and workout_app + the dialer are untouched.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RAEChhK3sWGxd6ucsUQmcT
2026-08-22 16:26:52 +02:00

153 lines
3.9 KiB
JSON

{
"allowed_packages": [
"com.android.vending",
"com.celzero.bravedns",
"com.facebook.orca",
"com.google.android.apps.maps",
"com.google.android.apps.nexuslauncher",
"com.google.android.calendar",
"com.google.android.deskclock",
"com.ichi2.anki",
"com.kuhy.diet_guard_app",
"com.kuhy.focus_owner",
"com.kuhy.home_inventory",
"com.kuhy.lyricanki",
"com.kuhy.untools",
"com.kuhy.wake_alarm_sync",
"com.kuhy.workout_app",
"com.kunzisoft.keepass.libre",
"com.metrolist.music",
"com.revolut.revolut",
"com.sosauce.cutecalc",
"com.zaneschepke.wireguardautotunnel",
"dev.kuhy.todo",
"eu.kanade.tachiyomi.sy",
"org.fossify.contacts",
"org.fossify.messages",
"org.fossify.phone",
"org.runnerup",
"org.runnerup.free",
"pl.infakt.infakt",
"pl.mbank",
"pl.nask.mobywatel"
],
"allowed_prefixes": [
"eu.kanade.tachiyomi"
],
"always_blocked_packages": [
"com.android.chrome",
"com.google.android.apps.youtube.music",
"com.google.android.youtube"
],
"always_on_vpn_package": "com.celzero.bravedns",
"blockable_system_packages": [
"com.android.chrome",
"com.android.vending",
"com.google.android.apps.youtube.music",
"com.google.android.videos",
"com.google.android.youtube"
],
"browser_packages": [
"com.android.chrome",
"org.mozilla.fenix"
],
"curfew": {
"end": "05:00",
"start": "23:00"
},
"home": {
"hysteresis_m": 30.0,
"latitude": null,
"longitude": null,
"radius_m": 150.0
},
"launcher_package": "com.google.android.apps.nexuslauncher",
"never_disable_prefixes": [
"android",
"com.android.bluetooth",
"com.android.camera",
"com.android.captiveportallogin",
"com.android.certinstaller",
"com.android.contacts",
"com.android.dialer",
"com.android.documentsui",
"com.android.emergency",
"com.android.externalstorage",
"com.android.inputmethod",
"com.android.keychain",
"com.android.launcher",
"com.android.location",
"com.android.messaging",
"com.android.mms",
"com.android.networkstack",
"com.android.nfc",
"com.android.permissioncontroller",
"com.android.phone",
"com.android.providers",
"com.android.se",
"com.android.settings",
"com.android.shell",
"com.android.systemui",
"com.android.vpndialogs",
"com.android.wifi",
"com.celzero.bravedns",
"com.google.android.apps.messaging",
"com.google.android.contacts",
"com.google.android.deskclock",
"com.google.android.dialer",
"com.google.android.ext.services",
"com.google.android.ext.shared",
"com.google.android.gms",
"com.google.android.gsf",
"com.google.android.inputmethod.latin",
"com.google.android.permissioncontroller",
"com.google.android.setupwizard",
"com.google.android.trichromelibrary",
"com.google.android.webview",
"com.mediatek",
"com.qualcomm",
"pl.infakt.infakt"
],
"night_allowed_packages": [
"com.celzero.bravedns",
"com.google.android.apps.nexuslauncher",
"com.google.android.deskclock",
"com.kuhy.focus_owner",
"com.kuhy.wake_alarm_sync",
"com.kunzisoft.keepass.libre",
"com.revolut.revolut",
"dev.kuhy.todo",
"org.fossify.contacts",
"org.fossify.messages",
"org.fossify.phone",
"org.runnerup",
"org.runnerup.free",
"pl.infakt.infakt",
"pl.mbank",
"pl.nask.mobywatel"
],
"night_allowed_prefixes": [
"eu.kanade.tachiyomi"
],
"private_dns_host": "",
"schema_version": 1,
"vpn_lockdown": true,
"workout_unblock_domains": [
"googlevideo.com",
"i.ytimg.com",
"i9.ytimg.com",
"m.youtube.com",
"s.ytimg.com",
"www.youtube-nocookie.com",
"www.youtube.com",
"youtu.be",
"youtube-nocookie.com",
"youtube.com",
"youtube.googleapis.com",
"youtubei.googleapis.com",
"yt3.ggpht.com",
"yt3.googleusercontent.com",
"ytimg.com"
]
}