MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / updater / README.md
| 1 | # Updater (MAOS) |
| 2 | |
| 3 | MAOS ships the first-party **MA Updater** app (`com.vayunmathur.updater`, |
| 4 | module `ModernAppsUpdater` in `../Android.bp`). It **replaces** the GrapheneOS |
| 5 | Updater outright via `overrides: ["Updater"]` — the GrapheneOS app is displaced, |
| 6 | not configured. There is no overlay, fork, or URL patch for the stock Updater; |
| 7 | do not re-add one. |
| 8 | |
| 9 | ## How the MA Updater finds the server |
| 10 | |
| 11 | The 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 |
| 13 | URL when the property is empty (Modern-Apps `updater/.../SystemBuild.kt`). |
| 14 | |
| 15 | For 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 |
| 25 | the R2 bucket `maos`, which `ota.maproj.org` serves. See `../ota/README.md`. |
| 26 | Keep the channel names the app offers in sync with the ones published. |