From 2a833b480a644a33a3a322dd5a87a22f4ff2f828 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 19 Dec 2024 18:25:18 +0100 Subject: [PATCH] global_platform: fix command "delete" The delete command formats a TPDU, not APDU, which leads to warning messages Related: OS#6679 Change-Id: Id04c89acbd4f449cb974d3cb05024f11dba4684e --- pySim/global_platform/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/global_platform/__init__.py b/pySim/global_platform/__init__.py index 28cc01e8..043a86ac 100644 --- a/pySim/global_platform/__init__.py +++ b/pySim/global_platform/__init__.py @@ -791,7 +791,7 @@ class ADF_SD(CardADF): self.delete(0x00, p2, cmd) def delete(self, p1:int, p2:int, data:Hexstr) -> ResTuple: - cmd_hex = "80E4%02x%02x%02x%s" % (p1, p2, len(data)//2, data) + cmd_hex = "80E4%02x%02x%02x%s00" % (p1, p2, len(data)//2, data) return self._cmd.lchan.scc.send_apdu_checksw(cmd_hex) est_scp02_parser = argparse.ArgumentParser()