This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from RobbieDubya/master
Added editable APDU.
- Loading branch information
Showing
89 changed files
with
719 additions
and
850 deletions.
There are no files selected for viewing
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.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-1.36 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/Constants.class
Binary file not shown.
Binary file removed
BIN
-5.98 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/NfcTransHandlerApp.class
Binary file not shown.
Binary file removed
BIN
-4.18 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/Settings.class
Binary file not shown.
Binary file removed
BIN
-7.33 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/Utilities.class
Binary file not shown.
Binary file removed
BIN
-1.42 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/commands/ClearCommand.class
Binary file not shown.
Binary file removed
BIN
-867 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/commands/CloseCommand.class
Binary file not shown.
Binary file removed
BIN
-3.09 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/commands/Iso7816Command.class
Binary file not shown.
Binary file removed
BIN
-955 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/commands/KillCommand.class
Binary file not shown.
Binary file removed
BIN
-969 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/commands/SettingsCommand.class
Binary file not shown.
Binary file removed
BIN
-3.76 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/commands/ToggleCeCommand.class
Binary file not shown.
Binary file removed
BIN
-6.28 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/nfc/CardEmulation.class
Binary file not shown.
Binary file removed
BIN
-1.86 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/nfc/MyNfcStatusListener.class
Binary file not shown.
Binary file removed
BIN
-2.12 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/nfc/NfcService.class
Binary file not shown.
Binary file removed
BIN
-1.47 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/GraphicalButton.class
Binary file not shown.
Binary file removed
BIN
-928 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/LabelFieldColoured.class
Binary file not shown.
Binary file removed
BIN
-973 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcSettingsScreen$1.class
Binary file not shown.
Binary file removed
BIN
-7.24 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcSettingsScreen.class
Binary file not shown.
Binary file removed
BIN
-1.14 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen$1.class
Binary file not shown.
Binary file removed
BIN
-2.26 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen$2.class
Binary file not shown.
Binary file removed
BIN
-1.55 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen$3.class
Binary file not shown.
Binary file removed
BIN
-967 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen$4.class
Binary file not shown.
Binary file removed
BIN
-964 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen$5.class
Binary file not shown.
Binary file removed
BIN
-964 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen$6.class
Binary file not shown.
Binary file removed
BIN
-17.9 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/NfcTransScreen.class
Binary file not shown.
Binary file removed
BIN
-196 Bytes
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/TextDetailsProvider.class
Binary file not shown.
Binary file removed
BIN
-1.65 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/TimedLabelField.class
Binary file not shown.
Binary file removed
BIN
-1.09 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/buttons/MsbConfig.class
Binary file not shown.
Binary file removed
BIN
-2.24 KB
NFC/NfcTransactionHandler/bin/nfc/sample/nfctransaction/ui/buttons/MsbState.class
Binary file not shown.
Binary file removed
BIN
-3.98 KB
...fcTransactionHandler/bin/nfc/sample/nfctransaction/ui/buttons/MultiStateButtonField.class
Binary file not shown.
Binary file removed
BIN
-14.3 KB
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler-1.debug
Binary file not shown.
Binary file removed
BIN
-46.5 KB
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler-2.debug
Binary file not shown.
Binary file removed
BIN
-138 KB
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.cod
Binary file not shown.
2 changes: 0 additions & 2 deletions
2
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.csl
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.cso
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-15.7 KB
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.debug
Binary file not shown.
24 changes: 0 additions & 24 deletions
24
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.jad
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-211 KB
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.jar
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
NFC/NfcTransactionHandler/deliverables/Standard/7.0.0/NfcTransactionHandler.rapc
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
NFC/NfcTransactionHandler/deliverables/Standard/NfcTransactionHandler.alx
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
NFC/NfcTransactionHandler/deliverables/Standard/NfcTransactionHandler2.alx
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-63 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler-1.cod
Binary file not shown.
Binary file removed
BIN
-14.3 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler-1.debug
Binary file not shown.
Binary file removed
BIN
-20.6 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler-2.cod
Binary file not shown.
Binary file removed
BIN
-46.5 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler-2.debug
Binary file not shown.
Binary file removed
BIN
-53.9 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.cod
Binary file not shown.
2 changes: 0 additions & 2 deletions
2
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.csl
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.cso
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-15.7 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.debug
Binary file not shown.
24 changes: 0 additions & 24 deletions
24
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.jad
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-211 KB
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.jar
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
NFC/NfcTransactionHandler/deliverables/Web/7.0.0/NfcTransactionHandler.rapc
This file was deleted.
Oops, something went wrong.
114 changes: 55 additions & 59 deletions
114
NFC/NfcTransactionHandler/src/nfc/sample/nfctransaction/Constants.java
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} |
Oops, something went wrong.