Research
How does an Android app get permission to manage an eSIM?
Android exposes supported secure elements, including some SIM cards, through the Open Mobile API (OMAPI). An app can discover a reader and ask Android to open a channel to an application on the card. The card’s access rules determine which apps can use that channel.
What we found on the test phone
Senser could see the reader before it could manage the card. The card already had a rule for a particular Android package and signing certificate. With a lab build that matched that identity, Senser could open the channel and inspect the installed profiles.
Reaching the profile server involved a second identity check. Senser also had to verify the server’s certificate before it could download a profile. Those two checks happen at different ends of the installation.
Sources we used
- Android Open Mobile API · Session documents how an app opens a logical channel and how Android reports an access denial.
- GlobalPlatform · Secure Element Access Control describes the rules that govern access from an application to a secure element.
- Android Open Source Project · eSIM overview explains the roles of the profile assistant, the provisioning server and the card.
Questions we’re working on
How could a separately signed Senser app obtain access on supported cards? When a phone refreshes the card after a profile switch, when can the app read it again and confidently report which profile is enabled?