Цитата из документации API GP2.1.1:
setATRHistBytes
public static boolean setATRHistBytes(byte[] baBuffer,
short sOffset,
byte bLength)
This method sets the historical bytes of the ATR (Answer To Reset) string. The sequence of bytes will be visible on a subsequent power-up or reset.
Notes:
This method shall not be invoked from the Applet.install() method.
The OPEN locates the entry of the current applet context in the Open Platform Registry and verifies that the application has the "default selected" privilege.
The OPEN is responsible for updating the length of historical bytes in Format Character T0 of the ATR.
Parameters:
baBuffer - the source byte array containing the ATR historical bytes. Must be a global array.
sOffset - offset of the ATR historical bytes within source byte array.
bLength - the number of historical bytes.
Returns:
true if ATR bytes set, false otherwise.
Вопрос 1: Принуждает ли GP выбирать апплет по умолчанию для изменения байтов истории ATR?
Вопрос 2: Изменяет ли GP только ATR с холодным сбросом? Или ATR теплого сброса тоже меняется?
Вопрос 3: Как я могу получить ATR теплого сброса моей карты? Есть ли какая-нибудь команда для этого? Это зависит от читателя?