Commit Graph

86 Commits

Author SHA1 Message Date
Gerrit Code Review
5810efafee Update notes for submitted changes
* Add new line
* Update UST table as per the latest 3GPP TS 31.102 specification
* sysmoISIM-SJA2: Add support for programming Home ePDG Identifier
2020-09-18 09:29:02 +00:00
Gerrit Code Review
3617f51f4e Update notes for submitted changes
* Remove redundant function read_aid()
* Use the function select_adf_by_aid for selecting an AID
* cards.py: Populate AIDs present in SysmoISIMSJA2 UICC
2020-09-15 20:39:42 +00:00
Gerrit Code Review
38c3790cc1 Update notes for submitted changes
* sysmo-isim-sja2: fix test expectations
2020-09-15 13:46:10 +00:00
Gerrit Code Review
a73e2e77e6 Update notes for submitted changes
* fix 'TabError: inconsistent use of tabs and spaces in indentation'
2020-08-31 15:02:49 +00:00
Gerrit Code Review
f317e8ff6c Update notes for submitted changes
* Add support for ADF_USIM/EF_EHPLMN
2020-08-28 08:55:32 +00:00
Gerrit Code Review
bc0f9a28b3 Update notes for submitted changes
* utils.py: Add helper method to encode ePDG Identifier
2020-07-14 10:33:14 +00:00
Gerrit Code Review
1690207773 Update notes for submitted changes
* pySim-read.py: Enable parsing of Home ePDG Identifier in USIM
* utils.py: Handle parsing of ePDGId TLV with zero length
2020-06-25 20:10:29 +00:00
Gerrit Code Review
c26bed1519 Update notes for submitted changes
* utils.py add LOCI EFs decode functions
2020-06-13 16:25:27 +00:00
Gerrit Code Review
5bc627f200 Update notes for submitted changes
* commands.py: fix read_binary for lengths > 256
2020-06-04 22:13:47 +00:00
Gerrit Code Review
37e1157871 Update notes for submitted changes
* ts_31_102.py: add EF_ADF_map
2020-06-03 06:30:37 +00:00
Gerrit Code Review
35098a39f9 Update notes for submitted changes
* Implement Generic SIM Access interface as per 3GPP TS 27.007
2020-06-03 06:25:44 +00:00
Gerrit Code Review
77ca85998e Update notes for submitted changes
* utils: fix list comprehension in h2s(): ignore upper case padding
2020-05-28 10:03:04 +00:00
Gerrit Code Review
b4ad20e7b7 Update notes for submitted changes
* cards: remove empty erase() methods.
2020-05-23 11:50:14 +00:00
Gerrit Code Review
3db09f4d1e Update notes for submitted changes
* cards: add methods to help erasing of file contents
* utils: do not crash when all bytes of EF.IMSI are 0xFF
2020-05-22 13:11:51 +00:00
Gerrit Code Review
63b18e71f4 Update notes for submitted changes
* commands: add features to verify data written to files
* commands: add method to determine size of a non record oriented file
* pysim-prog: move ADM sanitation to utils.py
2020-05-17 18:55:29 +00:00
Gerrit Code Review
6baf039f09 Update notes for submitted changes
* cards: reset uninitalized EF.AD
2020-05-17 07:34:14 +00:00
Gerrit Code Review
c1c51f14dc Update notes for submitted changes
* Treat MCC and MNC as strings, not integers
2020-05-13 09:52:54 +00:00
Gerrit Code Review
939343355c Update notes for submitted changes
* pySim-prog, pySim-read, do not echo reader id
2020-05-12 18:11:38 +00:00
Gerrit Code Review
f56b90b79e Update notes for submitted changes
* cards: remove len calculation
2020-05-12 18:06:24 +00:00
Gerrit Code Review
2200800f6f Update notes for submitted changes
* Add option to specify MNC length in non-batch programming scnearios
2020-05-12 07:10:53 +00:00
Gerrit Code Review
a40238067e Update notes for submitted changes
* utils.py: Add helper method to parse ePDG Identifier from hex string
* Introduce function for converting bytes list in (hex or int) to string
* Import TLV parsing related function from https://github.com/mitshell/card
2020-05-11 17:25:33 +00:00
Gerrit Code Review
1b8ba263c0 Update notes for submitted changes
* Fix writing of EF.HPLMNwAcT on sysmoISIM-SJA2
2020-05-09 15:51:05 +00:00
Gerrit Code Review
2eef7d5232 Update notes for submitted changes
* Enable parsing of ISIM Service table (IST)
* Extend parsing and printing of Service table to ISIM
* Define mapping between ISIM Service Number and its description
* Enable parsing of USIM Service table (UST)
* Remove redundant functions
* Use helper method to print available service in EF.SST
* utils.py: Add helper method to parse and print Service Table
2020-04-29 09:10:55 +00:00
Gerrit Code Review
b4ec9bfc33 Update notes for submitted changes
* pySim-read.py: Add ability to read Cards with correct CLA, P1 and P2 bytes
2020-04-27 10:17:56 +00:00
Gerrit Code Review
a7dd74743b Update notes for submitted changes
* cards.py: Added method to select ADF by its full AID
* Populate AIDs present on the UICC
2020-04-19 08:25:39 +00:00
Gerrit Code Review
876d114992 Update notes for submitted changes
* Define mapping between USIM Service Number and its description
* Add ability to parse SIM Service Table (EF.SST)
2020-04-17 10:13:01 +00:00
Gerrit Code Review
448fadd45f Update notes for submitted changes
* utils.py: Add helper method to parse Service Table
* Define mapping between SIM Service Number and its description
* Use the generic method read_binary of card class to read AD
* Move parsing of MSISDN to generic Card class
* Use the generic method read_binary of card class to read ACC
* Move parsing of HPLMNAcT to generic Card class
* Move parsing of OPLMNwAcT to generic Card class
* Move parsing of PLMNwAcT to generic Card class
2020-04-01 09:40:24 +00:00
Gerrit Code Review
88a941b856 Update notes for submitted changes
* Use the generic method read_binary of card class to read PLMNsel
* pySim-read.py: Use the method declared in cards.py to read SPN
* Use the generic method read_record of card class to read SMSP
* Use read_binary function of card class to read GID2 and reduce code duplication
* cards.py: Add generic function to read EF record in card class
* cards.py: Add generic function to read EF binary to card class
* Move parsing of GID2 to generic Card class
2020-04-01 08:54:52 +00:00
Gerrit Code Review
263b1f6201 Update notes for submitted changes
* Move parsing of GID1 to generic Card class
* pySim-read.py: Use the method declared in cards.py to read IMSI
* pySim-read.py: Use the method declared in cards.py to read ICCID
2020-03-28 17:58:16 +00:00
Gerrit Code Review
95e1b9bb8a Update notes for submitted changes
* pySim-read.py: Added a common card detection function for both pySim-prog.py and pySim-read.py
* cards.py: Added parsing of all the AIDs in the UICC
2020-03-27 17:22:56 +00:00
Gerrit Code Review
eede4032bc Update notes for submitted changes
* pySim-read.py: support for reading GID2 from SIM
* pySim-read.py: support for reading GID1 from SIM
2020-03-13 07:44:45 +00:00
Gerrit Code Review
dcadff5976 Update notes for submitted changes
* sysmoISIM-SJA2: Add suport for USIM-only and ISIM-only cards
* sysmiISIM-SJA2: add support for new card model / os version
2020-03-11 15:08:16 +00:00
Gerrit Code Review
139b874f8b Update notes for submitted changes
* cards: Python 3 fix: use the floor division operator //
* commands: Python 3 fix: properly distinguish str and list
* transport/pcsc: explicitly specify T0 protocol
* transport/pcsc: cosmetic: reuse the existing code of PcscSimLink
* utils: fix dec_msisdn(): properly detect international numbers
2020-03-01 19:22:04 +00:00
Gerrit Code Review
211029e2b8 Update notes for submitted changes
* Py2 -> Py3: use the floor division operator // where possible
* pySim-read.py: do not import json, it is not needed
2020-02-15 19:11:50 +00:00
Gerrit Code Review
400db17347 Update notes for submitted changes
* pySim-prog.py: add support for MSISDN programming
* pySim-read.py: fix reading and parsing of EF.MSISDN
* Fix MCC and MCC representation in the output of pySim-read
* cards/sysmoUSIM-SJS1: support programming of EF.HPLMNwAcT
* cards/sysmoUSIM-SJS1: support programming of ACC bits
* cards: fix reading of EF.HPLMNwAcT in Card.update_hplmn_act()
* cards: cosmetic/indentation fix: use tabs, not spaces
* pySim-prog.py: add presence/length checks for user-provided SPN
* pySim-read.py: print meaningful message when SPN is not set
2020-02-15 19:11:35 +00:00
Gerrit Code Review
60d4c76a7d Update notes for submitted changes
* pySim-read.py: fix copy-paste: s/HPLMNAcT/PLMNsel/
* Fix compatibility with Python 3: print() is a function
* testdata/sysmoUSIM-SJS1.ok: make it match the actual EF.HPLMNAcT
2020-02-14 19:31:02 +00:00
Gerrit Code Review
70003bdf24 Update notes for submitted changes
* Fix file permission
* Added feature to program SPN into sysmoUSIM-SJS1 SIM cards
2020-01-31 14:57:30 +00:00
Gerrit Code Review
b881b96d8e Update notes for submitted changes
* Added feature to read Service Provider Name (SPN) from the SIM card
2020-01-21 12:54:58 +00:00
Gerrit Code Review
adb0f3e0f5 Update notes for submitted changes
* cards: Add support for sysmo-isim-sja2
2020-01-09 13:05:50 +00:00
Gerrit Code Review
ec91cc6c16 Update notes for submitted changes
* Fixup: Fix automated tests
2019-12-31 17:07:38 +00:00
Gerrit Code Review
8f0072d207 Update notes for submitted changes
* commands: fix __record_len()
2019-12-23 17:15:14 +00:00
Gerrit Code Review
4e2a5fa4dc Update notes for submitted changes
* Fix automated tests
2019-12-17 13:46:58 +00:00
Gerrit Code Review
759b8e95c9 Update notes for submitted changes
* Fairwaves-SIM: Add test data
2019-11-12 12:39:01 +00:00
Gerrit Code Review
3ac02c4f9f Update notes for submitted changes
* cards.py: do not use spaces in card names
2019-11-11 14:00:38 +00:00
Gerrit Code Review
206be3336a Update notes for submitted changes
* python3 conversion: Use python 2 and 3 compatible exceptions
2019-10-07 20:03:08 +00:00
Gerrit Code Review
05d9dd58e5 Update notes for submitted changes
* python3 conversion: fix tabs and spaces inconsistency
2019-09-28 12:44:30 +00:00
Gerrit Code Review
89671ac3dc Update notes for submitted changes
* pySim-prog: use functions to derive MCC/MNC from IMSI
* cards: use string representation for MNC/MCC
* pySim-prog: check if CSV file exists
* pySim-prog: use case insensitive CSV headers.
* pySim-prog.py: use more expressive error message on CSV read failure
2019-09-14 15:34:32 +00:00
Gerrit Code Review
793d1afc4c Update notes for submitted changes
* Add support for automatic card handling
2019-09-13 08:13:57 +00:00
Gerrit Code Review
60d6da5a20 Update notes for submitted changes
* pySim-prog: generate a pin_adm from pin_adm_hex also for CSV files
2019-09-12 08:23:45 +00:00
Gerrit Code Review
b16257d79d Update notes for submitted changes
* Add an option to read the iccid and batch-program the new card data
* pySim-prog: Add option for hex ADM keys
* pySim-prog: Use CSV format with headers
2019-09-04 18:50:41 +00:00