globalesim: install via standard esimsetup.android.com link
- Commit
8175416de3dbb910c01a6bcb2f6625a3a65212ac- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-02 23:20 UTC (1 month ago)
- Parents
c902aa7
Install eSIM now fires the plain https://esimsetup.android.com/esim_qrcode_provisioning?carddata=LPA:1$<smdp>$<code> URL with the activation code unencoded, and no longer pins the intent to the euicc package, so any LPA that claims the link can handle it.
Diff
globalesim/AGENTS.md
diff --git a/globalesim/AGENTS.md b/globalesim/AGENTS.mdindex dcedbcf265..788edc02fe 100644--- a/globalesim/AGENTS.md+++ b/globalesim/AGENTS.md@@ -17,7 +17,7 @@ _Install: ./install globalesim (dev by default)._ - Pay-first: no eSIM until the first top-up ($5 min, card or crypto); the server keeps a $3 setup fee and funds the rest - Anonymous account (client-minted UUIDv4, no PII). The account id is the only credential and is shown as the "SIM ID": Copy SIM ID on the old phone, Claim on a phone without an eSIM - Rate catalog (server-scaled to the wallet's face value), Stripe card and NOWPayments crypto (+5%) top-ups, $5–$20 per payment-- One-tap install handoff to the euicc LPA (`EsimLink.provisioningUri` pinned to LPA package)+- One-tap install via the standard `https://esimsetup.android.com/esim_qrcode_provisioning?carddata=LPA:1$<smdp>$<code>` link (unpinned ACTION_VIEW, raw carddata) **Architecture / data-flow:** `ui/` screens → `platform/EsimViewModel` (single `EsimUiState`) → `data/api/EsimApi` (own `/esim/v1/*` on api.maproj.org, FIRST_PARTY) with pure `domain/QuoteMath` and `data/AnonymousIdStore` (DataStore UUID). The reseller vendor is server-only (`location_share_server/src/handlers/esim*.rs`) and never named here. **Entry points + reading order:** `Route.Tabs` (Purchase + Pricing tabs, no other routes) → `MainActivity.kt` → `Navigation.kt` → `platform/EsimViewModel.kt` → `data/api/EsimApi.kt`. **Gotchas:**
globalesim/src/main/java/com/vayunmathur/globalesim/ui/HomeScreen.kt
diff --git a/globalesim/src/main/java/com/vayunmathur/globalesim/ui/HomeScreen.kt b/globalesim/src/main/java/com/vayunmathur/globalesim/ui/HomeScreen.ktindex e927920657..d6ee9c159b 100644--- a/globalesim/src/main/java/com/vayunmathur/globalesim/ui/HomeScreen.kt+++ b/globalesim/src/main/java/com/vayunmathur/globalesim/ui/HomeScreen.kt@@ -29,7 +29,6 @@ import com.vayunmathur.globalesim.data.api.ProfileDto import com.vayunmathur.globalesim.domain.QuoteMath import com.vayunmathur.globalesim.domain.buildActivationCode import com.vayunmathur.globalesim.platform.EsimUiState-import com.vayunmathur.library.intents.euicc.EsimLink import com.vayunmathur.library.ui.AppPullToRefreshBox import com.vayunmathur.library.ui.AppScaffold import com.vayunmathur.library.ui.Card@@ -140,8 +139,8 @@ fun HomeScreen( // blank manual-entry page. The server sometimes fuses // smdp+code with the `$` missing, so normalize first. val full = buildActivationCode(profile.activationCode, profile.smdpAddress)- val intent = Intent(Intent.ACTION_VIEW, EsimLink.provisioningUri(full))- .setPackage(EsimLink.LPA_PACKAGE)+ val url = "https://esimsetup.android.com/esim_qrcode_provisioning?carddata=$full"+ val intent = Intent(Intent.ACTION_VIEW, url.toUri()) try { context.startActivity(intent) } catch (_: ActivityNotFoundException) {