Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
FlutterCrypto committed Apr 7, 2023
1 parent 9b12c1b commit 824efec
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
23 changes: 23 additions & 0 deletions logfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Complete log file when reading a Credit Card

```plaintext
NFC tag discovered
TagId: 0585921afb9100
TechList found with these entries:
android.nfc.tech.IsoDep
android.nfc.tech.NfcA
connection with card success
*********************************
************ step 00 ************
* our journey begins *
*********************************
increase IsoDep timeout for long lasting reading
timeout old: 2000 ms
timeout new: 10000 ms
*********************************
************ step 99 ************
* our journey ends *
*********************************
```
28 changes: 10 additions & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@ near the device's NFC reader: **TalkToYourCreditCardPart0**.

The app is tested on real Android devices running Android versions 5.0.1, 8.0 and 13.

There are 3 dependencies necessary for the app to run:

build.gradle:
```plaintext
// parsing BER-TLV encoded data, e.g. a credit card
// source: https://github.com/evsinev/ber-tlv
implementation 'com.payneteasy:ber-tlv:1.0-11'
// pretty printing of card's responses
// source: https://github.com/devnied/EMV-NFC-Paycard-Enrollment
implementation 'com.github.devnied.emvnfccard:library:3.0.1'
// implementing an about page
implementation 'io.github.medyo:android-about-page:2.0.0'
```

These are the steps to read a payment card, it is a kind of "question & answer" workflow:
- ask the card which applications are available on the card ("select PPSE")
- analyze the card's response and identify one or more of the application number or application id ("AID")
Expand All @@ -56,16 +40,22 @@ In AndroidManifest.xml grant these permissions:
<uses-permission android:name="android.permission.VIBRATE" />
```

Dependencies in build.gradle (app):
There are 3 dependencies necessary for the app to run:

build.gradle:
```plaintext
// parsing BER-TLV encoded data, e.g. a credit card
// source: https://github.com/evsinev/ber-tlv
implementation 'com.payneteasy:ber-tlv:1.0-11'
// pretty printing of card's responses
// source: https://github.com/devnied/EMV-NFC-Paycard-Enrollment
implementation 'com.github.devnied.emvnfccard:library:3.0.1'
// implementing an about page
implementation 'io.github.medyo:android-about-page:2.0.0'
```

## Library ber-tlv

Source code: https://github.com/evsinev/ber-tlv
Expand All @@ -88,3 +78,5 @@ License: The MIT License (MIT)

Licensed under Attribution 4.0 International (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/legalcode

Find a complete [logfile](logfile.md) after reading a Credit Card with the app with the [link](logfile.md).

0 comments on commit 824efec

Please sign in to comment.