Permalink
Browse files

Removed redundant constant.

Changed code to use desired AID.
  • Loading branch information...
1 parent 53f6f8f commit cabda1b0ff53f3d242599c5948782ffd3ad74609 Rob Williams Jnr committed Oct 9, 2012
@@ -28,7 +28,6 @@
// public static final String CONNECTION_STRING = "apdu:0;target=4E.46.43.54.65.73.74.65.72.20.31.2E.30";
// SIM 2
public static final byte[][] MY_AIDS = { { 0x6E, 0x66, 0x63, 0x74, 0x65, 0x73, 0x74, 0x30, 0x31 } };
- public static final String CONNECTION_STRING = "apdu:0;target=6E.66.63.74.65.73.74.30.31";
public static long UI_IS_RUNNING = 0xcb4b95cab37dbc72L;
@@ -59,7 +59,7 @@ public void execute(ReadOnlyCommandMetadata metadata, Object context) {
// Open an APDUConnection to our applet. This results in an ISO 7816-4 SELECT command being sent by the JSR-177 API
String connection_string = Utilities.makeApduConnectionString(settings.getRegistered_aid());
Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command: opening APDUConnection to " + connection_string);
- apduConn = (APDUConnection) Connector.open(Constants.CONNECTION_STRING);
+ apduConn = (APDUConnection) Connector.open(connection_string);
Utilities.log("XXXX " + Thread.currentThread().getName() + " ISO 7816-4 command: APDUConnection opened");
screen.setUserMessage("Selected AID OK");
// Send the APDU and wait for a response - expect an error here unless your applet supports the command that was sent

0 comments on commit cabda1b

Please sign in to comment.