GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - piotrekwitkowski/LibraryNFC: MIFARE DESFire NFC Reader and HCE Emulator apps for Android

BranchesTags
Open more actions menu

Latest commit

 

History

86 Commits
86 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
LibraryHCE
LibraryHCE
 
 
LibraryReader
LibraryReader
 
 
gradle/wrapper
gradle/wrapper
 
 
log
log
 
 
nfc
nfc
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

LibraryNFC

is a school project to emulate NXP's MIFARE DESFire-based library ID cards with Android's Host Card Emulation.

LibraryHCE

This module offers emulation of a contactless library ID card. Emulation uses native MIFARE DESFire command set. The DESFire protocol implemented here is this reverse engineered version.

See the list of supported commands.

LibraryReader

This module enables reading data from physical and emulated DESFire-based library ID cards.

Its programmed use-case is to

  1. connect with a DESFire card (physical or with a specific Android application)
  2. select a library DESFire Application
  3. authenticate with AES key
  4. read data from a DESFire File

Configuration

HCE AID

The "Android" AID used by both HCE and Reader Android applications can be configured in the strings.xml file of the nfc helper library.

Emulated library ID

The data (Application AID, AES key, Data Files) of the emulated DESFire Application can be configured here.

Library ID reader

The data (Application AID and AES key) of the Reader module can be configured here.

Deployment

To deploy the applications two NFC-capable Android phones are needed. My setup included motorola one (Emulator) and Nexus 4 (Reader). I have tested emulation with some Sony and Huawei phones and it didn't work so well. You can use CTSVerifier to test your phone's NFC capabilities.

I was using Android Studio version 3.6.1.

Issues

Although I don't plan to update the app anytime soon, feel free to open Issues if you need clarification or help with NFC. I'd like to thank this way for many others that provided me with resources. Please consider starring the repo if you like it!

About

MIFARE DESFire NFC Reader and HCE Emulator apps for Android

Topics

androiddesfiredesfire-ev1desfire-ev2hcemifarenfc

Resources

Readme
Activity

Stars

59 stars

Watchers

1 watching

Forks

15 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.