mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-07 10:16:18 +03:00
filesystem: make sure the card is in a defined state
When the runtime state is created there is already some interaction with the card. Lets make sure that the card is in a defined state when we leave the constructor of the RuntimeState. Change-Id: I986204964903069bcce781afdbf3c5d26682b749 Related: OS#5274
This commit is contained in:
1 parent
d454fe7843
commit
4e2e1d9fd3
1 file changed
+4
@@ -1074,6 +1074,10 @@ class RuntimeState(object):
|
||||
self.mf.add_file(f)
|
||||
self.conserve_write = True
|
||||
|
||||
# make sure that when the runtime state is created, the card is also
|
||||
# in a defined state.
|
||||
self.reset()
|
||||
|
||||
def _match_applications(self):
|
||||
"""match the applications from the profile with applications on the card"""
|
||||
apps_profile = self.profile.applications
|
||||
|
||||
Reference in new issue
Block a user