Applet Loaded to ISD-P of sysmoEUICC1-C2T

I’ve been working with the sysmoEUICC1-C2T to load and delete profiles via a locally-hosted SM-DP+ server. For the most parts it is working as intended, until I started to tinker with loading my own javacard 3.0.4 applet to an existing profile.

I am yet to fully understand how the APDUs are translated that are transferred between the LPAC (EasyLPAC) and the ISD-P (I think?) since I get an error where the message es10b_load_bound_profile_package results in load_profile_elements,install_failed_due_to_pe_processing_error.

Although, an OTA attempt with the applet also resulted in a failure in parameters not correct during the Install [for install] command.

This lead me to think, maybe I need to select the profile first, so I added in the ISD-P AID (a0000005591010ffffffff8900001000) for the ISD (this is where I possibly went wrong) from the user manual. I managed to load the applet package, but now I am unable to delete it. Removal of the profile does not delete it, either. Loading of a profile with a different ICCID (one of the -UNIQUE profiles) also lists the applet when the card manager is listed using SCP80 with TCALoader.

I am unable to select the ISD-P to issue a delete card content command via OTA. I get either a Security status not satisfied or a class invalid error. This leads me to believe that there might be a bug present, where one can load data to the eUICC ISD-P without having the correct permissions/keys?

this means that the eUICC has rejected the profile installation due to something within the profile (PE means profile element). You can get more details about the actual cause if you look at the profile-level error/cause value that is contained in the notification generated by the eUICC and sent back to the SM-DP+ once the notification is delivered there.

what do you mean by “added in” ? What exactly did you do and how?

In any case, selection of the target application in any type of OTA always happens via the TAR value. Selection of AIDs is something a local program like software on the phone/UE is doing, if ever needed.

I don’t understand what exactly you did and how based on your post, so I’m not really able to comment.

The ISD-P is part of an eSIM profile and not the eUICC. So whatever is installed within a profile should be deleted once the profile is deleted. Are you observing something different?

You can get more details about the actual cause if you look at the profile-level error/cause value that is contained in the notification generated by the eUICC and sent back to the SM-DP+ once the notification is delivered there

Yes, I get a code -1, so not sure what it means, and I am busy looking into how elements should be constructed to get a better idea as to what -1 means and how our current applet structure differs from the specifications.

what do you mean by “added in” ? What exactly did you do and how?

I have modified the install [FOR LOAD] command to specify the ISD-P as target SD.

# Install for load replicated since I don't want to brick another removable eUICC nor share our AID
84E602001A05D07002CA4410A0000005591010FFFFFFFF8900001000000000

The ISD-P is part of an eSIM profile and not the eUICC. So whatever is installed within a profile should be deleted once the profile is deleted. Are you observing something different?

Yes, if I remove all the profiles from the eUICC and load a clean new GSMA test profile (TS48v1_A or any other profile stored in pysim/smdpp-data/upp) and I query the card manager for all packages and applets, I get the previously (failed) installed package and applet.
I can not install a new one, since the GPRegistry seems to already have the package registered, nor can I remove it since the applet does not exist (reference data not found errors)