nfc-reader | Simple NFC Reader for Android | Android library

 by   nadam Java Version: Current License: No License

kandi X-RAY | nfc-reader Summary

kandi X-RAY | nfc-reader Summary

nfc-reader is a Java library typically used in Mobile, Android applications. nfc-reader has no bugs, it has no vulnerabilities and it has medium support. However nfc-reader build file is not available. You can download it from GitHub.

Simple NFC reader for Android based on the sample code from the Android SDK. If you have problem compiling the app make sure you have the /libs/guavalib.jar included in the build path.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              nfc-reader has a medium active ecosystem.
              It has 838 star(s) with 353 fork(s). There are 93 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 7 open issues and 22 have been closed. On average issues are closed in 446 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of nfc-reader is current.

            kandi-Quality Quality

              nfc-reader has 0 bugs and 0 code smells.

            kandi-Security Security

              nfc-reader has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              nfc-reader code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              nfc-reader does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              nfc-reader releases are not available. You will need to build from source code and install.
              nfc-reader has no build file. You will be need to create the build yourself to build the component from source.
              It has 904 lines of code, 53 functions and 13 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed nfc-reader and discovered the below as its top functions. This is intended to give you an instant insight into nfc-reader implemented functionality, and help decide if they suit your requirements.
            • Helper method to hide the items that have been selected
            • Clear tags
            • Returns a hexadecimal string representation of all tagids
            • Returns a string representation of tags
            • Initializes the reader
            • Parse an intent
            • Helper method to dump tag data
            • Cleans up the tag
            • Get the view for this activity
            • Create an instance of TextView
            • Reset the UI
            • Display widget settings dialog
            Get all kandi verified functions for this library.

            nfc-reader Key Features

            No Key Features are available at this moment for nfc-reader.

            nfc-reader Examples and Code Snippets

            No Code Snippets are available at this moment for nfc-reader.

            Community Discussions

            QUESTION

            Sending data, using HCE, or using secure element? (Android, Kotlin, Mifare 1k)
            Asked 2021-Jan-21 at 20:08

            I'm trying to implement the functionality for emulating a Mifare One (1K/S50, ISO14443A) chip to be able to use a phone with NFC capability instead of a physical Mifare card or, if possible sending only the data to the reader.

            I have this type of reader/writer: https://www.evelta.com/er302-high-frequency-nfc-writer-usb/

            After looking around on forums, stackoverflow questions I found this article to be the best example:

            https://medium.com/the-almanac/how-to-build-a-simple-smart-card-emulator-reader-for-android-7975fae4040f

            I implemented the HCE part, run the program, and the reader beleives my phone is a Mifare chip, so far so good.

            My problems:

            • No matter what "standard" Authentication key I tried to use...it gives me Auth error. I read this question about Auth: Authentication failure for Mifare 1K NFC tag using ACR122U NFC reader, it works on a physical Mifare card...but I don't know how to set or get to know the keys for the emulated one.

            • I don't get why this example emulates that exact Mifare chip type...even breakpoints don't work in the APDUService, but the reader detecting a Mifare cheap somehow.

            After reading about it, I get I can't 100% emulate a physical card, so I have to send all the data I want in my APDU response with the service somehow (I beleive it's the transreceive part).

            However I can't even authenticate.

            I tried to look for other possible solutions:

            • AndroidBeam: Android - Android p2p...sounds simple, relatively high-level API, but it's being deprecated, moreover it's not guaranted that the reader will even use Android...it might be a 'simple' USB reader hardware like the one I use.

            • SecureElement: Ironically...it seems to be the most recommended, I read that 'yes, it's possible for mifare' and things like that, yet I couldn't find a good example of it and the official Google docs don't have any good example. I read that it's for "ISO/IEC 7816-4", but Mifare 1K is ISO14443A, so I'm a bit sceptic about this API.

            • "Simply" sending the data to the reader: If I could just simply "push" the data out to the reader when it's reading the phone without complicating the matter or emulating anything...it would be great but I don't know if it's even possible. This whole NFC topic seems to be more and more complex.

            So alltogether I only need to do one thing: taking the data and send it to the reader.

            I realized it's a fairy tale like illusion to beleive it's as simple as it sounds, still, I hope there is a way to do it.

            If I could send the data in it's own, without emulating Mifare or anything...after all what matters is that the data on the card, not the type of the chip, the more simple the solution will be, the better.

            Sorry for possible English grammar mistakes.

            ...

            ANSWER

            Answered 2021-Jan-21 at 20:08

            The problem is you cannot use HCE on Android to emulate a Mifare Classic 1K (https://www.nxp.com/docs/en/data-sheet/MF1S50YYX_V1.pdf) as this is a custom Type NFC card. As HCE is about emulating Type 4 cards. See https://developer.android.com/guide/topics/connectivity/nfc/hce#SupportedProtocols

            And the below image helps understand the type.

            You can see this from it's datasheet, nowhere does it talk about AID's and standard Type 4 NFC commands

            Though Type 2 and Type 4 can share the Anti Collision mechanism and Reading the UID (which is part of the process) any other access methods are not shared.

            Type 4 Spec for reference is at http://apps4android.org/nfc-specifications/NFCForum-TS-Type-4-Tag_2.0.pdf

            I have seen some USB readers that offer on reader emulation of other card types but not HCE where the host does the emulation not the NFC hardware.

            The Authentication on Type 4 Cards or emulated ones is handled differently.

            You can emulate a MIFARE DESFire Card as that is a Type 4 card.

            The specs of your card reader are not documented well and it looks very "lite" and that it does not support any of the higher level protocols needed to talk to non Mifare Classic cards. It could support them but as Mifare protocol was the original spec, it could be possible for it to be and old design and only support the Mifare protocol.

            Source https://stackoverflow.com/questions/65833264

            QUESTION

            Launch my app once NFC tag is detected, then display result
            Asked 2020-Feb-13 at 10:39

            I've made an application who can read a NFC tag and display his content (once he has been parsed) following this tutorial : https://medium.com/@ssaurel/create-a-nfc-reader-application-for-android-74cf24f38a6f except that I had a button who needs to be pushed if you want to scan a NFC tag.

            Now, in my AndroidManifest.xml I added an intent filter to allow my app to start if a NFG tag is detected from my device :

            ...

            ANSWER

            Answered 2020-Feb-13 at 10:39

            You need to get the information from the Intent that started the Ativity.

            https://developer.android.com/guide/topics/connectivity/nfc/nfc

            If an activity starts because of an NFC intent, you can obtain information about the scanned NFC tag from the intent. Intents can contain the following extras depending on the tag that was scanned:

            Source https://stackoverflow.com/questions/60205664

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install nfc-reader

            You can download it from GitHub.
            You can use nfc-reader like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the nfc-reader component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/nadam/nfc-reader.git

          • CLI

            gh repo clone nadam/nfc-reader

          • sshUrl

            git@github.com:nadam/nfc-reader.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link