Modern Apps git

← MAOS.git

maos: drop duplicated ParentalControls and ScreenTime modules

Commit
a10e0b72a434bd6032d5ac255b65f719ab283a87
Author
Vayun Mathur <[email protected]>
When
2026-09-30 02:38 UTC (2 months ago)
Parents
47f4b11

Diff

Android.bp
diff --git a/Android.bp b/Android.bpindex d72fee7..bd31380 100644--- a/Android.bp+++ b/Android.bp@@ -366,23 +366,6 @@ android_app_import {     }, } -// ParentalControls is the system supervision app (bedtime + app limits). It holds the-// SYSTEM_SUPERVISION role via the config_systemSupervision pin in MaosFrameworkResRRO,-// which grants MANAGE_SUPERVISION and MANAGE_APP_OPS_MODES at runtime. It is NOT privileged:-// a privapp-permissions entry for a non-priv-app is boot-fatal under-// ro.control_privapp_permissions=enforce. Its reflective UsageStatsManager observer access-// is allowlisted via hidden-api-whitelisted-app in sysconfig-modern-apps.xml.-android_app_import {-    name: "ModernAppsParentalControls",-    apk: "prebuilts/parentalcontrols-release.apk",-    presigned: true,-    product_specific: true,--    dex_preopt: {-        enabled: false,-    },-}-  // Updater is PRIVILEGED: it holds REBOOT, ACCESS_CACHE_FILESYSTEM and ALLOCATE_AGGRESSIVE, and // it drives android.os.UpdateEngine to write an OTA payload into the inactive A/B slot. All@@ -413,24 +396,6 @@ android_app_import {     }, } -// ScreenTime is the self-managed wellbeing app (dashboard, timers, focus, wind-down). It-// holds the SYSTEM_WELLBEING role via the config_systemWellbeing pin in MaosFrameworkResRRO,-// which grants SUSPEND_APPS, SYSTEM_APPLICATION_OVERLAY and OBSERVE_APP_USAGE at runtime. It-// is NOT privileged: a privapp-permissions entry for a non-priv-app is boot-fatal under-// ro.control_privapp_permissions=enforce. Its reflective UsageStatsManager observer and-// PackageManager suspend access is allowlisted via hidden-api-whitelisted-app in-// sysconfig-modern-apps.xml.-android_app_import {-    name: "ModernAppsScreenTime",-    apk: "prebuilts/screentime-release.apk",-    presigned: true,-    product_specific: true,--    dex_preopt: {-        enabled: false,-    },-}- // Auto is PRIVILEGED: it is the SYSTEM_AUTOMOTIVE_PROJECTION role holder (pinned via // config_systemAutomotiveProjection in MaosFrameworkResRRO) and exercises signature|privileged // operations (MANAGE_USB, MODIFY_AUDIO_ROUTING, CALL_PRIVILEGED, CONTROL_INCALL_EXPERIENCE