Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #25 from RobbieDubya/master
Browse files Browse the repository at this point in the history
Added editable APDU.
  • Loading branch information
timwindsor committed Nov 6, 2012
2 parents 97d0bf2 + f3af554 commit e2a6c85
Show file tree
Hide file tree
Showing 89 changed files with 719 additions and 850 deletions.
Binary file removed NFC/NfcTransactionHandler/bin/img/Thumbs.db
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_led_err.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_led_off.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_led_on.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_off_clicked.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_off_focused.png
Binary file not shown.
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_on_clicked.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/ce_on_focused.png
Binary file not shown.
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/clear_clicked.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/clear_focused.png
Binary file not shown.
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/close_clicked.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/close_focused.png
Binary file not shown.
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/icon.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/icon2.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/led_err.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/led_off.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/led_on.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/nfc_led_err.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/nfc_led_off.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/nfc_led_on.png
Binary file not shown.
Binary file removed NFC/NfcTransactionHandler/bin/img/photothumb.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file removed NFC/NfcTransactionHandler/bin/img/select_focused.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

114 changes: 55 additions & 59 deletions NFC/NfcTransactionHandler/src/nfc/sample/nfctransaction/Constants.java 100644 → 100755
@@ -1,59 +1,55 @@
package nfc.sample.nfctransaction;
/*
* Copyright (c) 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import net.rim.device.api.ui.Color;

public class Constants {
public static String VERSION = "1.2.0";

public static final int SE_SIM=0;
public static final int SE_EMB=1;
public static String [] SE_NAMES = {"SIM","EMBEDDED"};

// SIM 1
// public static final byte[][] MY_AIDS = { { 0x4E, 0x46, 0x43, 0x54, 0x65, 0x73, 0x74, 0x65, 0x72, 0x20, 0x31, 0x2E, 0x30 } };
// 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;

public static final int BACKGROUND_COLOUR = Color.BLACK;

// navigation
public static final int INDEX_CE = 0;
public static final int INDEX_CLEAR = 1;
public static final int INDEX_CLOSE = 2;
public static final int INDEX_STATUS = 3;
public static final int INDEX_KILL = 4;

// LEDs
public static final int LED_OFF = 0;
public static final int LED_ON = 1;
public static final int LED_ERR = 2;

// buttons
public static final int BTN_DEFAULT = 0;
public static final int BTN_CE_ON = 0;
public static final int BTN_CE_OFF = 1;
public static final int BTN_SELECT_OFF = 1;
public static final int BTN_SELECT_ON = 0;

public static final String AID_SPACE = "--.--.--.--.--.--.--.--.--";

public static final String READY = "Ready";
}
package nfc.sample.nfctransaction;
/*
* Copyright (c) 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import net.rim.device.api.ui.Color;

public class Constants {
public static String VERSION = "1.2.1";

public static final int SE_SIM=0;
public static final int SE_EMB=1;
public static String [] SE_NAMES = {"SIM","EMBEDDED"};

public static final byte[] DEFAULT_AID = { 0x6E, 0x66, 0x63, 0x74, 0x65, 0x73, 0x74, 0x30, 0x31 };
public static final byte[] DEFAULT_APDU = { (byte)0x80, 1, 0, 0};

public static long UI_IS_RUNNING = 0xcb4b95cab37dbc72L;

public static final int BACKGROUND_COLOUR = Color.BLACK;

// navigation
public static final int INDEX_CE = 0;
public static final int INDEX_CLEAR = 1;
public static final int INDEX_CLOSE = 2;
public static final int INDEX_STATUS = 3;
public static final int INDEX_KILL = 4;

// LEDs
public static final int LED_OFF = 0;
public static final int LED_ON = 1;
public static final int LED_ERR = 2;

// buttons
public static final int BTN_DEFAULT = 0;
public static final int BTN_CE_ON = 0;
public static final int BTN_CE_OFF = 1;
public static final int BTN_SELECT_OFF = 1;
public static final int BTN_SELECT_ON = 0;

public static final String AID_SPACE = "--.--.--.--.--.--.--.--.--";

public static final String READY = "Ready";
}

0 comments on commit e2a6c85

Please sign in to comment.