Commit Graph

60 Commits

Author SHA1 Message Date
Andrzej Zaborowski 1542bf0c59 simutil: SIM applications directory decoding utils 2011-01-20 11:15:34 -06:00
Denis Kenzior 918d6354cc simutil: Sort sim_fileid in numerical order 2011-01-18 09:49:22 -06:00
Jessica Nilsson cf96d24884 simutil: M9, M11, Minor style fixes and indentation 2011-01-18 09:45:30 -06:00
Aki Niemi 52818e3951 simutil: Style fixes, M12 2011-01-18 14:02:46 +02:00
Denis Kenzior 44a8b282ca simutil: fixup style according to M11 2010-12-08 09:44:39 -06:00
Jeevaka Badrappan 85cbc6926e simutil: Add EFcfis and EFcphs-cff file Ids 2010-11-27 11:49:25 -06:00
Jeevaka Badrappan 06839da715 simutil: add Efbdn fileid to sim_fileid enum 2010-10-25 10:39:09 -05:00
Denis Kenzior 94cf7c3dd6 simutil: Remove unneeded enum 2010-10-15 02:14:45 -05:00
Petteri Tikander 1f2140dabe simutil: response-handler returns now also file-status 2010-10-15 02:01:34 -05:00
Petteri Tikander 4d2eb64a71 simutil: add ID of EFadn 2010-10-14 05:41:07 -05:00
Denis Kenzior 2a2fd1d036 simutil: Fix minor whitespace corruption 2010-08-31 13:08:31 -05:00
Yang Gu d43b2c0a61 sim: Read EFsst 2010-08-31 13:07:54 -05:00
Kristen Carlson Accardi 782157ce57 simutil: add fileid for EFimg 2010-08-25 13:38:13 -05:00
Yang Gu c679babdc5 sim: Read EFust and EFest 2010-08-23 14:29:21 -05:00
Denis Kenzior b0cf35c324 simutil: Add sim_encode_bcd_number 2010-05-26 09:59:14 -05:00
Denis Kenzior 48a4f59bdd simutil: add sim_extract_bcd_number 2010-05-26 09:50:51 -05:00
Andrzej Zaborowski af2004ece1 simutil: Add MMC MNC pair encoding utility 2010-05-25 16:52:54 -05:00
Denis Kenzior 83240f1389 simutil: simplify ctlv logic 2010-05-25 16:52:51 -05:00
Andrzej Zaborowski 1c3060026e simutil: Add utilities for encoding BTLV and CTLV 2010-05-25 16:52:50 -05:00
Daniel Wagner b338033307 Read EF_ICCID property of SIM
Tested with phonesim.
2010-05-19 23:41:03 -05:00
Yang Gu 353d955dea simutil: Add comprehension tlv copy
Can be used to save the state of the current iterator and 'peek' ahead.
2010-05-13 11:02:52 -05:00
Yang Gu a13db81229 Make the function to parse mcc and mnc public 2010-03-25 11:36:11 -05:00
Denis Kenzior 19a20e4ccd Add COMPREHENSION TLV iterator utilities 2010-02-23 12:03:04 -06:00
Denis Kenzior d98be70fa9 Add Simple TLV iterator utilities 2010-02-23 12:03:03 -06:00
Denis Kenzior 077cfe284e Move from header to implementation 2010-02-23 12:03:03 -06:00
Denis Kenzior 0d163e6295 Add BER-TLV iterator utilities 2010-02-23 12:03:00 -06:00
Andrzej Zaborowski 96a93b5829 If EF-MWIS is not available use the CPHS version. 2010-01-12 11:12:41 -06:00
Andrzej Zaborowski f97d203392 Use CPHS version of mailbox numbers on SIM if 3GPP version not available.
Otherwise just try to keep the CPHS version of the files in sync.
2010-01-12 11:12:01 -06:00
Andrzej Zaborowski 637ca18af4 Retrieve CPHS phase (if any) from SIM. 2010-01-12 10:35:51 -06:00
Andrzej Zaborowski b4c3e1c1cc Index SIM cache by phase also. 2010-01-06 13:14:20 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 6ef9a4b2dd Fix: Make const correct 2009-10-02 19:25:44 -05:00
Denis Kenzior c8150fc120 Use small caps for 2G/3G functions 2009-10-02 18:25:56 -05:00
Denis Kenzior 8bf64ef07d Add utility to parse 3G get response data
Based on ETSI 102.221
2009-10-02 18:25:56 -05:00
Denis Kenzior c9a2eedc08 Add utility to parse 2G GET_RESPONSE data
This format is described in 51.011 and the older 11.11.  It is not
supported by newer 3G UICC based devices & sim card combinations
2009-10-02 18:25:56 -05:00
Denis Kenzior c8e515fef8 Add utility to lookup files in EF db 2009-10-02 18:25:56 -05:00
Denis Kenzior 6d9ec89259 Add basic elementary file database 2009-10-02 18:25:55 -05:00
Denis Kenzior 9f27be58bc Move some stuff around 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski ee02b14836 Do PIN authentication
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Andrzej Zaborowski 623c23c12f Present list of preferred languages on SimManager interfce.
We try to detect the old (2G / 2G+, 51.011) EFlp format and deal
with the file contents accordingly.
2009-09-17 11:42:49 -05:00
Denis Kenzior 971ef1c305 Add reading of various CBS related EFs
- EFcbmi - Cell Broadcast Identifiers
- EFcbmir - Cell Broadcast Identifier Ranges
- EFcbmid - Cell Broadcast Identifiers for Data Download
2009-09-16 17:09:58 -05:00
Andrzej Zaborowski 7ecebc9a31 Expose service dialling numbers stored on SIM through SimManager. 2009-08-31 15:12:37 -05:00
Andrzej Zaborowski f21930f04e Decode and encode alpha-identifier fields
Add identifier argument to sim_adn_parse and sim_adn_build.

Also fix the number length passed to extract_bcd_number in sim_adn_parse.
2009-08-31 15:12:37 -05:00
Andrzej Zaborowski 6552bc668d Read EFad and expose the IMSI MNC length (2-3) 2009-08-31 15:12:37 -05:00
Yang Gu 5a0d8709af Support emergency numbers 2009-08-17 15:51:40 -05:00
Andrzej Zaborowski e8552dde07 Add utility for building ADN records
Used to populate MSISDN, MBDN, etc records on the SIM
2009-08-05 13:25:31 -05:00
Andrzej Zaborowski 203ed17cec Add a MessageWaiting interface to track message waiting indications.
The state of the indications is kept in memory and written back to
the SIM after any changes.
2009-08-04 15:08:11 -05:00
Andrzej Zaborowski ebf6fca07a Clean up in sim.c.
Remove unused variables and fields.
Move EFadn format parsing to a common function because various files use
this same format.
2009-07-31 09:55:46 -05:00
Denis Kenzior 555e2e689d Refactor SIM file access code
SIM File Access conditions would be reported similarly between various
stacks, so it seems like the core logic of figuring out the access
conditions belongs up in the daemon.

This also fixes various problems, including:
  - access conditions read from bytes 10-12, instead of 9-11.
  - read/update, invalidate/rehabilitate and increase conditions
    read from the wrong bits (0-3 instead of 4-7 and vice versa)
2009-07-27 17:09:56 -05:00
Andrzej Zaborowski da0bdb1cbf Clean-up in sim.c. 2009-07-17 23:48:29 -05:00