Is it possible to use a sim slot in a Samsung phone as a generic PSAM reader?

110 Views Asked by At

There is an NXP JCOP 4 smart card with java applet on it (https://www.cardlogix.com/product/nxp-jcop-4-java-card-3-0-5-classic/), there is also an Android phone with dual sim and Android 13 (Samsung S23 Ultra). Considering the card is properly cut the way it still works and pinout matches the contacts of nano-SIM card slot, is it possible to send APDU commands to it?

I'm aware of UICC option (issuing a Java card which complies to SIM card standards) - but sadly this smart card is provided by third party and we can't modify it.

So, maybe it's possible to reuse the SIM card reader in Samsung as a generic PSAM reader instead?

I've tried OMAPI so far, obviously no luck - openSession returns "Secure element is not present" for the reader with inserted card.

But Samsung has more libraries in their framework, maybe there is other way?

Thanks

2

There are 2 best solutions below

2
Nick S. On

The voltage shouldn't be an issue, the JCOP 4 P71 supports voltage classes A, B, extended B, and C (1.62 - 5.5 V). Usually the second SIM slots in phones are for inserting SIM's from multiple carriers when traveling international, I don't think it will function as a Secure Access Module slot. I do know in Android tablets and POS terminals I've worked with that they typically have a slot/s for SIM and a dedicated one for a SAM.

0
MJay On

This is a matter of OS. According to my own experience, some Android phones support OMAPI or TelephonyManager which can be used to send APDUs to the card in the SIM slot. Try to check if either OMAPI or TelephonyManager is supported on your OS.