Skip to content

Commit cabda1b

Browse files
author
Rob Williams Jnr
committed
Removed redundant constant.
Changed code to use desired AID.
1 parent 53f6f8f commit cabda1b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

NFC/NfcTransactionHandler/src/nfc/sample/nfctransaction/Constants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public class Constants {
2828
// public static final String CONNECTION_STRING = "apdu:0;target=4E.46.43.54.65.73.74.65.72.20.31.2E.30";
2929
// SIM 2
3030
public static final byte[][] MY_AIDS = { { 0x6E, 0x66, 0x63, 0x74, 0x65, 0x73, 0x74, 0x30, 0x31 } };
31-
public static final String CONNECTION_STRING = "apdu:0;target=6E.66.63.74.65.73.74.30.31";
3231

3332
public static long UI_IS_RUNNING = 0xcb4b95cab37dbc72L;
3433

NFC/NfcTransactionHandler/src/nfc/sample/nfctransaction/commands/Iso7816Command.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void execute(ReadOnlyCommandMetadata metadata, Object context) {
5959
// Open an APDUConnection to our applet. This results in an ISO 7816-4 SELECT command being sent by the JSR-177 API
6060
String connection_string = Utilities.makeApduConnectionString(settings.getRegistered_aid());
6161
Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command: opening APDUConnection to " + connection_string);
62-
apduConn = (APDUConnection) Connector.open(Constants.CONNECTION_STRING);
62+
apduConn = (APDUConnection) Connector.open(connection_string);
6363
Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command: APDUConnection opened");
6464
screen.setUserMessage("Selected AID OK");
6565
// Send the APDU and wait for a response - expect an error here unless your applet supports the command that was sent

0 commit comments

Comments
 (0)