SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
Android HCE 
An intro into the world of NFC 
Neel Rao
NFC - Intro 
NFC (Near Field Communication) is a form of 
short range (a few cms) wireless comm. 
Powered through modulated magnetic field 
Google Confidential and Proprietary
NFC - Intro 
NFC Smart Cards can have functional applets 
(Java Card) 
Capable of storage, reading, crypto, etc. 
Google Confidential and Proprietary
NFC - Intro 
Throughput is low, but useful for transferring 
URLs or small chunks of data (106-424 kbit/s) 
Action is very specific, the short range makes 
the intent clear 
Google Confidential and Proprietary
NFC - Smart Phones 
With smart phones the next logical step was to 
move the NFC hardware inside 
Google Confidential and Proprietary
NFC - Secure Element? 
Basically is equivalent to taking the hardware 
in a NFC card and putting it in your phone. 
Hardware component with built in “applets” 
and resilient tamper-proofing. 
Two types UICC (SIM card) and eSE (NFC 
controller) 
Google Confidential and Proprietary
SE-Based Architecture 
Google Confidential and Proprietary
Secure Element - Tradeoffs 
Payment applets on the SE contain sensitive 
data and require increased security 
Limited space on the SE 
Ownership of Secure Element is contentious 
Solution: Restrict access to the SE. There are 
no public Android APIs to access SE 
Google Confidential and Proprietary
What is Host Card Emulation? 
HCE allows Android to emulate a NFC smart 
card without requiring a secure element 
This enables innovation for many new use 
cases such as building access, mass transit 
and loyalty 
Works alongside other card emulation modes 
on secure element based solutions 
Google Confidential and Proprietary
HCE Architecture 
Google Confidential and Proprietary
Google Confidential and Proprietary
HCE Development - Two Stages 
App selection: Which app should be selected 
when you tap your phone to a reader? 
Data transfer: How do you actually send and 
receive data to and from the NFC reader? 
Google Confidential and Proprietary
HCE - App Selection 
App 1 App 2 App 3 
Google Confidential and Proprietary 
? 
NFC Reader
HCE - AID Registration 
F506 
App 1 App 2 App 3 
Google Confidential and Proprietary 
NFC Reader 
AID: F506 
F123 
F932 
F999 F007
AID Querying 
NFC 
Reader 
Google Confidential and Proprietary 
App X 
AID: F56 
Select AID “F12” 
Android 
OS 
“Not found” 
Lookup, app 
not found 
Lookup, resolve to app X 
Select AID “F56” 
Select AID “F56” 
OK + Response Data 
Command 
Response
Conflict resolution - AID Categories 
If conflict, then 
automatically choose 
“Default” app 
Google Confidential and Proprietary 
AID Categories 
App X App Y 
AID F123 
AID F078 
AID F123 
AID F234 
Default 
Select AID 
F123
Conflict resolution - AID Categories 
If no “Default”, then ask 
user 
Google Confidential and Proprietary 
Complete action with: 
App X 
App Y 
Select AID 
F123
Conflict resolution - AID Categories 
Two AID Categories: Payments & Other 
Payments category has a system UX so users 
can choose their default wallet app. 
With a default wallet app, users can pay with 
one tap rather than selecting wallet at payment 
time 
Google Confidential and Proprietary
Payments! 
An example of how AID selection works at 
payment terminals 
Consumers can have multiple wallet/loyalty 
apps, and multiple cards within each app. 
How does AID selection work in this case? 
Google Confidential and Proprietary
Payments -- Naïve AID Selection 
NFC 
Reader 
Select MasterCard AID 
Select Discover AID 
Select AmEx AID 
Google Confidential and Proprietary 
Wallet X 
AID: F56 
Select Visa AID 
Android 
OS 
Not Found 
Lookup, resolve to 
Wallet X 
Select AID “F56” 
Not Found 
Not Found 
Not Found
Payments -- The Fast Method (EMV) 
NFC 
Reader 
Google Confidential and Proprietary 
Wallet X 
AID: F56 
Android 
OS 
What Payment 
AIDs do you have? 
I have “F56”, “F12” 
Lookup, resolve 
to app X 
Select F56 
Select AID “F56” 
Wallet A 
AID: F12
AID Selection - Review 
Apps register one or many AIDs in manifest. 
Readers select apps by querying with AIDs. 
Conflicts either resolved automatically 
(payments) or by user 
Google Confidential and Proprietary
Sending + Receiving Data 
Use a Service that is always listening for NFC. 
Two modes: you can indicate if you need the 
screen to be unlocked or not. Locked mode 
can overlay UI on lock screen. 
For example with a wallet app, you might want 
the phone to be unlocked for security. 
Google Confidential and Proprietary
Sending + Receiving Data 
public class MyHostApduService 
extends HostApduService { 
public byte[] processCommandApdu(byte[]apdu, 
Bundle extras) {} 
public void onDeactivated(int reason) {} 
} 
Google Confidential and Proprietary
Sending + Receiving Data 
public byte[] processCommandApdu(byte[] apdu, 
Bundle extras) {} 
Return byte[ ] 
which get sent to 
the reader 
Google Confidential and Proprietary 
Receive byte[ ] 
when function 
gets called
Sending + Receiving Data 
public byte[] processCommandApdu(byte[] apdu, 
Bundle extras) {} 
Since this is called on the main thread, you should return 
ASAP. If you need to do processing, return null. Then call 
sendResponseApdu() later. 
Google Confidential and Proprietary
Reader APIs 
HCE lets your phone act as a NFC card 
With the Reader APIs, your phone can also act 
as an NFC terminal 
Testing is convenient since you can use two 
phones to simulate a NFC card and a reader 
Google Confidential and Proprietary
Use Cases - Loyalty 
Google Confidential and Proprietary
Use Cases - Building access 
Google Confidential and Proprietary
Use Cases - Transit 
Google Confidential and Proprietary
NFC - The Future 
400M NFC smart phones shipped in 2014. 
By October 2015, Chip & Pin cards will replace 
regular cards in the US. This means new 
terminals which probably have NFC 
By 2017, 32% of all actively used smart phones 
will have NFC (2.1B phones) 
Google Confidential and Proprietary
Conclusion 
HCE allows an NFC reader to directly 
communicate with your Android app with just 
a tap 
With the Reader APIs, your phone can also act 
as an NFC terminal 
NFC has the potential to be really big, but we 
need developers like you for novel apps! 
Google Confidential and Proprietary
Google Confidential and Proprietary 
Questions?
Google Confidential and Proprietary 
Thanks! 
Stop by the NFC Forum booth #401 to learn more 
about the possibilities of developing with NFC. 
Enter your name for a chance to win a Sony 
Action Cam with GPS!

Weitere ähnliche Inhalte

Was ist angesagt? (20)

WPA 3
WPA 3WPA 3
WPA 3
 
WPA-3: SEA and Dragonfly
WPA-3: SEA and DragonflyWPA-3: SEA and Dragonfly
WPA-3: SEA and Dragonfly
 
CNIT 123: 6: Enumeration
CNIT 123: 6: EnumerationCNIT 123: 6: Enumeration
CNIT 123: 6: Enumeration
 
SSL/TLS
SSL/TLSSSL/TLS
SSL/TLS
 
Wireless network security
Wireless network securityWireless network security
Wireless network security
 
Covid-19 vaccines
Covid-19 vaccinesCovid-19 vaccines
Covid-19 vaccines
 
Covid 19
Covid 19Covid 19
Covid 19
 
Hacking Wireless Networks : Null Delhi (November)
Hacking Wireless Networks : Null Delhi (November)Hacking Wireless Networks : Null Delhi (November)
Hacking Wireless Networks : Null Delhi (November)
 
Unit 4
Unit 4Unit 4
Unit 4
 
Novel corona virus (COVID-19) its cause, symptoms and treatment
Novel corona virus (COVID-19) its cause, symptoms and treatmentNovel corona virus (COVID-19) its cause, symptoms and treatment
Novel corona virus (COVID-19) its cause, symptoms and treatment
 
Wireless Cracking using Kali
Wireless Cracking using KaliWireless Cracking using Kali
Wireless Cracking using Kali
 
Covid 19
Covid 19 Covid 19
Covid 19
 
Wireless Networking Security
Wireless Networking SecurityWireless Networking Security
Wireless Networking Security
 
Cryptographie
CryptographieCryptographie
Cryptographie
 
Intro to modern cryptography
Intro to modern cryptographyIntro to modern cryptography
Intro to modern cryptography
 
12 symmetric key cryptography
12   symmetric key cryptography12   symmetric key cryptography
12 symmetric key cryptography
 
End to End Encryption in 10 minutes -
End to End Encryption in 10 minutes - End to End Encryption in 10 minutes -
End to End Encryption in 10 minutes -
 
Wireless Network Security
Wireless Network SecurityWireless Network Security
Wireless Network Security
 
Wi-fi Hacking
Wi-fi HackingWi-fi Hacking
Wi-fi Hacking
 
Chap4
Chap4Chap4
Chap4
 

Andere mochten auch

What is Host Card Emulation (HCE)?
What is Host Card Emulation (HCE)?What is Host Card Emulation (HCE)?
What is Host Card Emulation (HCE)?Rambus Inc
 
What is a Token Service Provider?
What is a Token Service Provider?What is a Token Service Provider?
What is a Token Service Provider?Rambus Inc
 
What is Payment Tokenization?
What is Payment Tokenization?What is Payment Tokenization?
What is Payment Tokenization?Rambus Inc
 
NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?NFC Forum
 
DC4420 2014 - NFC - The Non-Radio Bits
DC4420 2014 - NFC - The Non-Radio BitsDC4420 2014 - NFC - The Non-Radio Bits
DC4420 2014 - NFC - The Non-Radio BitsTom Keetch
 
NFC technical presentation
NFC technical presentationNFC technical presentation
NFC technical presentationAkshat Rohatgi
 
Architecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsArchitecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsThomas de Lazzari
 
NFC Bootcamp Seattle Day 1
NFC Bootcamp Seattle Day 1NFC Bootcamp Seattle Day 1
NFC Bootcamp Seattle Day 1traceebeebe
 
HCE and Beyond: How Early Opportunities Can Accelerate NFC Growth
HCE and Beyond: How Early Opportunities Can Accelerate NFC GrowthHCE and Beyond: How Early Opportunities Can Accelerate NFC Growth
HCE and Beyond: How Early Opportunities Can Accelerate NFC GrowthNFC Forum
 
Host Card Emulation in Android: What Does it Mean?
Host Card Emulation in Android: What Does it Mean?Host Card Emulation in Android: What Does it Mean?
Host Card Emulation in Android: What Does it Mean?Rambus Inc
 
The Impact of HCE on NFC Adoption
The Impact of HCE on NFC AdoptionThe Impact of HCE on NFC Adoption
The Impact of HCE on NFC AdoptionPaula Hunter
 
HCE cloud payments internet services August 2015
HCE cloud payments internet services August 2015HCE cloud payments internet services August 2015
HCE cloud payments internet services August 2015Chandra Patni
 
Understanding Digital Payments
Understanding Digital PaymentsUnderstanding Digital Payments
Understanding Digital PaymentsSantosh Potadar
 
Cloud payments (HCE): a simpler step with Thales HSMs
Cloud payments (HCE): a simpler step with Thales HSMsCloud payments (HCE): a simpler step with Thales HSMs
Cloud payments (HCE): a simpler step with Thales HSMsThales e-Security
 
Marketing strategy for launching mobile money services in Mexico
Marketing strategy for launching mobile money services in MexicoMarketing strategy for launching mobile money services in Mexico
Marketing strategy for launching mobile money services in MexicoAshish Tandon
 

Andere mochten auch (20)

HCE tutorial
HCE tutorialHCE tutorial
HCE tutorial
 
Host Card Emulation
Host Card Emulation Host Card Emulation
Host Card Emulation
 
What is Host Card Emulation (HCE)?
What is Host Card Emulation (HCE)?What is Host Card Emulation (HCE)?
What is Host Card Emulation (HCE)?
 
What is a Token Service Provider?
What is a Token Service Provider?What is a Token Service Provider?
What is a Token Service Provider?
 
What is Payment Tokenization?
What is Payment Tokenization?What is Payment Tokenization?
What is Payment Tokenization?
 
NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?NFC And HCE 2016 - What’s Next?
NFC And HCE 2016 - What’s Next?
 
DC4420 2014 - NFC - The Non-Radio Bits
DC4420 2014 - NFC - The Non-Radio BitsDC4420 2014 - NFC - The Non-Radio Bits
DC4420 2014 - NFC - The Non-Radio Bits
 
Nfc ppt
Nfc pptNfc ppt
Nfc ppt
 
NFC technical presentation
NFC technical presentationNFC technical presentation
NFC technical presentation
 
Architecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsArchitecture and Development of NFC Applications
Architecture and Development of NFC Applications
 
NFC Bootcamp Seattle Day 1
NFC Bootcamp Seattle Day 1NFC Bootcamp Seattle Day 1
NFC Bootcamp Seattle Day 1
 
HCE and Beyond: How Early Opportunities Can Accelerate NFC Growth
HCE and Beyond: How Early Opportunities Can Accelerate NFC GrowthHCE and Beyond: How Early Opportunities Can Accelerate NFC Growth
HCE and Beyond: How Early Opportunities Can Accelerate NFC Growth
 
Host Card Emulation in Android: What Does it Mean?
Host Card Emulation in Android: What Does it Mean?Host Card Emulation in Android: What Does it Mean?
Host Card Emulation in Android: What Does it Mean?
 
The Impact of HCE on NFC Adoption
The Impact of HCE on NFC AdoptionThe Impact of HCE on NFC Adoption
The Impact of HCE on NFC Adoption
 
Secure shell protocol
Secure shell protocolSecure shell protocol
Secure shell protocol
 
Mobile Payments
Mobile PaymentsMobile Payments
Mobile Payments
 
HCE cloud payments internet services August 2015
HCE cloud payments internet services August 2015HCE cloud payments internet services August 2015
HCE cloud payments internet services August 2015
 
Understanding Digital Payments
Understanding Digital PaymentsUnderstanding Digital Payments
Understanding Digital Payments
 
Cloud payments (HCE): a simpler step with Thales HSMs
Cloud payments (HCE): a simpler step with Thales HSMsCloud payments (HCE): a simpler step with Thales HSMs
Cloud payments (HCE): a simpler step with Thales HSMs
 
Marketing strategy for launching mobile money services in Mexico
Marketing strategy for launching mobile money services in MexicoMarketing strategy for launching mobile money services in Mexico
Marketing strategy for launching mobile money services in Mexico
 

Ähnlich wie Android HCE: An intro into the world of NFC

Overview of Mobile Payment Systems
Overview of Mobile Payment SystemsOverview of Mobile Payment Systems
Overview of Mobile Payment SystemsAmit Naik
 
NFC Bridging the Internet of Things
NFC Bridging the Internet of ThingsNFC Bridging the Internet of Things
NFC Bridging the Internet of ThingsNFC Forum
 
NFC & The Growth of Connected Consumer Electronics Devices
NFC & The Growth of Connected Consumer Electronics DevicesNFC & The Growth of Connected Consumer Electronics Devices
NFC & The Growth of Connected Consumer Electronics DevicesNFC Forum
 
Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010
Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010
Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010Skills Matter
 
Mobile Developer's Guide To The Galaxy 11th edition
Mobile Developer's Guide To The Galaxy 11th editionMobile Developer's Guide To The Galaxy 11th edition
Mobile Developer's Guide To The Galaxy 11th editionMarco Tabor
 
Mobil Uygulama Geliştirme Klavuzu
Mobil Uygulama Geliştirme KlavuzuMobil Uygulama Geliştirme Klavuzu
Mobil Uygulama Geliştirme KlavuzuSybase Türkiye
 
Android operating system-Ppt.pptx
Android operating system-Ppt.pptxAndroid operating system-Ppt.pptx
Android operating system-Ppt.pptxMaryamIrfan32
 
NFC Everywhere Brochure 2016_WEB
NFC Everywhere Brochure 2016_WEBNFC Everywhere Brochure 2016_WEB
NFC Everywhere Brochure 2016_WEBRichard Schmidmaier
 
NFC Everywhere Brochure 2016
NFC Everywhere Brochure 2016NFC Everywhere Brochure 2016
NFC Everywhere Brochure 2016Laurent Dardé
 
Home Security App Development.docx
Home Security App Development.docxHome Security App Development.docx
Home Security App Development.docxCMARIX TechnoLabs
 
VMworld 2013: Android in the enterprise: Understand the challenges and how to...
VMworld 2013: Android in the enterprise: Understand the challenges and how to...VMworld 2013: Android in the enterprise: Understand the challenges and how to...
VMworld 2013: Android in the enterprise: Understand the challenges and how to...VMworld
 
UNIT_1_1626771386169.ppt
UNIT_1_1626771386169.pptUNIT_1_1626771386169.ppt
UNIT_1_1626771386169.pptHannaAnvar1
 
2 5420641613980373911
2 54206416139803739112 5420641613980373911
2 5420641613980373911Ahmed AS
 
Android-Ppt.pptx
Android-Ppt.pptxAndroid-Ppt.pptx
Android-Ppt.pptxHarshOjha29
 

Ähnlich wie Android HCE: An intro into the world of NFC (20)

safe journey
safe journeysafe journey
safe journey
 
Overview of Mobile Payment Systems
Overview of Mobile Payment SystemsOverview of Mobile Payment Systems
Overview of Mobile Payment Systems
 
Google Wallet by Gokul raj (BMIT, Jaipur)
Google Wallet by Gokul raj (BMIT, Jaipur)Google Wallet by Gokul raj (BMIT, Jaipur)
Google Wallet by Gokul raj (BMIT, Jaipur)
 
Introduction to NFC
Introduction to NFCIntroduction to NFC
Introduction to NFC
 
NFC Bridging the Internet of Things
NFC Bridging the Internet of ThingsNFC Bridging the Internet of Things
NFC Bridging the Internet of Things
 
NFC & The Growth of Connected Consumer Electronics Devices
NFC & The Growth of Connected Consumer Electronics DevicesNFC & The Growth of Connected Consumer Electronics Devices
NFC & The Growth of Connected Consumer Electronics Devices
 
Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010
Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010
Droidcon: Nick Hunn: Evolving past the fingertip- 29/10/2010
 
Mobile Developer's Guide To The Galaxy 11th edition
Mobile Developer's Guide To The Galaxy 11th editionMobile Developer's Guide To The Galaxy 11th edition
Mobile Developer's Guide To The Galaxy 11th edition
 
Mobil Uygulama Geliştirme Klavuzu
Mobil Uygulama Geliştirme KlavuzuMobil Uygulama Geliştirme Klavuzu
Mobil Uygulama Geliştirme Klavuzu
 
Android operating system-Ppt.pptx
Android operating system-Ppt.pptxAndroid operating system-Ppt.pptx
Android operating system-Ppt.pptx
 
FingerprintTouch
FingerprintTouchFingerprintTouch
FingerprintTouch
 
NFC Everywhere Brochure 2016_WEB
NFC Everywhere Brochure 2016_WEBNFC Everywhere Brochure 2016_WEB
NFC Everywhere Brochure 2016_WEB
 
NFC Everywhere Brochure 2016
NFC Everywhere Brochure 2016NFC Everywhere Brochure 2016
NFC Everywhere Brochure 2016
 
Home Security App Development.docx
Home Security App Development.docxHome Security App Development.docx
Home Security App Development.docx
 
VMworld 2013: Android in the enterprise: Understand the challenges and how to...
VMworld 2013: Android in the enterprise: Understand the challenges and how to...VMworld 2013: Android in the enterprise: Understand the challenges and how to...
VMworld 2013: Android in the enterprise: Understand the challenges and how to...
 
UNIT_1_1626771386169.ppt
UNIT_1_1626771386169.pptUNIT_1_1626771386169.ppt
UNIT_1_1626771386169.ppt
 
2 5420641613980373911
2 54206416139803739112 5420641613980373911
2 5420641613980373911
 
Android-Ppt.pptx
Android-Ppt.pptxAndroid-Ppt.pptx
Android-Ppt.pptx
 
NFC and the Salesforce Mobile SDK
NFC and the Salesforce Mobile SDKNFC and the Salesforce Mobile SDK
NFC and the Salesforce Mobile SDK
 
Government Approach to Apps
Government Approach to AppsGovernment Approach to Apps
Government Approach to Apps
 

Mehr von NFC Forum

NFC Forum Technology Roadmap Webinar Slides
NFC Forum Technology Roadmap Webinar SlidesNFC Forum Technology Roadmap Webinar Slides
NFC Forum Technology Roadmap Webinar SlidesNFC Forum
 
NFC Forum Healthcare Webinar
NFC Forum Healthcare WebinarNFC Forum Healthcare Webinar
NFC Forum Healthcare WebinarNFC Forum
 
NFC Forum Wireless Charging Webinar
NFC Forum Wireless Charging WebinarNFC Forum Wireless Charging Webinar
NFC Forum Wireless Charging WebinarNFC Forum
 
Beyond Payment: Deploying NFC at Scale
Beyond Payment: Deploying NFC at ScaleBeyond Payment: Deploying NFC at Scale
Beyond Payment: Deploying NFC at ScaleNFC Forum
 
NFC Charging for Enterprise Class Devices
NFC Charging  for Enterprise Class DevicesNFC Charging  for Enterprise Class Devices
NFC Charging for Enterprise Class DevicesNFC Forum
 
The Commons Project
The Commons ProjectThe Commons Project
The Commons ProjectNFC Forum
 
SpokenRX Use Case
SpokenRX Use CaseSpokenRX Use Case
SpokenRX Use CaseNFC Forum
 
Innovative NFC Use Cases
Innovative NFC Use CasesInnovative NFC Use Cases
Innovative NFC Use CasesNFC Forum
 
How eBay Achieved a 90% Customer Satisfaction Rate with NFC
How eBay Achieved a 90% Customer Satisfaction Rate with NFCHow eBay Achieved a 90% Customer Satisfaction Rate with NFC
How eBay Achieved a 90% Customer Satisfaction Rate with NFCNFC Forum
 
NFC Forum Story
NFC Forum StoryNFC Forum Story
NFC Forum StoryNFC Forum
 
ABI Research NFC Consumer Experience Survey Results
ABI Research NFC Consumer Experience Survey ResultsABI Research NFC Consumer Experience Survey Results
ABI Research NFC Consumer Experience Survey ResultsNFC Forum
 
NFC Forum Certification Program Webinar
NFC Forum Certification Program WebinarNFC Forum Certification Program Webinar
NFC Forum Certification Program WebinarNFC Forum
 
Connecting the Unconnected: The Unique Power of NFC in IoT Data Acquisition
Connecting the Unconnected: The Unique Power of NFC in IoT Data AcquisitionConnecting the Unconnected: The Unique Power of NFC in IoT Data Acquisition
Connecting the Unconnected: The Unique Power of NFC in IoT Data AcquisitionNFC Forum
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum
 
Management and Use of Identities in Mobility and Transport Powered by NFC Tec...
Management and Use of Identities in Mobility and Transport Powered by NFC Tec...Management and Use of Identities in Mobility and Transport Powered by NFC Tec...
Management and Use of Identities in Mobility and Transport Powered by NFC Tec...NFC Forum
 
NFC Forum User Experience Survey Update
NFC Forum User Experience Survey UpdateNFC Forum User Experience Survey Update
NFC Forum User Experience Survey UpdateNFC Forum
 

Mehr von NFC Forum (20)

NFC Forum Technology Roadmap Webinar Slides
NFC Forum Technology Roadmap Webinar SlidesNFC Forum Technology Roadmap Webinar Slides
NFC Forum Technology Roadmap Webinar Slides
 
NFC Forum Healthcare Webinar
NFC Forum Healthcare WebinarNFC Forum Healthcare Webinar
NFC Forum Healthcare Webinar
 
NFC Forum Wireless Charging Webinar
NFC Forum Wireless Charging WebinarNFC Forum Wireless Charging Webinar
NFC Forum Wireless Charging Webinar
 
Beyond Payment: Deploying NFC at Scale
Beyond Payment: Deploying NFC at ScaleBeyond Payment: Deploying NFC at Scale
Beyond Payment: Deploying NFC at Scale
 
NFC Charging for Enterprise Class Devices
NFC Charging  for Enterprise Class DevicesNFC Charging  for Enterprise Class Devices
NFC Charging for Enterprise Class Devices
 
The Commons Project
The Commons ProjectThe Commons Project
The Commons Project
 
SpokenRX Use Case
SpokenRX Use CaseSpokenRX Use Case
SpokenRX Use Case
 
Innovative NFC Use Cases
Innovative NFC Use CasesInnovative NFC Use Cases
Innovative NFC Use Cases
 
How eBay Achieved a 90% Customer Satisfaction Rate with NFC
How eBay Achieved a 90% Customer Satisfaction Rate with NFCHow eBay Achieved a 90% Customer Satisfaction Rate with NFC
How eBay Achieved a 90% Customer Satisfaction Rate with NFC
 
NFC Forum Story
NFC Forum StoryNFC Forum Story
NFC Forum Story
 
ABI Research NFC Consumer Experience Survey Results
ABI Research NFC Consumer Experience Survey ResultsABI Research NFC Consumer Experience Survey Results
ABI Research NFC Consumer Experience Survey Results
 
NFC Forum Certification Program Webinar
NFC Forum Certification Program WebinarNFC Forum Certification Program Webinar
NFC Forum Certification Program Webinar
 
Connecting the Unconnected: The Unique Power of NFC in IoT Data Acquisition
Connecting the Unconnected: The Unique Power of NFC in IoT Data AcquisitionConnecting the Unconnected: The Unique Power of NFC in IoT Data Acquisition
Connecting the Unconnected: The Unique Power of NFC in IoT Data Acquisition
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case Studies
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case Studies
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case Studies
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case Studies
 
NFC Forum MaaS Case Studies
NFC Forum MaaS Case StudiesNFC Forum MaaS Case Studies
NFC Forum MaaS Case Studies
 
Management and Use of Identities in Mobility and Transport Powered by NFC Tec...
Management and Use of Identities in Mobility and Transport Powered by NFC Tec...Management and Use of Identities in Mobility and Transport Powered by NFC Tec...
Management and Use of Identities in Mobility and Transport Powered by NFC Tec...
 
NFC Forum User Experience Survey Update
NFC Forum User Experience Survey UpdateNFC Forum User Experience Survey Update
NFC Forum User Experience Survey Update
 

Kürzlich hochgeladen

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Kürzlich hochgeladen (20)

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Android HCE: An intro into the world of NFC

  • 1. Android HCE An intro into the world of NFC Neel Rao
  • 2. NFC - Intro NFC (Near Field Communication) is a form of short range (a few cms) wireless comm. Powered through modulated magnetic field Google Confidential and Proprietary
  • 3. NFC - Intro NFC Smart Cards can have functional applets (Java Card) Capable of storage, reading, crypto, etc. Google Confidential and Proprietary
  • 4. NFC - Intro Throughput is low, but useful for transferring URLs or small chunks of data (106-424 kbit/s) Action is very specific, the short range makes the intent clear Google Confidential and Proprietary
  • 5. NFC - Smart Phones With smart phones the next logical step was to move the NFC hardware inside Google Confidential and Proprietary
  • 6. NFC - Secure Element? Basically is equivalent to taking the hardware in a NFC card and putting it in your phone. Hardware component with built in “applets” and resilient tamper-proofing. Two types UICC (SIM card) and eSE (NFC controller) Google Confidential and Proprietary
  • 7. SE-Based Architecture Google Confidential and Proprietary
  • 8. Secure Element - Tradeoffs Payment applets on the SE contain sensitive data and require increased security Limited space on the SE Ownership of Secure Element is contentious Solution: Restrict access to the SE. There are no public Android APIs to access SE Google Confidential and Proprietary
  • 9. What is Host Card Emulation? HCE allows Android to emulate a NFC smart card without requiring a secure element This enables innovation for many new use cases such as building access, mass transit and loyalty Works alongside other card emulation modes on secure element based solutions Google Confidential and Proprietary
  • 10. HCE Architecture Google Confidential and Proprietary
  • 11. Google Confidential and Proprietary
  • 12. HCE Development - Two Stages App selection: Which app should be selected when you tap your phone to a reader? Data transfer: How do you actually send and receive data to and from the NFC reader? Google Confidential and Proprietary
  • 13. HCE - App Selection App 1 App 2 App 3 Google Confidential and Proprietary ? NFC Reader
  • 14. HCE - AID Registration F506 App 1 App 2 App 3 Google Confidential and Proprietary NFC Reader AID: F506 F123 F932 F999 F007
  • 15. AID Querying NFC Reader Google Confidential and Proprietary App X AID: F56 Select AID “F12” Android OS “Not found” Lookup, app not found Lookup, resolve to app X Select AID “F56” Select AID “F56” OK + Response Data Command Response
  • 16. Conflict resolution - AID Categories If conflict, then automatically choose “Default” app Google Confidential and Proprietary AID Categories App X App Y AID F123 AID F078 AID F123 AID F234 Default Select AID F123
  • 17. Conflict resolution - AID Categories If no “Default”, then ask user Google Confidential and Proprietary Complete action with: App X App Y Select AID F123
  • 18. Conflict resolution - AID Categories Two AID Categories: Payments & Other Payments category has a system UX so users can choose their default wallet app. With a default wallet app, users can pay with one tap rather than selecting wallet at payment time Google Confidential and Proprietary
  • 19. Payments! An example of how AID selection works at payment terminals Consumers can have multiple wallet/loyalty apps, and multiple cards within each app. How does AID selection work in this case? Google Confidential and Proprietary
  • 20. Payments -- Naïve AID Selection NFC Reader Select MasterCard AID Select Discover AID Select AmEx AID Google Confidential and Proprietary Wallet X AID: F56 Select Visa AID Android OS Not Found Lookup, resolve to Wallet X Select AID “F56” Not Found Not Found Not Found
  • 21. Payments -- The Fast Method (EMV) NFC Reader Google Confidential and Proprietary Wallet X AID: F56 Android OS What Payment AIDs do you have? I have “F56”, “F12” Lookup, resolve to app X Select F56 Select AID “F56” Wallet A AID: F12
  • 22. AID Selection - Review Apps register one or many AIDs in manifest. Readers select apps by querying with AIDs. Conflicts either resolved automatically (payments) or by user Google Confidential and Proprietary
  • 23. Sending + Receiving Data Use a Service that is always listening for NFC. Two modes: you can indicate if you need the screen to be unlocked or not. Locked mode can overlay UI on lock screen. For example with a wallet app, you might want the phone to be unlocked for security. Google Confidential and Proprietary
  • 24. Sending + Receiving Data public class MyHostApduService extends HostApduService { public byte[] processCommandApdu(byte[]apdu, Bundle extras) {} public void onDeactivated(int reason) {} } Google Confidential and Proprietary
  • 25. Sending + Receiving Data public byte[] processCommandApdu(byte[] apdu, Bundle extras) {} Return byte[ ] which get sent to the reader Google Confidential and Proprietary Receive byte[ ] when function gets called
  • 26. Sending + Receiving Data public byte[] processCommandApdu(byte[] apdu, Bundle extras) {} Since this is called on the main thread, you should return ASAP. If you need to do processing, return null. Then call sendResponseApdu() later. Google Confidential and Proprietary
  • 27. Reader APIs HCE lets your phone act as a NFC card With the Reader APIs, your phone can also act as an NFC terminal Testing is convenient since you can use two phones to simulate a NFC card and a reader Google Confidential and Proprietary
  • 28. Use Cases - Loyalty Google Confidential and Proprietary
  • 29. Use Cases - Building access Google Confidential and Proprietary
  • 30. Use Cases - Transit Google Confidential and Proprietary
  • 31. NFC - The Future 400M NFC smart phones shipped in 2014. By October 2015, Chip & Pin cards will replace regular cards in the US. This means new terminals which probably have NFC By 2017, 32% of all actively used smart phones will have NFC (2.1B phones) Google Confidential and Proprietary
  • 32. Conclusion HCE allows an NFC reader to directly communicate with your Android app with just a tap With the Reader APIs, your phone can also act as an NFC terminal NFC has the potential to be really big, but we need developers like you for novel apps! Google Confidential and Proprietary
  • 33. Google Confidential and Proprietary Questions?
  • 34. Google Confidential and Proprietary Thanks! Stop by the NFC Forum booth #401 to learn more about the possibilities of developing with NFC. Enter your name for a chance to win a Sony Action Cam with GPS!