×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    SIM access from J2ME (deploy SIM application)

    Is it possible to use an J2ME application which is located in the mobile phone to access the SIM card? I have a program which is developed with SIM Application Toolkit and want deploy it on the SIM. The J2ME application should be the installer to deploy the SIM application.

    I have heard that only network providers have control about deploying SIM applications. (They can use OTA). Another way could be to use a SIM card-writer.

    Is there a way to deploy SIM applications without help of network provider or additional hardware?

    scaram

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: SIM access from J2ME (deploy SIM application)

    If the phone supports JSR-177 (SATSA) and APDU package of that, then yes.

    Although there are a number of security and access control hurdles which needs to be solved. First of all your MIDlet needs to be signed. And as you seem to want to use a Sim Application Toolkit app, you need to have your MIDlet signed to operator domain.
    Then the SIM card needs to have all command APDUs (which you want to send to the SIM card) listed in its access control list.

    So good relations to the SIM card provider is needed.

    Hartti

  3. #3
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    133

    Re: SIM access from J2ME (deploy SIM application)

    Is there a dependency/limitations/or difference on the type of sim card you are developing for?

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: SIM access from J2ME (deploy SIM application)

    What do you mean? Accessing the SAT using SATSA API? That requires operator signing. And also all of the command APDUs which need to be sent to the SAT needs to be pre-listed in the Access Control Lists on the SIM card.

    But I might have misunderstood your question....

    Hartti

  5. #5
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    133

    Re: SIM access from J2ME (deploy SIM application)

    Oh i see..

    um, tlaking about sim cards, are there different versions or types of sim cards?

  6. #6
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: SIM access from J2ME (deploy SIM application)

    Yes there are differences in SIM cards. I am no expert on that, but there are cards with different amount of memory. Also most of the SIM cards are Java Cards, but apparently not all of them (learned this from a colleague from Sun).

    Hartti

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: SIM access from J2ME (deploy SIM application)

    SIM Application Toolkits and SIM cards were invented before Sun invented the JavaCard stuff and all SIM card manufacturers (at least not for all of their cards) have apparently not licenses JavaCard technology from Sun (i.e., Sun does not have a SIM card monopoly).

  8. #8
    Registered User
    Join Date
    Oct 2007
    Posts
    7

    Re: SIM access from J2ME (deploy SIM application)

    Is there any way to read the access control list from the SIM, or do you have to get it from the provider?

  9. #9
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: SIM access from J2ME (deploy SIM application)

    I do not know of any method of reading the ACL from the SIM. Contact the operator in question (although I guess it might be hard to find the right person from the operator to answer that question...)

    Hartti

  10. #10
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Re: SIM access from J2ME (deploy SIM application)

    The ACL (if set) should be accessible without any special authorization, but not from SATSA, you must do it from a card reader.
    If there is a PKCS-15 application in the SIM, there may also be an ACL.
    Select the PKCS-15 application.
    Read the file 0x5031.
    And read any file reference tagged as 0xA7.
    In those files there may be a reference to Access Control Index Files.

    Take into account that all these files are DER-encoded.

  11. #11
    Registered User
    Join Date
    Dec 2007
    Posts
    1

    Re: SIM access from J2ME (deploy SIM application)

    dpatino
    Thnx for the detailed explanation

  12. #12
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Re: SIM access from J2ME (deploy SIM application)

    Quote Originally Posted by hartti View Post
    If the phone supports JSR-177 (SATSA) and APDU package of that, then yes.

    Although there are a number of security and access control hurdles which needs to be solved. First of all your MIDlet needs to be signed. And as you seem to want to use a Sim Application Toolkit app, you need to have your MIDlet signed to operator domain.
    Then the SIM card needs to have all command APDUs (which you want to send to the SIM card) listed in its access control list.

    So good relations to the SIM card provider is needed.

    Hartti
    Hartti, considering that the Midlet is being developed in a Wireless ToolKit simulator, what shall be the name of security element (SE) if I want to use SATSA to communicate with Sim Application Toolkit? Because SATSA requires a security element identifier for any communication with smart card application.

Similar Threads

  1. How to get information about available 802.11 access points in the J2ME application?
    By wzab in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-03-13, 02:00
  2. How to access the Phone Number from the J2ME Application
    By nuwan14d in forum Mobile Java General
    Replies: 1
    Last Post: 2003-09-04, 07:19
  3. Replies: 0
    Last Post: 2003-09-03, 12:18
  4. IrDA access through J2ME application
    By in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-04-13, 02:21
  5. IrDA access through J2ME application
    By in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-04-13, 02:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •