Modern Apps git

← MAOS.git

maos: swap GrapheneOS Etar calendar for MA Calendar

Commit
5b309e42506066c82abaa76dd27e0d1d9e280481
Author
Vayun Mathur <[email protected]>
When
2026-08-09 19:11 UTC (3 months ago)
Parents
4e5c728

Diff

Android.bp
diff --git a/Android.bp b/Android.bpindex 4442d2c..21628ad 100644--- a/Android.bp+++ b/Android.bp@@ -129,3 +129,15 @@ android_app_import {         enabled: false,     }, }++// Calendar replaces GrapheneOS's Etar (or is additive on a plain-AOSP base, which has no+// calendar UI). Uses the system CalendarProvider via CalendarContract — no backend of its own.+android_app_import {+    name: "ModernAppsCalendar",+    apk: "prebuilts/calendar-release.apk",+    presigned: true,+    product_specific: true,+    dex_preopt: {+        enabled: false,+    },+}
README.md
diff --git a/README.md b/README.mdindex 2a7abf0..5cef006 100644--- a/README.md+++ b/README.md@@ -24,6 +24,7 @@ repo.) | App Store | `com.vayunmathur.appstore` | GrapheneOS Apps | | Keyboard | `com.vayunmathur.keyboard` | AOSP LatinIME (Direct Boot-aware for lock-screen input) | | Speech | `com.vayunmathur.speech` | *(additive)* default on-device STT + TTS |+| Calendar | `com.vayunmathur.calendar` | GrapheneOS Etar (uses system CalendarProvider) |  ## Layout 
build-maos.sh
diff --git a/build-maos.sh b/build-maos.shindex 6e4a10d..1d387dc 100755--- a/build-maos.sh+++ b/build-maos.sh@@ -64,7 +64,7 @@ BUILD="$TAG" MANIFEST_URL="https://github.com/GrapheneOS/platform_manifest.git" MAOS_GH="https://github.com/vayun-mathur/"     # overlay repo remote (for the local manifest) MODERN_APPS_GH="vayun-mathur/Modern-Apps"      # source of the prebuilt APKs-APPS=(web camera pdf contacts calculator clock files photos appstore keyboard speech)+APPS=(web camera pdf contacts calculator clock files photos appstore keyboard speech calendar)  # ---- Derived / optional-env config ---- MAOS_KEYS_FILE="${MAOS_KEYS_FILE:-$HOME/maos-keys/$DEVICE.keys.tar.gz.scrypt}"
modern_apps.mk
diff --git a/modern_apps.mk b/modern_apps.mkindex 1bffcfc..b7ee4cb 100644--- a/modern_apps.mk+++ b/modern_apps.mk@@ -20,17 +20,23 @@ PRODUCT_PACKAGES += \     ModernAppsPhotos \     ModernAppsStore \     ModernAppsKeyboard \-    ModernAppsSpeech+    ModernAppsSpeech \+    ModernAppsCalendar  # 2. Remove the stock userspace apps we're replacing. #    IMPORTANT: only ever remove *UI apps*, never content-provider backends. Contacts and-#    Calendar are each split in AOSP:-#      - UI:       Contacts (com.android.contacts)   [no AOSP calendar UI app exists]+#    Calendar are each split in AOSP/GrapheneOS:+#      - UI:       Contacts (com.android.contacts); GrapheneOS bundles Etar as its calendar. #      - backend:  ContactsProvider (com.android.providers.contacts), #                  CalendarProvider (com.android.providers.calendar) #    The *Provider modules implement ContactsContract/CalendarContract that our apps (and #    everything else) depend on — removing them breaks the whole system. So we remove only-#    "Contacts" (the UI), leaving ContactsProvider/CalendarProvider intact.+#    the UI apps (Contacts, Etar), leaving ContactsProvider/CalendarProvider intact.+#+#    NOTE: `Etar` is safe to list even if this GrapheneOS release doesn't ship it —+#    $(filter-out) on an absent module is a no-op. Confirm module names on your synced tree+#    (runbook step 7b); bare AOSP has no calendar UI, so on a plain-AOSP base Etar is simply+#    absent and MA Calendar is purely additive. # #    There is no PRODUCT_PACKAGES -= operator, so we filter them out. This only works if this #    file is evaluated LAST (see header). Confirm the exact module names in your synced tree —@@ -40,6 +46,7 @@ _maos_remove := \     PdfViewer \     Apps \     Contacts \+    Etar \     DeskClock \     Calculator \     Gallery2 \
scripts/collect-apks.sh
diff --git a/scripts/collect-apks.sh b/scripts/collect-apks.shindex f57a465..a38a98c 100755--- a/scripts/collect-apks.sh+++ b/scripts/collect-apks.sh@@ -21,7 +21,7 @@ SRC="${1:?usage: collect-apks.sh <path to Modern-Apps repo, its distribution_apk DEST="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/prebuilts" mkdir -p "$DEST" -APPS=(web camera pdf contacts calculator clock files photos appstore keyboard speech)+APPS=(web camera pdf contacts calculator clock files photos appstore keyboard speech calendar)  find_apk() {   local app="$1"