Gerrit Code Review
b2cc5061ab
Update notes for submitted changes
...
* Fix run-editor bug with cmd2 >= 2.0.0 compatibility
2023-06-26 08:33:54 +00:00
Gerrit Code Review
b54d9908b9
Update notes for submitted changes
...
* tests: Add new, data-driven OTA tests
* Add support for encoding/decoding SMS in TPDU and SMPP format
2023-06-25 06:23:45 +00:00
Gerrit Code Review
846786a75a
Update notes for submitted changes
...
* docs: Add section on pySim-trace to user manual
2023-06-13 15:10:25 +00:00
Gerrit Code Review
6e17a3d9e6
Update notes for submitted changes
...
* pySim-shell: fix reset command
2023-06-11 19:11:37 +00:00
Gerrit Code Review
6f6eaabe76
Update notes for submitted changes
...
* Add ".py" suffix to sphinx-argparse generated docs
2023-06-11 19:10:39 +00:00
Gerrit Code Review
9a7cb97167
Update notes for submitted changes
...
* 31.102: Fix EF.Routing_Indicator for odd number of digits
* README: remove redundancy 'Manual' and 'Documentation
* README: rephrase initial section; add HPSIM; programmable vs. standard
* test_ota: Add one first OTA SMS AES128 unit test
* SJA5: EF.USIM_AUTH_KEY: Display / enforce proper length TUAK K
2023-06-11 19:10:26 +00:00
Gerrit Code Review
603e5f5843
Update notes for submitted changes
...
* ts_31_102: Add shell command for GET IDENTITY
2023-06-07 15:54:17 +00:00
Gerrit Code Review
9ac3e68708
Update notes for submitted changes
...
* serial: return a return code in reset_card()
2023-06-07 10:00:52 +00:00
Gerrit Code Review
9d7618b374
Update notes for submitted changes
...
* utils: Remove format_xplmn leading zeros in MNC
* Add FPLMN read and program
2023-06-07 10:00:07 +00:00
Gerrit Code Review
ce4d927782
Update notes for submitted changes
...
* ts_31_102: fix typo
2023-06-07 07:51:01 +00:00
Gerrit Code Review
432d443241
Update notes for submitted changes
...
* Fix result parsing of "suspend_uicc"
* pySim-shell: Unregister TS 102 222 commands during 'equip'
2023-06-06 16:26:15 +00:00
Gerrit Code Review
472ae93c63
Update notes for submitted changes
...
* HPSIM application support
2023-06-06 16:25:49 +00:00
Gerrit Code Review
71389ca5e5
Update notes for submitted changes
...
* Switch from pycryptodome to pycryptodomex
2023-06-06 08:55:46 +00:00
Gerrit Code Review
8a762d8f65
Update notes for submitted changes
...
* OTA: Fix padding of AES CMAC
* SJA5: Proper encode/decode of TUAK data in EF.USIM_AUTH_KEY
* SJA5: Add TUAK + XOR-2G algorithm definitions for EF_[U]SIM_AUTH_KEY
* SJA2: Implement DF.SYSTEM/EF.0348_KEY using construct
* ts_31_102: EF_SUPI_NAI: Decode/Encode GLI+GCI as UTF-8 strings
* ts_31_102: Add decoder/encoder for DF.5GS/EF.Routing_Indicator
2023-06-03 12:45:35 +00:00
Gerrit Code Review
a2e0ebaf1e
Update notes for submitted changes
...
* modem_atcmd: raise ProtocolError instead of ReaderError on CME ERROR
2023-06-02 15:35:43 +00:00
Gerrit Code Review
0cd2c5c450
Update notes for submitted changes
...
* setup.py: fix syntax errors (missing commas)
2023-05-30 09:45:29 +00:00
Gerrit Code Review
20505761d3
Update notes for submitted changes
...
* cards: Add support for Gialer SIM cards
* docs: add SUPI/SUCI usage example
2023-05-27 10:58:08 +00:00
Gerrit Code Review
5aae08829a
Update notes for submitted changes
...
* cards.py: support ATR-based detection of sysmoISIM-SJA5
* ts_31_102: Add DF.SAIP support
2023-05-26 14:38:40 +00:00
Gerrit Code Review
53b1396b38
Update notes for submitted changes
...
* ts_31_102: Fix FID + SFI of EF.MCHPPLMN
* ts_31_102: Fix FID of EF.OPL5G (it's 4F08 instead of 6F08)
* ts_31_102: Fix EF.NIA FID
* ts_51_011: Fix EF.Phase FID (it's 6FAE, not 6FA3)
* ts_51_011: Fix FID of EF.BCCH
* ts_31_102: Extend from Rel16 to Rel17
* ts_51_011: Add sst_service_[de]{activate,allocate} shell commands
2023-05-25 07:55:44 +00:00
Gerrit Code Review
9824093dad
Update notes for submitted changes
...
* setup.py: add missing packages for pySim-trace.py
2023-05-24 09:03:01 +00:00
Gerrit Code Review
950b21cefd
Update notes for submitted changes
...
* contrib/jenkins.sh: print pylint version before running it
* Fix pylint errors
2023-05-23 15:20:28 +00:00
Gerrit Code Review
4958e2213d
Update notes for submitted changes
...
* README.md: add missing pycryptodome to dependency list
* setup: add missing pyyaml to setup.py and README.md
2023-05-22 10:36:48 +00:00
Gerrit Code Review
2129c102ba
Update notes for submitted changes
...
* requirements.txt: allow cmd2 versions greater than 1.5
* pySim-shell: fix compatibility problem with cmd2 >= 2.3.0 (bg)
* pySim-shell: fix compatibility problem with cmd2 >= 2.0.0 (include_ipy)
* pySim-shell: fix compatibility problem with cmd2 >= 2.0.0 (Settable)
2023-05-19 09:07:27 +00:00
Gerrit Code Review
33e6cd9777
Update notes for submitted changes
...
* Add very basic profile for R-UIM (CDMA) cards
* ts_51_011: fix EF_ServiceTable: use self for static method
2023-05-10 00:14:13 +00:00
Gerrit Code Review
98361659db
Update notes for submitted changes
...
* setup.py: add missing pySim-trace.py' to scripts[]
2023-05-05 10:51:15 +00:00
Gerrit Code Review
080d5627fb
Update notes for submitted changes
...
* filesystem: define more convenient codec for EF.ACC
2023-04-20 15:06:43 +00:00
Gerrit Code Review
dae919bf0e
Update notes for submitted changes
...
* pySim-prog.py: fix SyntaxWarning: using is with a literal
2023-04-14 11:14:27 +00:00
Gerrit Code Review
9be3754794
Update notes for submitted changes
...
* pySim-shell: add cardinfo command
2023-04-06 10:14:29 +00:00
Gerrit Code Review
73150532b7
Update notes for submitted changes
...
* pySim-shell.py: add a command for RUN GSM ALGORITHM
* SimCardCommands.run_gsm(): use send_apdu_checksw()
* fix SimCardCommands.run_gsm(): always use CLA=0xa0
2023-03-22 09:57:32 +00:00
Gerrit Code Review
93e2b26672
Update notes for submitted changes
...
* gitignore: add manuals related files
* docs/Makefile: don't forward shrink to sphinx
2023-03-20 12:49:54 +00:00
Gerrit Code Review
80c7cfa0a1
Update notes for submitted changes
...
* ts_102_222: Implement support for RESIZE FILE for an EF
2023-03-09 09:49:40 +00:00
Gerrit Code Review
cb5ff1310d
Update notes for submitted changes
...
* docs: change upload path for html docs
2023-03-08 11:41:44 +00:00
Gerrit Code Review
80437bd03a
Update notes for submitted changes
...
* docs: Document the file-specific commands for ADF.USIM/EF.EST
* 31.102: EF.EST enables/disables services; name commands accordingly
* docs: Add reference for various commands
2023-02-27 13:37:01 +00:00
Gerrit Code Review
bbdbe9eee9
Update notes for submitted changes
...
* cards: sysmo-isim-sja2: make sure an ADF is present in EF.DIR before selecting it
2023-02-11 09:14:18 +00:00
Gerrit Code Review
b1a7bae9c9
Update notes for submitted changes
...
* filesystem: add unit tests for encoder/decoder methods
2023-02-01 18:46:44 +00:00
Gerrit Code Review
813f2a3edb
Update notes for submitted changes
...
* ts_51_011: Fix decoding/encoding of EF_LOCIGPRS
* Assume first record number if caller specifies none
* ts_31_102: Fix several bugs in EF_ECC encoder
* ts_51_011: EF_SMSP: Use integer division in ValidityPeriodAdapter
2023-01-31 20:29:19 +00:00
Gerrit Code Review
a7a7a71f75
Update notes for submitted changes
...
* gsm_r: EF_IC: Network String Table Index is 16bit, not 8bit
2023-01-31 16:00:24 +00:00
Gerrit Code Review
063023cf1b
Update notes for submitted changes
...
* ts_51_011: Improve decoding of SELECT response for classic SIM
* ts_51_011: Support EF.LND
* ts_51_011, ts_31_102: point to proper EF_EXTn file
2023-01-29 18:22:09 +00:00
Gerrit Code Review
c81f5d3d69
Update notes for submitted changes
...
* ts_51_011: Implement Extended BCD Coding
2023-01-29 18:21:45 +00:00
Gerrit Code Review
bc623cc330
Update notes for submitted changes
...
* ts_51_011: Support EF.SDN
* ts_51_011: Fix bit-order in EF.VGCSS and EF.VBSS
* gsm_r: Fix byte/nibble ordering of predefined_value1
* gsm_r: EF_Predefined: Decode first record different from others
2023-01-28 16:31:36 +00:00
Gerrit Code Review
88d1a87949
Update notes for submitted changes
...
* Prepare for decoding/encoding records differently based on record number
2023-01-27 19:49:37 +00:00
Gerrit Code Review
44333e8849
Update notes for submitted changes
...
* gsm_r: Fix decoding of EF.FN
2023-01-24 20:00:38 +00:00
Gerrit Code Review
1cbf9a38ea
Update notes for submitted changes
...
* gsm_r: Fix typo (it's EF.FN, not EF.EN)
2023-01-24 19:14:34 +00:00
Gerrit Code Review
71f29bb3ee
Update notes for submitted changes
...
* pySim-trace: Also consider SW 91xx as successful
* pySim-trace: Fix missing MANAGE CHANNEL decode
* pySim-trace: Add support for reading GSMTAP from pcap files
2023-01-24 13:08:29 +00:00
Gerrit Code Review
27ccd9d6ea
Update notes for submitted changes
...
* cards: also program EF.AD under ADF.USIM
2023-01-23 10:51:40 +00:00
Gerrit Code Review
5894b6be24
Update notes for submitted changes
...
* cards: fix typo
2023-01-03 13:03:59 +00:00
Gerrit Code Review
8ea662fbd0
Update notes for submitted changes
...
* pySim-prog: add python docstring for read_params_csv
2022-12-23 11:15:47 +00:00
Gerrit Code Review
c8751da6cb
Update notes for submitted changes
...
* sysmocom_sja2: simplify and fix op/opc decoder/encoder
2022-12-02 16:27:39 +00:00
Gerrit Code Review
717e4f14ff
Update notes for submitted changes
...
* OTA: Adjust IV length for AES
2022-11-25 14:27:27 +00:00
Gerrit Code Review
78875ad225
Update notes for submitted changes
...
* contrib/jenkins.sh: split test/pylint/docs
2022-11-07 08:16:13 +00:00
Gerrit Code Review
4e36f18c1f
Update notes for submitted changes
...
* docs: allow overriding OSMO_GSM_MANUALS_DIR
2022-10-24 11:29:13 +00:00
Gerrit Code Review
2fa27c0e83
Update notes for submitted changes
...
* Revert "contrib/jenkins.sh: pylint v2.15 is unstable, pin v2.14.5"
2022-09-14 05:00:33 +00:00
Gerrit Code Review
0b23ec5b85
Update notes for submitted changes
...
* Add new pySim.ota library, implement SIM OTA crypto
2022-09-08 13:55:34 +00:00
Gerrit Code Review
821f2a9963
Update notes for submitted changes
...
* README.md: update installation instructions for Debian
2022-09-08 08:23:07 +00:00
Gerrit Code Review
f6655cae54
Update notes for submitted changes
...
* README.md: update git URLs (git -> https; gitea)
* README.md: list recent dependencies from requirements.txt
* README.md: fix module name: s/serial/pyserial/
* README.md,requirements.txt: add missing construct version info
* Bump minimum required construct version to v2.9.51
2022-09-05 17:15:34 +00:00
Gerrit Code Review
b3e40cbaa7
Update notes for submitted changes
...
* construct: use Python's API for int<->bytes conversion
* contrib/jenkins.sh: install dependencies from requirements.txt
* contrib/jenkins.sh: execute this script with -x and -e
2022-09-05 16:42:43 +00:00
Gerrit Code Review
155f0fa602
Update notes for submitted changes
...
* contrib/jenkins.sh: speed up pylint by running multiple processes
* contrib/jenkins.sh: pylint v2.15 is unstable, pin v2.14.5
2022-09-05 11:27:50 +00:00
Gerrit Code Review
9ac9ca96e1
Update notes for submitted changes
...
* proactive: Send a Terminal Response automatically after a Fetch
* proactive: Avoid clobbering the output of the command that triggered the FETCH
2022-08-21 13:16:24 +00:00
Gerrit Code Review
e1b096c55d
Update notes for submitted changes
...
* tlv: Use self._compute_tag() method rather than direct self.tag
2022-08-07 14:59:50 +00:00
Gerrit Code Review
f48fd0bdf9
Update notes for submitted changes
...
* apdu/ts_102_221: SELECT: allow select of SELF
* apdu/ts_102_221: SELECT: allow select of parent/ancestor DFs
* filesystem: We can select not just immediate parent DF but all ancestors
2022-07-26 06:11:44 +00:00
Gerrit Code Review
77aa0f8609
Update notes for submitted changes
...
* apdu/ts_102_221: Fix SELECT of 3f00
* apdu/ts_102_221: Implement SELECT case "df_ef_or_mf_by_file_id"
* filesystem.py: Make CardDF.get_selectables() respect the flags
2022-07-25 12:21:59 +00:00
Gerrit Code Review
686ba703c4
Update notes for submitted changes
...
* pySim-trace: Don't print argparse object at start-up
* pySim-trace: Fix --no-suppress-{select.status} command line arguments
* pySim-trace: Support SELECT with empty response body
2022-07-25 12:20:47 +00:00
Gerrit Code Review
7f612c8cb9
Update notes for submitted changes
...
* sim-rest-server: Report meaningful error message if PIN is blocked
2022-07-23 12:29:00 +00:00
Gerrit Code Review
ce6ef85873
Update notes for submitted changes
...
* sim-rest-server: Render error messages as JSON
2022-07-23 12:28:54 +00:00
Gerrit Code Review
2227906def
Update notes for submitted changes
...
* pySim-shell: Add a "version" command to print the pySim package version
2022-07-23 12:28:37 +00:00
Gerrit Code Review
0f531bf554
Update notes for submitted changes
...
* Introduce APDU/TPDU trace decoder
* sysmocom_sja2: Prevent KeyError/None exception on encode
2022-07-23 10:37:48 +00:00
Gerrit Code Review
1f4fa3956f
Update notes for submitted changes
...
* ts_31_102: Fix EF_EPSLOCI argument ordering
2022-07-22 10:40:01 +00:00
Gerrit Code Review
25a81d76f4
Update notes for submitted changes
...
* Never use Bytes without any 'Adapter'
* EF.AD: Avoid NotImplementedErrror regarding network names
* tlv: Make NotImplementedError more verbose
* README: Mention the manual can also be built from the source
2022-07-21 13:41:57 +00:00
Gerrit Code Review
8ede4d5e8c
Update notes for submitted changes
...
* pySim/ts_102_222.py: remove ununsed imports from 'cmd2'
2022-07-14 17:14:50 +00:00
Gerrit Code Review
dd7855dbd8
Update notes for submitted changes
...
* pySim-shell.py: remove unused imports of 'bg' from 'cmd2'
2022-07-14 17:14:41 +00:00
Gerrit Code Review
45ad922d5d
Update notes for submitted changes
...
* sim-rest-server: Set Content-Type: application/json on response
2022-07-08 20:24:07 +00:00
Gerrit Code Review
f91671e6b8
Update notes for submitted changes
...
* scripts/deactivate-5g.script: Also disable service 126
2022-07-08 20:23:59 +00:00
Gerrit Code Review
caf5ac6019
Update notes for submitted changes
...
* Py2 -> Py3: do not inherit classes from object
2022-07-07 09:53:49 +00:00
Gerrit Code Review
6721b8fc6a
Update notes for submitted changes
...
* cards: populate ADM1 key reference member
2022-06-21 10:08:51 +00:00
Gerrit Code Review
f4e7075d66
Update notes for submitted changes
...
* pySim-shell: set default ADM key reference
2022-06-14 19:57:39 +00:00
Gerrit Code Review
4f39ef4186
Update notes for submitted changes
...
* ts_102_221: The BTLV IEs FILE SIZE and TOTAL FILE SIZE have a min length
2022-06-11 06:04:39 +00:00
Gerrit Code Review
0d16d57f45
Update notes for submitted changes
...
* commands: add ".." notation to expand hexstrings
2022-06-10 14:26:05 +00:00
Gerrit Code Review
9e94e59795
Update notes for submitted changes
...
* pySim-shell: catch exceptions from walk() while exporting
2022-06-03 08:25:38 +00:00
Gerrit Code Review
60482720b9
Update notes for submitted changes
...
* pySim-shell: extend walk() so that we can also have an action of ADF or DF
2022-06-03 08:17:57 +00:00
Gerrit Code Review
0eefb58519
Update notes for submitted changes
...
* pySim-shell: match SW in apdu command
2022-06-03 08:17:00 +00:00
Gerrit Code Review
e8a4b16b19
Update notes for submitted changes
...
* pySim-shell: make APDU command available on the lowest level
2022-06-03 08:07:42 +00:00
Gerrit Code Review
a16658bb8f
Update notes for submitted changes
...
* ts_102_221: fix SFI generation
2022-06-02 08:43:54 +00:00
Gerrit Code Review
e94d4334f8
Update notes for submitted changes
...
* filesystem: also return the encoded FCP from probe_file
2022-06-02 08:42:27 +00:00
Gerrit Code Review
a576cb13c8
Update notes for submitted changes
...
* pySim-shell: more generic export options
2022-05-31 10:22:04 +00:00
Gerrit Code Review
ccd89f4848
Update notes for submitted changes
...
* pySim-shell: explain why we insist on a DF or ADF
2022-05-19 08:30:14 +00:00
Gerrit Code Review
b6218276cb
Update notes for submitted changes
...
* ts_102_222: Set number of records when creating linear files
2022-05-06 11:04:51 +00:00
Gerrit Code Review
6b5529b7e1
Update notes for submitted changes
...
* transport/pcsc: throw ReaderError with a message
2022-04-25 17:01:35 +00:00
Gerrit Code Review
70bd79511c
Update notes for submitted changes
...
* SimCard.reset(): fix SyntaxWarning: 'is' with a literal
2022-04-25 14:59:16 +00:00
Gerrit Code Review
4d1680d18e
Update notes for submitted changes
...
* ts_102_221: Add encode/write support of EF.ARR records
* utils: Add DataObjectSequence.encode_multi()
* utils: Fix bugs in DataObject encoders
2022-04-05 13:00:19 +00:00
Gerrit Code Review
cbbe297eeb
Update notes for submitted changes
...
* ts_31_103: Correct file-id of EF.DOMAIN in ADF.ISIM
2022-03-27 11:47:59 +00:00
Gerrit Code Review
adeec2345d
Update notes for submitted changes
...
* ts_31_102: Avoid pylint false positive
2022-03-27 10:43:27 +00:00
Gerrit Code Review
54cb71cf11
Update notes for submitted changes
...
* pySim-shell: Add 'decode_hex' command for transparent + linear EF
2022-03-01 16:48:22 +00:00
Gerrit Code Review
c924a9f405
Update notes for submitted changes
...
* Initial support for GlobalPlatform
2022-03-01 16:32:15 +00:00
Gerrit Code Review
fa65297e5d
Update notes for submitted changes
...
* ts_31_102: Further decode TAI in EF.OPL5G
* ts_31_102: Further decode LAI in EF_LOCI
* ts_51_011: Better decode of EF_OPL LAI
* ts_51_011: Properly decode EF.OPL
* ts_31_102: Fix decoding of UServiceTable
2022-02-25 18:19:00 +00:00
Gerrit Code Review
affa3fd7ef
Update notes for submitted changes
...
* ts_102_221: Fix decoding the 'num_of_rec' field
* ts_102_221: properly decode short file identifier
2022-02-25 12:41:47 +00:00
Gerrit Code Review
b21262b796
Update notes for submitted changes
...
* add scripts/deactivate-ims.script to deactivate IMS related services
2022-02-21 09:05:42 +00:00
Gerrit Code Review
4bb9f2f07b
Update notes for submitted changes
...
* Add scripts/deacivate-5g.script
* doc: Improve documentation in various places
* docs: Document missing 'status' command in 7816 section
* shell: Proper argparser (for help + manual) activate_file
* pySim-shell: export: Add FCP template to export
* docs/legcay.txt: Point to pySim-shell as replacement
* pySim-shell: support TS 102 222 administrative commands
* ts_102_221: Implement File Descriptor using construct
2022-02-18 11:56:45 +00:00
Gerrit Code Review
dc5f7df482
Update notes for submitted changes
...
* pySim-shell: Allow selecting of deep paths like DF.GSM/EF.IMSI
* ts_31_103: TLV definitions for IMS, XCAP and MudMid configuration
* ts_51_011: EF_CMI: Decoder the alpha_id string
* ts_51_011: Convert EF_ADN and EF_ACC to Construct
* ts_51_011: Proper decode of EF.SMSP
* Improve IST/UST check documentation (for the user manual)
* ust_service_check: proper treatment of files in sub-directories
* ts_31_102: service annotations for DF.{5GS,WLAN,HNB}
* ts_31_102: Use perror() instead of poutput() for errors
* ts_31_102: Add more EF.UST checks to 'ust_service_check' command
* filesystem: Fix CardMF.get_app_names()
* Split EF.UST handling from EF.IST and EF.SST
* ts_31_102: Add "ust_service_check" command.
2022-02-17 11:41:29 +00:00
Gerrit Code Review
c891f8ef37
Update notes for submitted changes
...
* README.md: Remove old usage examples, refer to user manual instead
2022-02-15 14:46:05 +00:00
Gerrit Code Review
4d9e15fc9a
Update notes for submitted changes
...
* commands: Add method to select parent DF ("cd ..")
* cosmetic: Remove extraneous empty lines between spec-section-comment and class
* USIM + ISIM: Specify the services associated with each file
* filesystem: Maintain a 'service' attribute for all files on a card
* pySim-shell: introduce 'apdu' command for sending raw APDU to card
* pySim-shell: export: allow export as JSON instead of hex
2022-02-14 18:34:28 +00:00