Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / euicc / AGENTS.md
| 1 | # AGENTS.md — euicc/ (':euicc') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `euicc/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | _Install: ./install euicc (dev by default)._ |
| 6 | <!-- last-reviewed: 2026-10-16 --> |
| 7 | - Gradle: :euicc / dir: euicc/ |
| 8 | - Package roots present: ui, data, platform, service, telephony |
| 9 | - Entry files: Route.kt, Navigation.kt + platform/LuiActivity.kt (LPA UI entry; no MainActivity) |
| 10 | - Deps: :library:aosp-stubs, :library:network |
| 11 | - Metadata: metadata_data/euicc.md (present) |
| 12 | - Rust: yes / screenshotTest: yes |
| 13 | |
| 14 | ## Overview |
| 15 | **Purpose:** Privileged eSIM manager (LPA) — list/enable/disable/delete/rename profiles, QR/activation-code downloads (SGP.22 ES9+), EID info, pending notifications. Protocol core in Rust; internet only for carrier downloads. |
| 16 | **Key features:** `ui/` home/download/detail/QR screens → `platform/EuiccViewModel` → `service/EuiccManagerService` → `telephony/EuiccChannelManager` → `EuiccNative` Rust bridge; carrier confirmations in `ui/download/`. |
| 17 | **Entry points:** `Route` → `Navigation.kt` → `platform/LuiActivity.kt` → `ui/EuiccHomeScreen.kt` → `platform/EuiccViewModel.kt` → `service/EuiccManagerService.kt`. |
| 18 | **Gotchas:** eUICC access is privileged hardware access — sideloaded builds can't manage profiles; profile deletion is destructive, gate it behind confirmation. |
| 19 | |
| 20 | ## Key files |
| 21 | ### Root — navigation + Rust bridge (no MainActivity) |
| 22 | - com/vayunmathur/euicc/Navigation.kt |
| 23 | - com/vayunmathur/euicc/Route.kt |
| 24 | - com/vayunmathur/euicc/EuiccNative.kt — SGP.22 Rust bridge |
| 25 | ### data/ — profiles + notifications |
| 26 | - com/vayunmathur/euicc/data/Profile.kt |
| 27 | - com/vayunmathur/euicc/data/EuiccInfo.kt |
| 28 | - com/vayunmathur/euicc/data/Notification.kt |
| 29 | ### platform/ + telephony/ + service/ — LPA stack |
| 30 | - com/vayunmathur/euicc/platform/EuiccViewModel.kt |
| 31 | - com/vayunmathur/euicc/platform/LuiActivity.kt — LPA UI entry |
| 32 | - com/vayunmathur/euicc/platform/DownloadState.kt |
| 33 | - com/vayunmathur/euicc/telephony/EuiccChannelManager.kt |
| 34 | - com/vayunmathur/euicc/service/EuiccManagerService.kt |
| 35 | ### ui/ + ui/dialogs/ + ui/download/ — LPA screens |
| 36 | - com/vayunmathur/euicc/ui/EuiccHomeScreen.kt |
| 37 | - com/vayunmathur/euicc/ui/AddSimScreen.kt |
| 38 | - com/vayunmathur/euicc/ui/ActivationCodeScreen.kt |
| 39 | - com/vayunmathur/euicc/ui/DownloadScreen.kt |
| 40 | - com/vayunmathur/euicc/ui/ProfileDetailScreen.kt |
| 41 | - com/vayunmathur/euicc/ui/DeviceInfoScreen.kt |
| 42 | - com/vayunmathur/euicc/ui/QrScanner.kt |
| 43 | - com/vayunmathur/euicc/ui/dialogs/EidDialog.kt |
| 44 | - com/vayunmathur/euicc/ui/dialogs/RenameDialog.kt |
| 45 | - com/vayunmathur/euicc/ui/download/ConfirmCarrierContent.kt |
| 46 | - com/vayunmathur/euicc/ui/download/ConfirmationCodeContent.kt |
| 47 | - com/vayunmathur/euicc/ui/download/InstallingContent.kt |
| 48 | - com/vayunmathur/euicc/ui/download/CompleteContent.kt |
| 49 | - com/vayunmathur/euicc/ui/download/FailedContent.kt |
| 50 | |
| 51 | ## Verify (this module only) |
| 52 | ``` |
| 53 | ./gradlew :euicc:compileDevKotlin |
| 54 | ./gradlew :euicc:lint |
| 55 | ./gradlew :euicc:checkMetadata |
| 56 | ``` |