Commit Graph
100 Commits
Author SHA1 Message Date
Gerrit Code Review 13354d49f4 Update notes for submitted changes
* pySim-shell: Do not use self.lchan.scc when sending raw APDUs.
2023-11-29 15:30:10 +00:00
Gerrit Code Review 3093da4835 Update notes for submitted changes
* pySim-shell: refuse to execute a startup script on initialization errors
* app: do not catch exceptions in init_card
2023-11-28 15:42:06 +00:00
Gerrit Code Review b5275d55d5 Update notes for submitted changes
* ts_31_102: correct name of EF_ePDGId
2023-11-15 21:28:55 +00:00
Gerrit Code Review 7b8c574fdc Update notes for submitted changes
* runtime: fix tracking of selected_adf
2023-11-09 14:43:08 +00:00
Gerrit Code Review 50d257d60d Update notes for submitted changes
* pySim-shell: Move init_card() function to new pySim.app module
2023-11-09 12:36:47 +00:00
Gerrit Code Review 281a945c6e Update notes for submitted changes
* transport: Log it explicitly if user doesn't specify a reader
* Use construct 'Flag' instead of 'Bit' for type descriptions
2023-11-04 15:55:59 +00:00
Gerrit Code Review f104b72555 Update notes for submitted changes
* sysmocom_sja2: Add some de/encode test vectors
* pySim-shell: Reject any non-decimal PIN values
* pySim-shell: permit string with spaces for 'echo' command
* pySim-shell: Validate that argument to 'apdu' command is proper hexstr
* pySim-shell: Improved argument validation for verify_adm argument
2023-11-03 07:29:33 +00:00
Gerrit Code Review 76102b1a7d Update notes for submitted changes
* pySim-shell: Use argparser for verify_adm to support --help
* pySim-shell: Add copyright statement and link to online manual to banner
* docs: shell: Various documentation updates/extensions
* docs: shell: update output in examples
* docs: Fix docstring syntax to avoid warnings
* docs: shell: Re-order the command sections/classes
2023-11-02 23:43:05 +00:00
Gerrit Code Review fafd48fe82 Update notes for submitted changes
* docs: shell: link to cmd2 documentation
* docs: shell: By now we have encoders/decoders for most files
* docs: shell: Clarify various different card support
2023-11-02 21:45:02 +00:00
Gerrit Code Review c5578e136c Update notes for submitted changes
* filesystem: fix method build_select_path_to
2023-11-01 14:31:01 +00:00
Gerrit Code Review 5f6cd4f9c3 Update notes for submitted changes
* runtime: cosmetic: fix formatting of comment
2023-11-01 14:30:42 +00:00
Gerrit Code Review f5c9056c60 Update notes for submitted changes
* transport: print reader device/number on init
2023-10-26 15:17:07 +00:00
Gerrit Code Review 493c1e4ed3 Update notes for submitted changes
* euicc: add some first IoT eUICC commands (GSMA SGP.32)
* euicc: Add get_profiles_info command
* Initial support for eUICC
2023-10-26 15:16:31 +00:00
Gerrit Code Review bd285cafbe Update notes for submitted changes
* transport: move argument parser setup into concrete classes
* transport: move init message into concrete classes
2023-10-24 19:28:34 +00:00
Gerrit Code Review 8a9fe64ec6 Update notes for submitted changes
* utils: Fix bertlv_encode_tag() for multi-byte tags
* pySim-shell: Include current logical channel in prompt
* pySim-shell: Add 'switch_channel' command
2023-10-24 16:42:41 +00:00
Gerrit Code Review 0c6192e02b Update notes for submitted changes
* prevent SimCardCommands.select_adf_by_aid bypassing lchan
* pySim-shell: Create + use per-RuntimeLchan SimCardCommands
* commands.py: Add support for multiple logical channels.
2023-10-24 13:26:55 +00:00
Gerrit Code Review 0acc00ee64 Update notes for submitted changes
* docs: Fix command reference for 'apdu' command
2023-10-24 09:06:19 +00:00
Gerrit Code Review 1ed01927b7 Update notes for submitted changes
* RuntimeState: Add type annotation for 'card' argument
* pySim-shell: Create/delete RuntimeLchan objects on open/close of channel
* cards.py: Fix type annotation
2023-10-22 08:38:56 +00:00
Gerrit Code Review 3008f8963a Update notes for submitted changes
* pySim-shell: do not fail when EF.ICCID does not exist
2023-10-20 20:51:24 +00:00
Gerrit Code Review bdfd1a319b Update notes for submitted changes
* Use keyword argument for file description argument
* ts_31_102: Fix initialization of file size
2023-10-20 20:48:01 +00:00
Gerrit Code Review f1bc700b0c Update notes for submitted changes
* transport: do not catch exceptions in init_reader
2023-10-18 15:06:51 +00:00
Gerrit Code Review 1c7fccec73 Update notes for submitted changes
* transport: add return type annotation to method __str__
2023-10-16 12:18:16 +00:00
Gerrit Code Review c6ac5f15ab Update notes for submitted changes
* pySim-shell: print device info in case an exception occurs
2023-10-10 09:58:25 +00:00
Gerrit Code Review 11185f4a0b Update notes for submitted changes
* pySim-shell: do not pass failed card object to PysimApp
2023-10-10 09:43:13 +00:00
Gerrit Code Review ed99052956 Update notes for submitted changes
* pySim-prog, pySim-shell do not use global variables
2023-10-10 09:25:36 +00:00
Gerrit Code Review ae64b5bb50 Update notes for submitted changes
* filesystem: add attribute "leftpad" to class LinFixedEF
* commands: make method verify_binary and verify_record private
2023-09-12 09:21:50 +00:00
Gerrit Code Review 28d18a3a62 Update notes for submitted changes
* pySim-shell: fix commandline option -a (verify_adm)
2023-09-06 14:07:41 +00:00
Gerrit Code Review 1abcb7e7c5 Update notes for submitted changes
* sim-reset-server: fix error printing sw_match_error
2023-09-06 11:59:56 +00:00
Gerrit Code Review 8cce507320 Update notes for submitted changes
* sim-rest-server: fix REST method info
2023-08-29 10:38:48 +00:00
Gerrit Code Review 466ebb6678 Update notes for submitted changes
* sim-rest-server: use UiccCardBase instead of UsimCard
* sim-rest-server: do not select ADF.USIM in connect_to_card
* cards: get rid of method read_iccid
2023-08-21 18:36:10 +00:00
Gerrit Code Review 08d7464361 Update notes for submitted changes
* README.md: sort dependencies, document smpp.pdu
* setup.py: fix package name
2023-08-17 15:00:52 +00:00
Gerrit Code Review 647936a48d Update notes for submitted changes
* pySim-shell: check presence of runtime state before accessing it
2023-08-11 09:41:22 +00:00
Gerrit Code Review 9d8103d11b Update notes for submitted changes
* pySim-prog_test: fix typo
* pySim-trace_test: verify output of pySim-trace.py
* pySim-trace_test: fix shebang line
2023-08-02 19:54:47 +00:00
Gerrit Code Review a3a6ebc9c0 Update notes for submitted changes
* README.md: Add note about pySim-trace.py dependencies
* pysim-test: rename pysim-test.sh to pySim-prog_test.sh
* tests: add test script for pySim-trace
2023-07-29 08:56:07 +00:00
Gerrit Code Review cf92bbd3a4 Update notes for submitted changes
* Fix the remaining functions using the broken Card.update_ust() call
* ARA-M: fix encoding of the PkgRefDO when using aram_store_ref_ar_do
2023-07-29 06:23:15 +00:00
Gerrit Code Review 5120750fbf Update notes for submitted changes
* utils.py: remove superfluous import from itself
2023-07-29 06:22:11 +00:00
Gerrit Code Review 8128e1bc19 Update notes for submitted changes
* Reimplement ust_service_activate and ust_service_deactivate for USIM/EF.UST
2023-07-28 15:34:40 +00:00
Gerrit Code Review c109673ad3 Update notes for submitted changes
* pySim-trace: catch StopIteration exception on trace file end
2023-07-28 09:07:37 +00:00
Gerrit Code Review 059a652339 Update notes for submitted changes
* pySim-trace: remove stray debug print
2023-07-28 08:20:14 +00:00
Gerrit Code Review a3e2f151cb Update notes for submitted changes
* pySim-trace: add commandline option --show-raw-apdu
2023-07-28 08:12:43 +00:00
Gerrit Code Review 18a6141247 Update notes for submitted changes
* construct: add adapter Utf8Adapter to safely interpret utf8 text
2023-07-27 06:52:27 +00:00
Gerrit Code Review 41a94a2e27 Update notes for submitted changes
* Fixed `mnc` encoding
2023-07-21 11:09:49 +00:00
Gerrit Code Review f55c93648c Update notes for submitted changes
* runtime: fix lchan deletion in method reset
2023-07-21 10:48:12 +00:00
Gerrit Code Review b4aa9a9a54 Update notes for submitted changes
* apdu/ts_102_221: extract channel number from dict before calling del_lchan
2023-07-20 16:19:23 +00:00
Gerrit Code Review 495dde15e5 Update notes for submitted changes
* pySim-shell: fix verify_adm command
* cards: fix swapped PIN mapping number
2023-07-20 15:44:46 +00:00
Gerrit Code Review e5b5530fd4 Update notes for submitted changes
* pySim-shell: Add a mode where a pySim-shell cmd can be passed by shell
* move Runtime{State,Lchan} from pySim.filesystem to new pySim.runtime
* pySim/filesystem.py: remove unused class FileData
* pySim-shell: Iterate over CardApplication sub-classes
* ts_102_221: Remove CardProfileUICCSIM
* Introduce concept of CardProfileAddon
2023-07-18 06:29:35 +00:00
Gerrit Code Review 73730a4bb7 Update notes for submitted changes
* cdma_ruim: Fix unit tests and actually enable them
* cards: all UICC should use sel_ctrl="0400" and SIM "0000"
* cards: cosmetic rename, argument name should be scc, not ssc
* cards: All derived of SimCardBase use CLA=A0; all UiccCardBase use CLA=00
* ts_31_102, ts_31_103: Move legacy-only code to pySim.legacy
* create pySim.legacy.ts_51_011.py and move legacy code there
2023-07-18 06:29:08 +00:00
Gerrit Code Review 7b6333a45d Update notes for submitted changes
* pySim/cards: Add type annotations
* split pySim/legacy/{cards,utils} from pySim/{cards,utils}
2023-07-17 17:48:32 +00:00
Gerrit Code Review 922a051dc2 Update notes for submitted changes
* pySim/cards: Split legacy classes away from core SIM + UICC
2023-07-17 17:48:12 +00:00
Gerrit Code Review 10ed72265e Update notes for submitted changes
* filesystem: Support selecting MF from MF
2023-07-12 18:53:39 +00:00
Gerrit Code Review 0a5fd246c6 Update notes for submitted changes
* pySim-prog: Also accept 18-digit ICCIDs
* GlobalPlatform ADF.SD: Add command line reference + error message
* ts_102_222: Remove unneeded imports
* pySim/transport: Use newly-defined ResTuple type
* pySim/commands.py: Better type annotations
* pySim/transport: More type annotations
* pySim/utils: define 'Hexstr' using NewType
* pySim/tlv.py: Fix TLV_IE_Collection from_dict with nested collections
2023-07-12 16:13:22 +00:00
Gerrit Code Review 173bed21c5 Update notes for submitted changes
* pySim/tlv.py: Don't create an exception from within raise
* TLV_IE_Collection: use snake-style names during from_dict()
2023-07-11 09:11:55 +00:00
Gerrit Code Review 94ceb4fa80 Update notes for submitted changes
* pySim-shell: Unregister profile commands during equip
2023-07-09 08:12:28 +00:00
Gerrit Code Review 9bd60018da Update notes for submitted changes
* pySim-shell: Support USIM specific methods/commands on unknown UICC
2023-07-09 08:11:27 +00:00
Gerrit Code Review c3fb8715ad Update notes for submitted changes
* ts_31_103: enable encode tests for files containing single TLV IE
* tlv: Fix IE.from_dict() method
* cosmetic: Implement cmd2.Settable backwards-compat via wrapper class
* work-around what appears to be a pylint bug
2023-06-27 08:37:35 +00:00
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