sysmo_usim: program EF.AD in DF.GSM and ADF.USIM
Since september 2021 EF.AD no longer exists as a single file that is represented as a link in DF.GSM and ADF.USIM it is necessary to program both locations individually.
This commit is contained in:
parent
da4af9d9fa
commit
2c57f2a476
|
@ -187,16 +187,29 @@ class Sysmo_usim:
|
|||
print(" * Error: mnclen value must consist of a single byte!")
|
||||
return
|
||||
|
||||
print(" * Programming ...")
|
||||
|
||||
# EF.AD in DF.GSM
|
||||
self.sim.select(GSM_SIM_DF_GSM)
|
||||
self.sim.select(GSM_SIM_EF_AD)
|
||||
|
||||
res = self.sim.read_binary(4)
|
||||
new_ad = res.apdu[0:3] + mnclen
|
||||
|
||||
print(" * Programming...")
|
||||
self.sim.update_binary(new_ad)
|
||||
print("")
|
||||
|
||||
# EF.AD in ADF.USIM
|
||||
self.sim.card.SELECT_ADF_USIM()
|
||||
self.sim.select(GSM_SIM_EF_AD)
|
||||
|
||||
res = self.sim.read_binary(4)
|
||||
new_ad = res.apdu[0:3] + mnclen
|
||||
|
||||
self.sim.update_binary(new_ad)
|
||||
|
||||
print("")
|
||||
|
||||
|
||||
# Show installed applications (AIDs)
|
||||
def show_aid(self):
|
||||
|
|
Loading…
Reference in New Issue