herlesupreeth / CoIMS_Wiki

Wiki for overriding IMS settings to enable VoLTE/VoWiFi using Carrier Privileges in Android phones
BSD 2-Clause "Simplified" License
81 stars 25 forks source link

SW match failed! #10

Closed rezo552 closed 2 years ago

rezo552 commented 2 years ago

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.

herlesupreeth commented 2 years ago

If you have the new ISIMs from Sysmocom then no need to install the applet, its already installed. You just need to push the certificate

AID: a00000015141434c, State: 01, Privs: 00 Instance AID: a00000015141434c00

The above logs is the proof that its already installed

rezo552 commented 2 years ago

Thanks, now its almost working... The IMS registration fails at the very end for some reason:

ims_registrar_scscf [lookup.c:284]: impu_registered(): Looking for IMPU sip:06701234567@ims.mnc070.mcc999.3gppnetwork.org scscf | 2(37) DEBUG: ims_registrar_scscf [lookup.c:303]: impu_registered(): 'sip:06701234567@ims.mnc070.mcc999.3gppnetwork.org' not found in usrloc scscf | 2(37) ERROR: Githubissues.

  • Githubissues is a development platform for aggregating issues.