eSIM activation code (LPA)

The QR on a carrier's eSIM activation email is an LPA (Local Profile Assistant) activation code per GSMA SGP.22. The phone scans it, contacts the SM-DP+ (Subscription Manager — Data Preparation Plus) server, downloads the encrypted eSIM profile, and installs it — all without the customer typing anything.

Canonical spec: GSMA SGP.22 — Remote SIM Provisioning Architecture for Consumer Devices v3.0 (current, 2024). The activation-code format is defined in §4.1.1.
Native support: iOS 17.4+ (2024) and Android 13+ (2022) scan these directly from the camera app to provision eSIM profiles.

What it is

The activation-code payload is a fixed-format string with 3 or 4 $-separated parts:

LPA:1$<SM-DP+ address>$<Matching ID>[$<Confirmation Code>]

Canonical test vectors

These are shape-only examples — a real LPA activation code binds to a specific profile on a specific SM-DP+. Test vectors encode the format, not a scan-to-install flow.

CaseInputsExpected encoded string
Minimal (no confirmation code)smdp=rsp.example.com
code=K2-LM3N4P5Q-R6S7T
LPA:1$rsp.example.com$K2-LM3N4P5Q-R6S7T
With confirmation codesmdp=rsp.example.com
code=K2-LM3N4P5Q-R6S7T
confirm=1234
LPA:1$rsp.example.com$K2-LM3N4P5Q-R6S7T$1234
Carrier with subdomainsmdp=esim.carrier.com
code=ABCDEFGH12345678
LPA:1$esim.carrier.com$ABCDEFGH12345678
Ported MSISDN workflowsmdp=rsp.smdpplus.example
code=PORT-MSISDN-0123456789
confirm=99
LPA:1$rsp.smdpplus.example$PORT-MSISDN-0123456789$99

Common pitfalls

Scanner compatibility

Device / OSSupportNotes
iOS 17.4+NativeCamera app recognises LPA payloads and offers to install the eSIM profile inline.
iOS 16.x–17.3Native via Settings > CellularScan from Settings > Cellular > Add eSIM rather than Camera. Camera-scan support landed in 17.4.
Android 13+NativeSettings > Network & internet > SIMs > Add eSIM > Scan QR.
Android 9–12OEM-specificSamsung Galaxy, Google Pixel, and some OnePlus devices have camera-scan support. Other OEMs require manual entry via Settings.
Third-party camera appsNot nativelyThey decode the QR but don't trigger eSIM install. Users must copy the string into Settings manually.
Older / non-eSIM phonesN/ANo physical eSIM hardware; payload decodes but nothing happens.

See also

Spec version verified 2026-04-18 (GSMA SGP.22 v3.0, 2024). Next review: 2026-07-18.