GithubHelp home page GithubHelp logo

herlesupreeth / coims_wiki Goto Github PK

View Code? Open in Web Editor NEW
76.0 11.0 24.0 12.83 MB

Wiki for overriding IMS settings to enable VoLTE/VoWiFi using Carrier Privileges in Android phones

License: BSD 2-Clause "Simplified" License

usim carrier-privileges volte sim-card vowifi android

coims_wiki's People

Contributors

herlesupreeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coims_wiki's Issues

Error: External authenticate failed: 0x6982 (Security status not satisfied)

When i try to enter the kic kid kik on the card i get the following error:

gp --key-enc DFF145A895A08A9836FCBAEBB2BEF4F0 --key-mac 5C60A8BF7FEBEDCA2754526B87760A54 --key-dek 2A69D3EE732E6D252359D43F066B66B3 -lvi --debug
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
SCardConnect("Gemalto USB Shell Token V2 00 00", T=*) -> T=0, 3B9F96801F878031E073FE211B674A4C753034054BA9
GlobalPlatformPro v20.04.14-0-geaee04c
Running on Linux 5.7.0-kali1-amd64 amd64, Java 1.8.0_212 by Oracle Corporation
A>> T=0 (4+0000) 00A40400 00
A<< (0018+2) (14ms) 6F108408A000000003000000A5049F6501FF 9000
A>> T=0 (4+0000) 80CA9F7F 00
A<< (0000+2) (3ms) 6A88
A>> T=0 (4+0000) 00CA9F7F 00
A<< (0000+2) (2ms) 6E00
[main] WARN pro.javacard.gp.GPData - GET DATA(CPLC) not supported
A>> T=0 (4+0000) 80CA0042 00
A<< (0005+2) (8ms) 4203000000 9000
IIN: 4203000000
A>> T=0 (4+0000) 80CA0045 00
A<< (0004+2) (7ms) 45020000 9000
CIN: 45020000
Card Data:
A>> T=0 (4+0000) 80CA0066 00
A<< (0051+2) (10ms) 6631732F06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215 9000
Tag 6: 1.2.840.114283.1
-> Global Platform card
Tag 60: 1.2.840.114283.2.2.1.1
-> GP Version: 2.1.1
Tag 63: 1.2.840.114283.3
Tag 64: 1.2.840.114283.4.2.21
-> GP SCP02 i=15
Card Capabilities:
A>> T=0 (4+0000) 80CA0067 00
A<< (0000+2) (3ms) 6A88
A>> T=0 (4+0000) 80CA00E0 00
A<< (0074+2) (12ms) E048C00401708010C00402708010C00403708010C00401018010C00402018010C00403018010C00401028010C00402028010C00403028010C00401038010C00402038010C00403038010 9000
Version: 112 (0x70) ID: 1 (0x01) type: DES3 length: 16
Version: 112 (0x70) ID: 2 (0x02) type: DES3 length: 16
Version: 112 (0x70) ID: 3 (0x03) type: DES3 length: 16
Version: 1 (0x01) ID: 1 (0x01) type: DES3 length: 16
Version: 1 (0x01) ID: 2 (0x02) type: DES3 length: 16
Version: 1 (0x01) ID: 3 (0x03) type: DES3 length: 16
Version: 2 (0x02) ID: 1 (0x01) type: DES3 length: 16
Version: 2 (0x02) ID: 2 (0x02) type: DES3 length: 16
Version: 2 (0x02) ID: 3 (0x03) type: DES3 length: 16
Version: 3 (0x03) ID: 1 (0x01) type: DES3 length: 16
Version: 3 (0x03) ID: 2 (0x02) type: DES3 length: 16
Version: 3 (0x03) ID: 3 (0x03) type: DES3 length: 16
[main] WARN pro.javacard.gp.PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[main] WARN pro.javacard.gp.PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[main] WARN pro.javacard.gp.PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[main] INFO pro.javacard.gp.GPSession - Using card master keys: ENC=DFF145A895A08A9836FCBAEBB2BEF4F0 (KCV: E0B747) MAC=5C60A8BF7FEBEDCA2754526B87760A54 (KCV: 5B97FA) DEK=2A69D3EE732E6D252359D43F066B66B3 (KCV: 9EFAE1) for null
A>> T=0 (4+0008) 80500000 08 D57C79D40C254684 00
A<< (0028+2) (40ms) 00000000000000000000700200008E43019EFACC0023E120C56AB68A 9000
[main] INFO pro.javacard.gp.GPSession - Diversified card keys: ENC=DFF145A895A08A9836FCBAEBB2BEF4F0 (KCV: E0B747) MAC=5C60A8BF7FEBEDCA2754526B87760A54 (KCV: 5B97FA) DEK=2A69D3EE732E6D252359D43F066B66B3 (KCV: 9EFAE1) for SCP02
[main] INFO pro.javacard.gp.GPSession - Session keys: ENC=4023A18CE9021BAC3FC128570E6A2EC0 MAC=F365B15115B515FBB4A881FE0B2ED91B RMAC=DFE14B80057CA67D50AF539A1FCB9CE0, card keys=ENC=DFF145A895A08A9836FCBAEBB2BEF4F0 (KCV: E0B747) MAC=5C60A8BF7FEBEDCA2754526B87760A54 (KCV: 5B97FA) DEK=2A69D3EE732E6D252359D43F066B66B3 (KCV: 9EFAE1) for SCP02
A>> T=0 (4+0016) 84820100 10 05CC76E9699F0266085FB9CB613E3E52
A<< (0000+2) (16ms) 6982
Error: External authenticate failed: 0x6982 (Security status not satisfied)

can you please help me about this situation?

Thank you kindly.

CoIMS app not functional in Samsung mobile.

Hi @herlesupreeth
Im trying to replicate the tutorial in open5gs (EPC + IMS) VoLTE Setup with Kamailio IMS and Open5GS i had issue regarding enabling VoLTE on an samsung mobile using CoIMS application,

Setup information:

  • Ubantu 18.04 (vm)
  • Open5gs + kamailio + SRSeNB
  • band 7
  • Samsung A52 5G
  • sysmoISIM-SJA2

Initially i had issues connecting UE's to EPC with APN 'IMS' then followed this tutorial to enable CoIMS on the sim using pySIM_tools while making changes on the mobile phone using CoIMS i had issues opening Samsung IMS settings option in the menu can you please suggest any other alternative to enable VoLTE.

WhatsApp.Video.2023-05-18.at.3.19.52.PM.mp4

trouble with sysmoUSIM-SJS1 4FF

sim@machine:/opt/CoIMS_Wiki$ gp --key-enc KIC1 --key-mac KID1 --key-dek KIK1 -lvi
GlobalPlatformPro 19.06.16-8-g9639eb9
Running on Linux 5.3.0-26-generic amd64, Java 11.0.6 by Ubuntu
Reader: OMNIKEY AG CardMan 3121 00 00
ATR: 3B9F96801FC78031A073BE21136743200718000001A5
More information about your card:
http://smartcard-atr.appspot.com/parse?ATR=3B9F96801FC78031A073BE21136743200718000001A5

[DEBUG] GPSession - Auto-detected ISD: A000000003000000
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
CPLC: ICFabricator=FFFF
ICType=FFFF
OperatingSystemID=FFFF
OperatingSystemReleaseDate=FFFF (invalid date format)
OperatingSystemReleaseLevel=FFFF
ICFabricationDate=FFFF (invalid date format)
ICSerialNumber=FFFFFFFF
ICBatchIdentifier=FFFF
ICModuleFabricator=FFFF
ICModulePackagingDate=FFFF (invalid date format)
ICCManufacturer=FFFF
ICEmbeddingDate=FFFF (invalid date format)
ICPrePersonalizer=FFFF
ICPrePersonalizationEquipmentDate=FFFF (invalid date format)
ICPrePersonalizationEquipmentID=FFFFFFFF
ICPersonalizer=FFFF
ICPersonalizationDate=FFFF (invalid date format)
ICPersonalizationEquipmentID=FFFFFFFF

IIN: 42020102
CIN: 45020506
Card Data:
Tag 6: 1.2.840.114283.1
-> Global Platform card
Tag 60: 1.2.840.114283.2.2.1.1
-> GP Version: 2.1.1
Tag 63: 1.2.840.114283.3
Tag 64: 1.2.840.114283.4.2.21
-> GP SCP02 i=15
Card Capabilities:
[DEBUG] GPData - GET DATA(Card Capabilities): N/A
Version: 1 (0x01) ID: 1 (0x01) type: DES3 length: 16
Version: 1 (0x01) ID: 2 (0x02) type: DES3 length: 16
Version: 1 (0x01) ID: 3 (0x03) type: DES3 length: 16
Version: 2 (0x02) ID: 1 (0x01) type: DES3 length: 16
Version: 2 (0x02) ID: 2 (0x02) type: DES3 length: 16
Version: 2 (0x02) ID: 3 (0x03) type: DES3 length: 16
Version: 3 (0x03) ID: 1 (0x01) type: DES3 length: 16
Version: 3 (0x03) ID: 2 (0x02) type: DES3 length: 16
Version: 3 (0x03) ID: 3 (0x03) type: DES3 length: 16
Exception in thread "main" java.lang.IllegalArgumentException: Illegal hex: K
at apdu4j.HexUtils.decodeHexString_imp(HexUtils.java:58)
at apdu4j.HexUtils.stringToBin(HexUtils.java:83)
at pro.javacard.gp.GPTool.main(GPTool.java:278)

Getting SIM Carrier id = -1 in CoIMS app

Hi @herlesupreeth,

I've been trying the VoLTE Setup with Kamailio IMS and Open5GS (https://open5gs.org/open5gs/docs/tutorial/02-VoLTE-setup/) but I'm struggling with the configuration of my UE. I'm using a Huawei Mate 20X (Android 10) with a single SIM slot and a sysmoISIM-SJA2.

I got the CoIMS app working by following your instructions but the SIM Carrier Id is set to -1 and I don't know how to fix it. I checked the section Potential reasons for this method not working and the PLMN that I'm using (99970) is not in the lists provided. But I don't know how to proceed with the alternative link you provided (https://source.android.com/devices/tech/config/carrierid#integrating_carrier_ids_with_carrierconfig).

Also, I'm not able to configure the APN ims in the phone: as soon as I set the APN type to 'ims' and save, it takes me back to the APN settings screen but without adding this new APN. I only have the APN internet available to select.

Are these two things related? I would really appreciate your help!

Thank you in advance.

CoIMS app source

Hi Supreeth,

I have several phones with SIMs provisioned for testing that I don't have physical access to right now. I was thinking instead of trying to collect and reflash the SIMs per this wiki, I might just try and create a Carrier Config app that matches my existing settings and distribute the apk.

Are you planning on open sourcing the code for CoIMS? I see you have other apps released on GitHub, but I didn't see CoIMS. if possible, it would be really useful to see how you did it.

Thanks for the great project,
-Doug

SW match failed!

I just got some brand new ISIM from Sysmocom but Im failing to install the applet (neither gp or shadysim works). Does anyone have any idea?

(env) rezo@rezo-Latitude-E5540:~/.virtualenvs/sim-tools/shadysim$ python shadysim_isim.py --pcsc -t --kic A5CEF1129E33A42D1535ED10F4155B23 --kid 6870D292A589EDD1E8F58127E8DC047F
AID: a0000000620001, State: 01, Privs: 00
AID: 4a6176656c696e2e6a637265, State: 01, Privs: 00
AID: a0000000620101, State: 01, Privs: 00
AID: a0000000620102, State: 01, Privs: 00
AID: a0000000620201, State: 01, Privs: 00
AID: a000000062020801, State: 01, Privs: 00
AID: a00000006202080101, State: 01, Privs: 00
AID: a0000000620002, State: 01, Privs: 00
AID: a0000000620003, State: 01, Privs: 00
AID: a000000062010101, State: 01, Privs: 00
AID: a00000015100, State: 01, Privs: 00
AID: a0000000090005ffffffff8911000000, State: 01, Privs: 00
AID: a0000000090005ffffffff8912000000, State: 01, Privs: 00
AID: a0000000090005ffffffff8913000000, State: 01, Privs: 00
AID: a0000000090005ffffffff8911010000, State: 01, Privs: 00
AID: a0000000871005ffffffff8913100000, State: 01, Privs: 00
AID: a0000000871005ffffffff8913200000, State: 01, Privs: 00
AID: a0000000090003ffffffff8910710001, State: 01, Privs: 00
AID: a0000000090003ffffffff8910710002, State: 01, Privs: 00
AID: a0000000090005ffffffff8915000000, State: 01, Privs: 00
AID: a00000015141434c, State: 01, Privs: 00
Instance AID: a00000015141434c00

python shadysim_isim.py --pcsc -l applet.cap -i applet.cap --kic A5CEF1129E33A42D1535ED10F4155B23 --kid 6870D292A589EDD1E8F58127E8DC047F --module-aid a00000015141434c00 --instance-aid a00000015141434c00
Traceback (most recent call last):
File "shadysim_isim.py", line 494, in
ac.load_app(args.load_app)
File "shadysim_isim.py", line 369, in load_app
self.load_aid_raw(aid, data, len(data) / 2)
File "shadysim_isim.py", line 271, in load_aid_raw
self.send_wrapped_apdu_checksw('80e60200' + ('%02x' % (len(data) / 2)) + data + '00c0000000')
File "shadysim_isim.py", line 246, in send_wrapped_apdu_checksw
raise RuntimeError("SW match failed! Expected %s and got %s." % (sw.lower(), response[1]))
RuntimeError: SW match failed! Expected 9000 and got 6985.

Is there a way to get a pre-programmed SIM card?

Hi,

I want to use CoIMS to enable VoLTE on my Pixel 7 phone (for Austrian carriers) but I don't have writable SIM cards nor a SIM programmer.
Would it be possible to buy a pre-programmed SIM card somehow?

sysmoISIM-SJA2 - Problem with installing Certificate on Sysmocom ISIM card

Hi @herlesupreeth
I have a problem with installing certificate on my new sysmocom ISIM card: sysmoISIM-SJA2 with preinstalled ARA-M applet.
I followed the guide and there is an error when checking the status "Error: Could not read A00000015141434C00".
I found old issue #7 and I tried to use GP v20.08.16 or GP v19.06.16 but with no lack.

Can you look at this log, is installing certificate correct?
Thanks Rafal

sum@xubuntu-vm:~/CoIMS_Wiki$ gp --key-enc 158053BBB10A543A7E891DFA02E38A37 --key-mac 6B2B764F5C4E89D755D1F2CD52E19C25 --key-dek AF52B0B682ED873218DA2E5BAB4A6AB5 -lvid
SCardConnect("Alcor Micro AU9560 00 00", T=*) -> T=0, 3B9F96801F878031E073FE211B674A4C753034054BA9
GlobalPlatformPro v20.04.14-0-geaee04c
Running on Linux 5.8.0-50-generic amd64, Java 11.0.10 by Ubuntu
A>> T=0 (4+0000) 00A40400 00 
A<< (0018+2) (33ms) 6F108408A000000003000000A5049F6501FF 9000
A>> T=0 (4+0000) 80CA9F7F 00 
A<< (0000+2) (11ms) 6A88
A>> T=0 (4+0000) 00CA9F7F 00 
A<< (0000+2) (11ms) 6E00
[main] WARN pro.javacard.gp.GPData - GET DATA(CPLC) not supported
A>> T=0 (4+0000) 80CA0042 00 
A<< (0005+2) (23ms) 4203000000 9000
IIN: 4203000000
A>> T=0 (4+0000) 80CA0045 00 
A<< (0004+2) (22ms) 45020000 9000
CIN: 45020000
Card Data: 
A>> T=0 (4+0000) 80CA0066 00 
A<< (0051+2) (21ms) 6631732F06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215 9000
Tag 6: 1.2.840.114283.1
-> Global Platform card
Tag 60: 1.2.840.114283.2.2.1.1
-> GP Version: 2.1.1
Tag 63: 1.2.840.114283.3
Tag 64: 1.2.840.114283.4.2.21
-> GP SCP02 i=15
Card Capabilities: 
A>> T=0 (4+0000) 80CA0067 00 
A<< (0000+2) (10ms) 6A88
A>> T=0 (4+0000) 80CA00E0 00 
A<< (0074+2) (21ms) E048C00401708010C00402708010C00403708010C00401018010C00402018010C00403018010C00401028010C00402028010C00403028010C00401038010C00402038010C00403038010 9000
Version: 112 (0x70) ID:   1 (0x01) type: DES3 length:  16 
Version: 112 (0x70) ID:   2 (0x02) type: DES3 length:  16 
Version: 112 (0x70) ID:   3 (0x03) type: DES3 length:  16 
Version:   1 (0x01) ID:   1 (0x01) type: DES3 length:  16 
Version:   1 (0x01) ID:   2 (0x02) type: DES3 length:  16 
Version:   1 (0x01) ID:   3 (0x03) type: DES3 length:  16 
Version:   2 (0x02) ID:   1 (0x01) type: DES3 length:  16 
Version:   2 (0x02) ID:   2 (0x02) type: DES3 length:  16 
Version:   2 (0x02) ID:   3 (0x03) type: DES3 length:  16 
Version:   3 (0x03) ID:   1 (0x01) type: DES3 length:  16 
Version:   3 (0x03) ID:   2 (0x02) type: DES3 length:  16 
Version:   3 (0x03) ID:   3 (0x03) type: DES3 length:  16 
[main] WARN pro.javacard.gp.PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[main] WARN pro.javacard.gp.PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[main] WARN pro.javacard.gp.PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[main] INFO pro.javacard.gp.GPSession - Using card master keys: ENC=158053BBB10A543A7E891DFA02E38A37 (KCV: 899C96) MAC=6B2B764F5C4E89D755D1F2CD52E19C25 (KCV: 225ED6) DEK=AF52B0B682ED873218DA2E5BAB4A6AB5 (KCV: D549F1) for null
A>> T=0 (4+0008) 80500000 08 0215D5EB4CCC1159 00
A<< (0028+2) (53ms) 0000000000000000000070020009044C74AAEF2E34F25F7E5BF39418 9000
[main] INFO pro.javacard.gp.GPSession - Diversified card keys: ENC=158053BBB10A543A7E891DFA02E38A37 (KCV: 899C96) MAC=6B2B764F5C4E89D755D1F2CD52E19C25 (KCV: 225ED6) DEK=AF52B0B682ED873218DA2E5BAB4A6AB5 (KCV: D549F1) for SCP02
[main] INFO pro.javacard.gp.GPSession - Session keys: ENC=538794970FFC2F7987627B34F6BDCAF8 MAC=ABEFA3BB9B1D1A8F3D0A36685E783EC9 RMAC=32D6DE1D4109885E93EA46B6CFA9B82E, card keys=ENC=158053BBB10A543A7E891DFA02E38A37 (KCV: 899C96) MAC=6B2B764F5C4E89D755D1F2CD52E19C25 (KCV: 225ED6) DEK=AF52B0B682ED873218DA2E5BAB4A6AB5 (KCV: D549F1) for SCP02
A>> T=0 (4+0016) 84820100 10 6135C39A1258E012CD65B6251341F47B
A<< (0000+2) (32ms) 9000
A>> T=0 (4+0010) 84F28002 0A 4F004434D4DAB70CE569 00
A<< (0023+2) (38ms) E3154F08A0000000030000009F70010FC50198EA028000 9000
A>> T=0 (4+0010) 84F24002 0A 4F00C8F91AA17E975685 00
A<< (0198+2) (40ms) E31D4F10A0000000871002FFFFFFFF89070900009F700107C50100EA028000E31D4F10A0000000871004FFFFFFFF89070900009F700107C50100EA028000E31D4F10A000000087ABCDFFFFFFFF89070900009F700107C50100EA028000E3174F0A53696D62614E2E52414D9F700107C50100EA028000E31D4F10A0000000090001FFFFFFFF89000000009F700107C50104EA028000E3174F0A53696D62614E2E52464D9F700107C50100EA028000E3164F09A00000015141434C009F700107C50100EA028000 9000
A>> T=0 (4+0010) 84F21002 0A 4F0073DC6126AEEC711B 00
A<< (0221+2) (47ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
A>> T=0 (4+0010) 84F21003 0A 4F005479C154B99421E3 00
A<< (0195+2) (44ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101E3194F08A00000015141434C9F7001018409A00000015141434C00 9000
A>> T=0 (4+0010) 84F22002 0A 4F00C2CEE4DE4D2F4640 00
A<< (0221+2) (40ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
A>> T=0 (4+0010) 84F22003 0A 4F008A712E6366C2A59C 00
A<< (0184+2) (44ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101E30E4F08A00000015141434C9F700101 9000
ISD: A000000003000000 (SECURED)
     Privs:   SecurityDomain, CardLock, CardTerminate

APP: A0000000871002FFFFFFFF8907090000 (SELECTABLE) (|................|)
     Privs:   

APP: A0000000871004FFFFFFFF8907090000 (SELECTABLE) (|................|)
     Privs:   

APP: A000000087ABCDFFFFFFFF8907090000 (SELECTABLE) (|................|)
     Privs:   

APP: 53696D62614E2E52414D (SELECTABLE) (|SimbaN.RAM|)
     Privs:   

APP: A0000000090001FFFFFFFF8900000000 (SELECTABLE) (|................|)
     Privs:   CardReset

APP: 53696D62614E2E52464D (SELECTABLE) (|SimbaN.RFM|)
     Privs:   

APP: A00000015141434C00 (SELECTABLE) (|....QACL.|)
     Privs:   

PKG: A0000000620001 (LOADED) (|....b..|)

PKG: 4A6176656C696E2E6A637265 (LOADED) (|Javelin.jcre|)

PKG: A0000000620101 (LOADED) (|....b..|)

PKG: A0000000620102 (LOADED) (|....b..|)

PKG: A0000000620201 (LOADED) (|....b..|)

PKG: A000000062020801 (LOADED) (|....b...|)

PKG: A00000006202080101 (LOADED) (|....b....|)

PKG: A0000000620002 (LOADED) (|....b..|)

PKG: A0000000620003 (LOADED) (|....b..|)

PKG: A000000062010101 (LOADED) (|....b...|)

PKG: A00000015100 (LOADED) (|....Q.|)

PKG: A0000000090005FFFFFFFF8911000000 (LOADED) (|................|)

PKG: A0000000090005FFFFFFFF8912000000 (LOADED) (|................|)

PKG: A0000000090005FFFFFFFF8913000000 (LOADED) (|................|)

PKG: A0000000090005FFFFFFFF8911010000 (LOADED) (|................|)

PKG: A0000000871005FFFFFFFF8913100000 (LOADED) (|................|)

PKG: A0000000871005FFFFFFFF8913200000 (LOADED) (|............. ..|)

PKG: A0000000090003FFFFFFFF8910710001 (LOADED) (|.............q..|)

PKG: A0000000090003FFFFFFFF8910710002 (LOADED) (|.............q..|)

PKG: A0000000090005FFFFFFFF8915000000 (LOADED) (|................|)

PKG: A00000015141434C (LOADED) (|....QACL|)
     Applet:  A00000015141434C00 (|....QACL.|)

sum@xubuntu-vm:~/CoIMS_Wiki$ gp --key-enc 158053BBB10A543A7E891DFA02E38A37 --key-mac 6B2B764F5C4E89D755D1F2CD52E19C25 --key-dek AF52B0B682ED873218DA2E5BAB4A6AB5 -a 00A4040009A00000015141434C0000 -a 80E2900033F031E22FE11E4F06FFFFFFFFFFFFC114E46872F28B350B7E1F140DE535C2A8D5804F0BE3E30DD00101DB080000000000000001 -d -v
SCardConnect("Alcor Micro AU9560 00 00", T=*) -> T=0, 3B9F96801F878031E073FE211B674A4C753034054BA9
GlobalPlatformPro v20.04.14-0-geaee04c
Running on Linux 5.8.0-50-generic amd64, Java 11.0.10 by Ubuntu
A>> T=0 (4+0009) 00A40400 09 A00000015141434C00 00
A<< (0000+2) (16ms) 6E00
A>> T=0 (4+0051) 80E29000 33 F031E22FE11E4F06FFFFFFFFFFFFC114E46872F28B350B7E1F140DE535C2A8D5804F0BE3E30DD00101DB080000000000000001
A<< (0000+2) (182ms) 9000
A>> T=0 (4+0000) 00A40400 00 
A<< (0018+2) (58ms) 6F108408A000000003000000A5049F6501FF 9000
sum@xubuntu-vm:~/CoIMS_Wiki$ 
sum@xubuntu-vm:~/CoIMS_Wiki$ 
sum@xubuntu-vm:~/CoIMS_Wiki$ gp --key-enc 158053BBB10A543A7E891DFA02E38A37 --key-mac 6B2B764F5C4E89D755D1F2CD52E19C25 --key-dek AF52B0B682ED873218DA2E5BAB4A6AB5 --acr-list-aram -d -v 
SCardConnect("Alcor Micro AU9560 00 00", T=*) -> T=0, 3B9F96801F878031E073FE211B674A4C753034054BA9
GlobalPlatformPro v20.04.14-0-geaee04c
Running on Linux 5.8.0-50-generic amd64, Java 11.0.10 by Ubuntu
A>> T=0 (4+0000) 00A40400 00 
A<< (0018+2) (27ms) 6F108408A000000003000000A5049F6501FF 9000
A>> T=0 (4+0009) 00A40400 09 A00000015141434C00 00
A<< (0000+2) (9ms) 6E00
Error: Could not read A00000015141434C00
sum@xubuntu-vm:~/CoIMS_Wiki$ 

Cannot program on new Sysmocom SIM card

Hi @herlesupreeth ,
I have order a 10-pack SIM cards. It's green in color. I have tried 2 cards. KIC/KID/KIK are good. However, there are problem when trying --acr-list and the CoIMS cannot get carrier privileges.

alice@epc01:~/CoIMS_Wiki$ gp --key-enc 317C18BCF0280843523E28F2E8B51359 --key-mac B425A29FECD06BAC830FBB9769E50228 --key-dek 1A608E60F78F52DC56E203130A1BDE51 -lvi
GlobalPlatformPro 19.06.16-8-g9639eb9
Running on Linux 4.15.0-112-lowlatency amd64, Java 9-internal by Oracle Corporation
Reader: Alcor Micro AU9560 00 00
ATR: 3B9F96801FC78031A073BE21136743200718000001A5
More information about your card:
    http://smartcard-atr.appspot.com/parse?ATR=3B9F96801FC78031A073BE21136743200718000001A5

[DEBUG] GPSession - Auto-detected ISD: A000000003000000
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
[WARN] GPData - Invalid CPLC date: FFFF
CPLC: ICFabricator=FFFF
      ICType=FFFF
      OperatingSystemID=FFFF
      OperatingSystemReleaseDate=FFFF (invalid date format)
      OperatingSystemReleaseLevel=FFFF
      ICFabricationDate=FFFF (invalid date format)
      ICSerialNumber=FFFFFFFF
      ICBatchIdentifier=FFFF
      ICModuleFabricator=FFFF
      ICModulePackagingDate=FFFF (invalid date format)
      ICCManufacturer=FFFF
      ICEmbeddingDate=FFFF (invalid date format)
      ICPrePersonalizer=FFFF
      ICPrePersonalizationEquipmentDate=FFFF (invalid date format)
      ICPrePersonalizationEquipmentID=FFFFFFFF
      ICPersonalizer=FFFF
      ICPersonalizationDate=FFFF (invalid date format)
      ICPersonalizationEquipmentID=FFFFFFFF

IIN: 42020102
CIN: 45020506
Card Data: 
Tag 6: 1.2.840.114283.1
-> Global Platform card
Tag 60: 1.2.840.114283.2.2.1.1
-> GP Version: 2.1.1
Tag 63: 1.2.840.114283.3
Tag 64: 1.2.840.114283.4.2.21
-> GP SCP02 i=15
Card Capabilities: 
[DEBUG] GPData - GET DATA(Card Capabilities): N/A
Version:   1 (0x01) ID:   1 (0x01) type: DES3 length:  16 
Version:   1 (0x01) ID:   2 (0x02) type: DES3 length:  16 
Version:   1 (0x01) ID:   3 (0x03) type: DES3 length:  16 
Version:   2 (0x02) ID:   1 (0x01) type: DES3 length:  16 
Version:   2 (0x02) ID:   2 (0x02) type: DES3 length:  16 
Version:   2 (0x02) ID:   3 (0x03) type: DES3 length:  16 
Version:   3 (0x03) ID:   1 (0x01) type: DES3 length:  16 
Version:   3 (0x03) ID:   2 (0x02) type: DES3 length:  16 
Version:   3 (0x03) ID:   3 (0x03) type: DES3 length:  16 
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[INFO] GPSession - Using card master keys: ENC=317C18BCF0280843523E28F2E8B51359 (KCV: 6321E8) MAC=B425A29FECD06BAC830FBB9769E50228 (KCV: 579523) DEK=1A608E60F78F52DC56E203130A1BDE51 (KCV: 4B4A5C) for null
[DEBUG] GPSession - Host challenge: 376FD0E4625181B5
[DEBUG] GPSession - Card challenge: 0000674B15450B12
[DEBUG] GPSession - Card reports SCP02 with key version 1 (0x01)
[INFO] GPSession - Diversified card keys: ENC=317C18BCF0280843523E28F2E8B51359 (KCV: 6321E8) MAC=B425A29FECD06BAC830FBB9769E50228 (KCV: 579523) DEK=1A608E60F78F52DC56E203130A1BDE51 (KCV: 4B4A5C) for SCP02
[INFO] GPSession - Session keys: ENC=F2A5DAE78BF61BC58BBA5DF57D6426A8 MAC=4FB30C997B5D4D9D6F166CD02F8054B7 RMAC=844C13874BECBD25DDAB1075D2E44237, card keys=ENC=317C18BCF0280843523E28F2E8B51359 (KCV: 6321E8) MAC=B425A29FECD06BAC830FBB9769E50228 (KCV: 579523) DEK=1A608E60F78F52DC56E203130A1BDE51 (KCV: 4B4A5C) for SCP02
[DEBUG] GPSession - Verified card cryptogram: ACE8B72EE9F5F381
[DEBUG] GPSession - Calculated host cryptogram: 1964D2688BFB4856
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090001FFFFFFFF8900, 1
ISD: A000000003000000 (INITIALIZED)
     Privs:   SecurityDomain, CardLock, CardTerminate, CVMManagement

APP: A0000000090001FFFFFFFF8900000000 (SELECTABLE) (|................|)
     Privs:   CardReset

PKG: A0000000090001FFFFFFFF8900 (LOADED) (|.............|)
     Applet:  A0000000090001FFFFFFFF8900000000 (|................|)
     Applet:  A0000000090001FFFFFFFF89B00010 (|...............|)
     Applet:  A0000000871002FF49FFFF89040B0000 (|........I.......|)
     Applet:  FF434E52581040040203000000000000 (|.CNRX.@.........|)

alice@epc01:~/CoIMS_Wiki$ gp --key-enc 317C18BCF0280843523E28F2E8B51359 --key-mac B425A29FECD06BAC830FBB9769E50228 --key-dek 1A608E60F78F52DC56E203130A1BDE51 --install applet.cap
CAP loaded
alice@epc01:~/CoIMS_Wiki$ gp --key-enc 317C18BCF0280843523E28F2E8B51359 --key-mac B425A29FECD06BAC830FBB9769E50228 --key-dek 1A608E60F78F52DC56E203130A1BDE51 -a 00A4040009A00000015141434C0000 -a 80E2900033F031E22FE11E4F06FFFFFFFFFFFFC114E46872F28B350B7E1F140DE535C2A8D5804F0BE3E30DD00101DB080000000000000001
alice@epc01:~/CoIMS_Wiki$ gp --key-enc 317C18BCF0280843523E28F2E8B51359 --key-mac B425A29FECD06BAC830FBB9769E50228 --key-dek 1A608E60F78F52DC56E203130A1BDE51 --acr-list-aram
Could not read A00000015141434C00
alice@epc01:~/CoIMS_Wiki$ gp --key-enc 317C18BCF0280843523E28F2E8B51359 --key-mac B425A29FECD06BAC830FBB9769E50228 --key-dek 1A608E60F78F52DC56E203130A1BDE51 --acr-list
STORE DATA failed: 0x6D00 (Invalid INStruction)

Any debugging ideas? Thanks!

Android 8

Hi.
Is it possible to support Android 8? Asus Zenfone 3 (ZE520KL) supports VoLTE, but its latest OS is Oreo.

Thank you!

Fails at step: gp --acr-list-aram

If I follow the steps outlined with a new sysmoUSIM-SJS1 everything proceeds fine up until the step 'gp --acr-list-aram', which results in:

Could not read A00000015141434C00

If I then execute gp -lvi this now fails with:

STRICT WARNING: Card cryptogram invalid!
Card: CCC8261F92992718
Host: 344C0378D954D970
!!! DO NOT RE-TRY THE SAME COMMAND/KEYS OR YOU MAY BRICK YOUR CARD !!!

Repeating the same steps with a new card gives me the same result. 'gp -lvi' works fine prior to loading the applet and certificate, then fails with cryptogram invalid afterwards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.