Invalidate Kc, too

This commit is contained in:
Oliver Smith 2020-02-26 12:02:47 +01:00
parent 134f41f5d1
commit 15c3bfb49f
1 changed files with 10 additions and 0 deletions

View File

@ -212,6 +212,8 @@ public class IMSIPseudo extends Applet implements ToolkitInterface, ToolkitConst
showMsg(changed);
invalidateTMSI((short)SIMView.FID_EF_LOCI);
invalidateTMSI((short)SIMView.FID_EF_LOCIGPRS);
invalidateKc((short)SIMView.FID_EF_KC);
invalidateKc((short)SIMView.FID_EF_KCGPRS);
refreshIMSI();
} catch (Exception e) {
showError((short)42);
@ -244,6 +246,14 @@ public class IMSIPseudo extends Applet implements ToolkitInterface, ToolkitConst
gsmFile.updateBinary((short)0, TMSI, (short)0, (short)TMSI.length);
}
private void invalidateKc(short fid)
{
byte[] Kc = {(byte)0x07}; /* proper N/A value, see 3GPP TS 31.102, chapter 4.4.3.1 */
gsmFile.select((short) SIMView.FID_DF_GSM);
gsmFile.select(fid);
gsmFile.updateBinary((short)0, Kc, (short)0, (short)Kc.length);
}
/*
* - command qualifiers for REFRESH,
* ETSI TS 101 267 / 3GPP TS 11.14 chapter 12.6 "Command details":