Hello,


I am trying to update EF.EHPLMN with around 20 PLMNs.

With edit_binary_decoded, I am able to add them successfully.

But I am trying to update them directly using  update_binary_decoded command from from the pySim-shell prompt. But I am not working.

It would be really helpful if somebody could help me with it.

Below is the full list of commands that I tried.

Welcome to pySim-shell!
(C) 2021-2023 by Harald Welte, sysmocom - s.f.m.c. GmbH and contributors
Online manual available at https://downloads.osmocom.org/docs/pysim/master/html/shell.html
pySIM-shell (00:MF)> verify_adm 54815333
pySIM-shell (00:MF)> select ADF.USIM
{
    "file_descriptor": {
        "file_descriptor_byte": {
            "shareable": true,
            "file_type": "df",
            "structure": "no_info_given"
        },
        "record_len": null,
        "num_of_rec": null
    },
    "df_name": "a0000000871002ffffffff8907090000",
    "proprietary_information": {
        "uicc_characteristics": "71",
        "available_memory": 96880
    },
    "life_cycle_status_integer": "operational_activated",
    "security_attrib_compact": "00",
    "pin_status_template_do": [
        {
            "ps_do": "70"
        },
        {
            "key_reference": 1
        },
        {
            "key_reference": 129
        },
        {
            "key_reference": 10
        },
        {
            "key_reference": 11
        }
    ]
}
pySIM-shell (00:MF/ADF.USIM)> select EF.EHPLMN
{
    "file_descriptor": {
        "file_descriptor_byte": {
            "shareable": true,
            "file_type": "working_ef",
            "structure": "transparent"
        },
        "record_len": null,
        "num_of_rec": null
    },
    "file_identifier": "6fd9",
    "proprietary_information": {
        "unknown_ber_tlv_ie_d0": {
            "raw": "20"
        },
        "toolkit_access_conditions": {
            "rfm_create": true,
            "rfm_delete_terminate": true,
            "other_applet_create": true,
            "other_applet_delete_terminate": true
        }
    },
    "life_cycle_status_integer": "operational_activated",
    "security_attrib_referenced": {
        "ef_arr_file_id": "6f06",
        "ef_arr_record_nr": 3
    },
    "file_size": 66,
    "short_file_identifier": 29
}
pySIM-shell (00:MF/ADF.USIM/EF.EHPLMN)> read_binary_decoded
[
    {
        "mcc": "901",
        "mnc": "70"
    },
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null
]
pySIM-shell (00:MF/ADF.USIM/EF.EHPLMN)> update_binary_decoded  --json-path mcc 405
pySIM-shell (00:MF/ADF.USIM/EF.EHPLMN)> read_binary_decoded
[
    {
        "mcc": "901",
        "mnc": "70"
    },
    null,
    null,
    null,




Thanks and Regards,
Dushyanth

Sent using Zoho Mail



============ Forwarded message ============
From: Harald Welte via RT <support@sysmocom.de>
To: <dushyanthm@zohomail.in>
Date: Mon, 20 May 2024 19:01:10 +0530
Subject: Re: [rt.sysmocom.de #74835] Help on pySim-shell-py
============ Forwarded message ============

Please contact the simtrace@lists.osmocom.org mailing list and copy+paste the full command and response of the non working example.
--
Sent from my mobile phone. Please excuse my brevity.