doc-rj / smartcard-reader Goto Github PK
View Code? Open in Web Editor NEWAndroid NFC contactless smart card reader
License: GNU General Public License v3.0
Android NFC contactless smart card reader
License: GNU General Public License v3.0
Hey, this is not an issue with your code as much as a question about what would happen if i'm running the smart card reader the nexus 7 running 4.4+ and the other device is running 4.2 with only the possibility of beaming the data.
Does it activate a one-way beam?
Hi,
Not sure how to get in touch with you. Just wondering if you are interested to do an NFC based Android app prototype for us?
Thank you.
Senti
HI ,
We have used your library in our project. I need to understand the restrictions associated with modification to your library. Could you please provide me your contact details (mail : [email protected]) to discuss further.
Early response is highly appreciated
Thank you.
Hi,
Thanks for the project, I just downloaded and give it a try on emulator and android device, on both the applications crashed, the error said null exception. Any ideas?
I' like to get rid of Google pay (and most of the google ecosystem). It requires too many hacks anyway to run on open-source OSes like Lineage. Is it possible to use 2 copies of this app to be a blind MITM between a payment terminal at a store (say whole foods market) and my NFC physical card sitting at my home miles away, attached physically to my old android phone which is accessible over ssh?
Are you planning on putting this up on the Google Play Store?
I written the onresume code like this,
// reader mode flags: listen for type A (not B), skipping ndef check
private static final int READER_FLAGS =
NfcAdapter.FLAG_READER_NFC_A |NfcAdapter.FLAG_READER_NFC_B |
NfcAdapter.FLAG_READER_SKIP_NDEF_CHECK | NfcAdapter.FLAG_READER_NO_PLATFORM_SOUNDS;
/**
* Re-enable the tag dispatch if the app is in the foreground
*/
@RequiresApi(api = Build.VERSION_CODES.KITKAT)
@Override
public void onResume() {
super.onResume();
// register broadcast receiver
IntentFilter filter = new IntentFilter(NfcAdapter.ACTION_ADAPTER_STATE_CHANGED);
this.registerReceiver(mBroadcastReceiver, filter);
mAdapter = NfcAdapter.getDefaultAdapter(this);
mAdapter.enableReaderMode(this,
new NfcAdapter.ReaderCallback() {
@RequiresApi(api = Build.VERSION_CODES.O)
@Override
public void onTagDiscovered(final Tag t) {
// do something
tag = t;
startTransaction();
}
},
READER_FLAGS,
null);
when doing the NFC transaction, sometimes this AID D2 76 00 00 85 01 01 is sending. Can you help me with this issue?
Touching another android device using HCE seems to read some data on the screen but crashes the app with:
FATAL EXCEPTION: Thread-2237
Process: org.docrj.smartcard.reader, PID: 30330
java.lang.ExceptionInInitializerError
at org.docrj.smartcard.emv.GpoApdu.getGpoApdu(GpoApdu.java:40)
at org.docrj.smartcard.reader.PaymentReaderXcvr.initiateAppProcessing(PaymentReaderXcvr.java:169)
at org.docrj.smartcard.reader.PaymentReaderXcvr.run(PaymentReaderXcvr.java:87)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NullPointerException: in == null
at java.util.Properties.load(Properties.java:246)
at org.docrj.smartcard.emv.EMVTerminal.<clinit>(EMVTerminal.java:67)
at org.docrj.smartcard.emv.GpoApdu.getGpoApdu(GpoApdu.java:40)
at org.docrj.smartcard.reader.PaymentReaderXcvr.initiateAppProcessing(PaymentReaderXcvr.java:169)
at org.docrj.smartcard.reader.PaymentReaderXcvr.run(PaymentReaderXcvr.java:87)
at java.lang.Thread.run(Thread.java:818)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.