ash2005 / seek-for-android

Automatically exported from code.google.com/p/seek-for-android
0 stars 0 forks source link

6F00 responses to GET RESPONSE command #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to install an applet onto a UICC in a Samsung Galaxy S4 using Open 
Mobile API (Giesecke & Devrient GmbH) (API 18). Certain APDUs, such as INSTALL 
FOR LOAD return a 61xx SW, and after sending in a GET RESPONSE command (00 C0 
00 00 xx) I receive the SW 6F00. This does not happen if I send the commands to 
the same UICC in a contact PCSC reader.

The strange thing is that if I ignore the 6F00, it appears that the command has 
worked as expected, I just cannot retrieve the response. I am able to install 
and load capfiles by simply ignoring the 6F00 responses. I do need the response 
for other APDUs so I need to try and fix this.

Has anyone else seen this behaviour before or know what may be causing it?

Example output. Here I install an instance of an applet, it returns 6F00, but 
the installation has actually worked.
>> 
80E60C002B09A00000006203010C010AA00000006203010C01010BA00000006203010C0101000100
06C9043132333400
<< 6101
>> 00C0000001
<< 6F00
>> 00A404000BA00000006203010C010100
<< 9000

I am opening a logical channel to the UICC by passing in the ISD AID. This and 
most other APDUs work as expected.

Android 4.3
Model: GT-I9505
JSS15F.19505XXUEML1

Thanks

Original issue reported on code.google.com by tim.harv...@gmail.com on 24 Jan 2014 at 4:03