From d0e6a1b119120eb657490785cb9b72d22682e361 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 5 Feb 2026 14:13:08 +0100 Subject: [PATCH] euicc: get_profiles_info: add additional tags Add definitions for ProfileOwner (decoded), Notification Configuration Info, SM-DP+ proprietary data, Profile Policy Rules. Change-Id: I727dbe34d87a42bb3b526bd7a8accd687d20a208 --- pySim/euicc.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pySim/euicc.py b/pySim/euicc.py index 2884c93e..0a6c0543 100644 --- a/pySim/euicc.py +++ b/pySim/euicc.py @@ -226,9 +226,28 @@ class Icon(BER_TLV_IE, tag=0x94): _construct = GreedyBytes class ProfileClass(BER_TLV_IE, tag=0x95): _construct = Enum(Int8ub, test=0, provisioning=1, operational=2) +class ProfilePolicyRules(BER_TLV_IE, tag=0x99): + _construct = GreedyBytes +class NotificationConfigurationInfo(BER_TLV_IE, tag=0xb6): + _construct = GreedyBytes + +# ProfileOwner +class ProfileOwnerPLMN(BER_TLV_IE, tag=0x80): + _construct = PlmnAdapter(Bytes(3)) +class ProfileOwnerGID1(BER_TLV_IE, tag=0x81): + _construct = GreedyBytes +class ProfileOwnerGID2(BER_TLV_IE, tag=0x82): + _construct = GreedyBytes +class ProfileOwner(BER_TLV_IE, tag=0xb7, nested=[ProfileOwnerPLMN, ProfileOwnerGID1, ProfileOwnerGID2]): + _construct = GreedyBytes + +class SMDPPProprietaryData(BER_TLV_IE, tag=0xb8): + _construct = GreedyBytes + class ProfileInfo(BER_TLV_IE, tag=0xe3, nested=[Iccid, IsdpAid, ProfileState, ProfileNickname, ServiceProviderName, ProfileName, IconType, Icon, - ProfileClass]): # FIXME: more IEs + ProfileClass, ProfilePolicyRules, NotificationConfigurationInfo, + ProfileOwner, SMDPPProprietaryData]): pass class ProfileInfoSeq(BER_TLV_IE, tag=0xa0, nested=[ProfileInfo]): pass