{"id":15381940,"url":"https://github.com/justinribeiro/android-hostcardemulation-sample","last_synced_at":"2025-02-28T08:30:27.728Z","repository":{"id":22496934,"uuid":"25836405","full_name":"justinribeiro/android-hostcardemulation-sample","owner":"justinribeiro","description":"Android HostCardEmulation sample that implements NFC Forum Type 4 Tag Operation","archived":false,"fork":false,"pushed_at":"2019-10-03T14:55:46.000Z","size":154,"stargazers_count":58,"open_issues_count":0,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-23T15:07:01.674Z","etag":null,"topics":["android","card-emulation","nfc","nfc-forum"],"latest_commit_sha":null,"homepage":"https://justinribeiro.com/chronicle/2014/11/15/host-based-card-emulation-talking-to-chrome-app/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinribeiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-27T19:56:49.000Z","updated_at":"2024-11-13T15:23:14.000Z","dependencies_parsed_at":"2022-08-20T17:41:03.746Z","dependency_job_id":null,"html_url":"https://github.com/justinribeiro/android-hostcardemulation-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Fandroid-hostcardemulation-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Fandroid-hostcardemulation-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Fandroid-hostcardemulation-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Fandroid-hostcardemulation-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinribeiro","download_url":"https://codeload.github.com/justinribeiro/android-hostcardemulation-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241124390,"owners_count":19913832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","card-emulation","nfc","nfc-forum"],"created_at":"2024-10-01T14:29:20.986Z","updated_at":"2025-02-28T08:30:27.451Z","avatar_url":"https://github.com/justinribeiro.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Host Card Emulation of a NFC Forum Type-4 tag\n\nThis example emulates a NFC Forum Type-4 tag with an a single NDEF record (RTD_TEXT). The project uses aid-filter F0394148148100 (which is an example that is defined in the Android documentation) for the APDU SELECT command.\n\n## Whoa there what?\n\nThe NFC Forum Type 4 Tag Operation Specification 3.0 outlines how to interact with tags. Using Host Card Emulation in Android, we can do something pretty nifty:\n\n1. We can write an application on the card reader side that sends the proper APDU SELECT and associated commands and interact with a \"card\".\n2. That \"card\" in this case is emulated in our Android application.\n\n## Where can I get the tag operational spec?\n\nThere are various copies on the Internet, but the place to go is to sign the specification license and download direct from the [NFC Forum document library](http://members.nfc-forum.org/specs/spec_license/document_form/).\n\n## How do I interact with the Android application through a card reader?\n\nYou have to follow the commands in your client application. You can also compile and run the sample in the apdu_exchange_tester directory that is based on the APDU examples from libNFC (for detailed instructions, see the readme in that folder).\n\n## Where can I learn more about Host Card Emulation on Android?\n\nYou'll need API 19 (aka Android 4.4) to use HCE. See [Host-based Card Emulation @ developers.android.com](https://developer.android.com/guide/topics/connectivity/nfc/hce.html) for all the details.\n\n## What if I want to interact with or read a Type-4 tag?\n\nThis is a different sort of thing and you'll want to look into [ISO-DEP](http://developer.android.com/reference/android/nfc/tech/IsoDep.html).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinribeiro%2Fandroid-hostcardemulation-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinribeiro%2Fandroid-hostcardemulation-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinribeiro%2Fandroid-hostcardemulation-sample/lists"}