Modern Apps git

MAOS.git

Public
git clone https://git.maproj.org/MAOS.git
main ▾

MAOS.git / updater / README.md

README.md1.2 KiBRenderedCodeRaw
1# Updater (MAOS)
2
3MAOS ships the first-party **MA Updater** app (`com.vayunmathur.updater`,
4module `ModernAppsUpdater` in `../Android.bp`). It **replaces** the GrapheneOS
5Updater outright via `overrides: ["Updater"]` — the GrapheneOS app is displaced,
6not configured. There is no overlay, fork, or URL patch for the stock Updater;
7do not re-add one.
8
9## How the MA Updater finds the server
10
11The app reads the `ro.maos.ota.server` system property, set to
12`https://ota.maproj.org` in `../maos_branding.mk`, and falls back to that same
13URL when the property is empty (Modern-Apps `updater/.../SystemBuild.kt`).
14
15For device `$DEVICE` on channel `$CHANNEL` (e.g. `stable`), it polls:
16
17- **Metadata:** `GET https://ota.maproj.org/$DEVICE-$CHANNEL`
18- **Payload:** the OTA zip referenced by that metadata, applied to the
19 inactive A/B slot via `update_engine` after local signature verification.
20
21## Publishing
22
23`build-maos.sh`'s `publish` phase uploads the release OTA zip first
24(immutable cache) and the `$DEVICE-$CHANNEL` metadata last (`no-store`) to
25the R2 bucket `maos`, which `ota.maproj.org` serves. See `../ota/README.md`.
26Keep the channel names the app offers in sync with the ones published.