How to unload an applet from your SIMcard
Hi everybody,
I am new in this stuff.
I wrote a toolkit applet for a SIM card.
I installed it using SIMalliance tool in the SIM card and I tested it.
It works.
Now I want todisinstall/unload/delete this applet from the card.
I tryied with the command delete from SIMalliance, it said that the applet was successfully deleted but instead it is still in my SIM !!!
Can you help me?
[436 byte] By [
MarcoSa] at [2007-11-26 18:17:25]

# 1
Could you post the log of the deletion procedure?I assume that you deleted the Applet and still see the Package and its associated Module(s).
# 2
It is the log file I obtain during deletion:
Download startedTuesday, February 13, 2007, 13:04:24,
Command A0 10 00 00 11
Command (Data) FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
Response90 00
Command A0 C2 00 00 46
Command (Data) D1 44 82 02 83 81 8B 3E 40 08 81 55 66 77 88 7F
F6 00 11 29 12 00 00 04 2D 02 70 00 00 28 15 06
01 55 55 00 00 00 1B 0D C7 35 B9 4D AC A5 C4 41
05 03 A6 40 EA 71 D1 9F 04 C5 37 BB 2D B5 FF 66
03 7E 2E 79 FC 9F
Response9F 13
Command A0 C0 00 00 13
Response90 00
Response (Data) 02 71 00 00 0E 0A 00 00 00 00 00 00 00 10 00 00
01 69 85
Command A0 C2 00 00 46
Command (Data) D1 44 82 02 83 81 8B 3E 40 08 81 55 66 77 88 7F
F6 00 11 29 12 00 00 04 2D 02 70 00 00 28 15 06
01 55 55 00 00 00 0A 23 A1 F4 01 8F 06 E3 BB 8D
7A C4 09 A4 D3 79 A1 33 AA F5 9E A6 72 FA 88 71
65 71 D5 5D EB 0D
Response9F 13
Command A0 C0 00 00 13
Response90 00
Response (Data) 02 71 00 00 0E 0A 00 00 00 00 00 00 00 10 00 00
01 69 85
Download finishedTuesday, February 13, 2007, 13:04:26
# 3
.. and after if I try to reinstall the same applet I receive:
Download startedTuesday, February 13, 2007, 13:04:48,
Command A0 10 00 00 11
Command (Data) FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
Response90 00
Command A0 C2 00 00 46
Command (Data) D1 44 82 02 83 81 8B 3E 40 08 81 55 66 77 88 7F
F6 00 11 29 12 00 00 04 2D 02 70 00 00 28 15 06
01 55 55 00 00 00 CF A0 26 62 48 8C A2 BE CC 4A
A5 52 EA C8 4C A6 B7 04 87 DD 4C B2 D9 15 03 3D
9D 44 15 C2 D4 05
Response9F 13
Command A0 C0 00 00 13
Response90 00
Response (Data) 02 71 00 00 0E 0A 00 00 00 00 00 00 00 10 00 00
01 61 08
Download finishedTuesday, February 13, 2007, 13:04:49
i.e. : "A package or an applet with the given AID already exists"
also if try to use the applet from my PDA it works ! so I am sure that is not deleted.
MM
# 4
Does anyone know how to solve it?PLEASE HELP
# 5
I wrote a toolkit applet for a SIM card using jdk1.3.1_18 and JavaCard 2.1.2.
I compiled my applet and converted in a cap file, then
I installed it using SIMalliance tool in the SIM card and I tested it.
It works.
Now I want to disinstall/unload/delete this applet from the card.
I tryied with the command delete from SIMalliance, it said that the applet was successfully deleted but instead it is still in my SIM !!!
I am not able to delete this applet from my SIMcard.
# 6
If your card is not a GlobalPlatform card, the deletion mechanism is proprietary or not possible at all. As far as I know, it is mandatory that the SIM application is always present on-card.
# 7
Hi lexdabear, thank u for your reaply.
The card should be a "good" card, in fact I installed and disintalled another applet in the same card time ago.
Then I created my new applet, I disinstalled successfully the old one and installed my new applet.
The problem is that now I cannot remove this last one applet and I can't install nothing more.
Of course the GSM application is always present on the card.
# 8
Then there must be still an application referencing your application. Can you show the APDU trace for the deletion?
# 9
It is the log file I obtain during deletion:
Download startedTuesday, February 13, 2007, 13:04:24,
Command A0 10 00 00 11
Command (Data) FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
Response90 00
Command A0 C2 00 00 46
Command (Data) D1 44 82 02 83 81 8B 3E 40 08 81 55 66 77 88 7F
F6 00 11 29 12 00 00 04 2D 02 70 00 00 28 15 06
01 55 55 00 00 00 1B 0D C7 35 B9 4D AC A5 C4 41
05 03 A6 40 EA 71 D1 9F 04 C5 37 BB 2D B5 FF 66
03 7E 2E 79 FC 9F
Response9F 13
Command A0 C0 00 00 13
Response90 00
Response (Data) 02 71 00 00 0E 0A 00 00 00 00 00 00 00 10 00 00
01 69 85
Command A0 C2 00 00 46
Command (Data) D1 44 82 02 83 81 8B 3E 40 08 81 55 66 77 88 7F
F6 00 11 29 12 00 00 04 2D 02 70 00 00 28 15 06
01 55 55 00 00 00 0A 23 A1 F4 01 8F 06 E3 BB 8D
7A C4 09 A4 D3 79 A1 33 AA F5 9E A6 72 FA 88 71
65 71 D5 5D EB 0D
Response9F 13
Command A0 C0 00 00 13
Response90 00
Response (Data) 02 71 00 00 0E 0A 00 00 00 00 00 00 00 10 00 00
01 69 85
Download finishedTuesday, February 13, 2007, 13:04:26
# 10
Looking at your log I cannot recognize any GlobalPlatform command.
# 11
I used SimAlliance tool.I wrote the applet and created the cap file using JavaCardKit 2.1.2and I downloaded it to my card using Interoperable Tool fom SimAlliance.Thank you again for your help.
# 12
What version of the SimAlliance loader are you using?
As lex said do you have any tools from the sim vendor that you could use to delete the applet and package?
We had this exact problem with an applet that was loaded using the SimAlliance tool but would not delete. In the end I only managed to delete an applet that that was giving 6985 errors by using a loader from another vendor.
Let me check the exact details of how we did this.
# 13
Hi Ceophs,I am using SimAlliance Interoperable Loader Version 3.Do you know where can I find a new/better tool ?Thank you in advance.