SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
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!

Contenu connexe

Tendances

What is Payment Tokenization?
What is Payment Tokenization?What is Payment Tokenization?
What is Payment Tokenization?Rambus Inc
 
Secure QR code payment
Secure QR code paymentSecure QR code payment
Secure QR code paymentJames Wu
 
Unified payment interface and its security
Unified payment interface and its security Unified payment interface and its security
Unified payment interface and its security Akshay Dixit
 
Electronic payment system
Electronic payment systemElectronic payment system
Electronic payment systemSheetal goel
 
UPI Technology
UPI TechnologyUPI Technology
UPI Technologyindiastack
 
Moneypadppt 110917211442-phpapp02
Moneypadppt 110917211442-phpapp02Moneypadppt 110917211442-phpapp02
Moneypadppt 110917211442-phpapp02jackkhush
 
EMV Card Migration: How the EMV Transaction Flow Works
EMV Card Migration: How the EMV Transaction Flow WorksEMV Card Migration: How the EMV Transaction Flow Works
EMV Card Migration: How the EMV Transaction Flow WorksAnnMargaret Tutu (AMT)
 
Unified payments interface (upi)
Unified payments interface (upi)Unified payments interface (upi)
Unified payments interface (upi)Naina Singh
 
5 Ways to Protect your Mobile Security
5 Ways to Protect your Mobile Security5 Ways to Protect your Mobile Security
5 Ways to Protect your Mobile SecurityLookout
 

Tendances (20)

Money pad ppt
Money pad pptMoney pad ppt
Money pad ppt
 
What is Payment Tokenization?
What is Payment Tokenization?What is Payment Tokenization?
What is Payment Tokenization?
 
E wallet
E wallet E wallet
E wallet
 
Digital wallet
Digital walletDigital wallet
Digital wallet
 
Tokenisation 2.0
Tokenisation 2.0Tokenisation 2.0
Tokenisation 2.0
 
Secure QR code payment
Secure QR code paymentSecure QR code payment
Secure QR code payment
 
Unified payment interface and its security
Unified payment interface and its security Unified payment interface and its security
Unified payment interface and its security
 
Digital wallet
Digital walletDigital wallet
Digital wallet
 
Electronic payment system
Electronic payment systemElectronic payment system
Electronic payment system
 
Smart card ppt
Smart card pptSmart card ppt
Smart card ppt
 
Eyeos
EyeosEyeos
Eyeos
 
Smart cards
Smart cardsSmart cards
Smart cards
 
Introduction to emv
Introduction to emvIntroduction to emv
Introduction to emv
 
Mobile payment
Mobile paymentMobile payment
Mobile payment
 
UPI Technology
UPI TechnologyUPI Technology
UPI Technology
 
Moneypadppt 110917211442-phpapp02
Moneypadppt 110917211442-phpapp02Moneypadppt 110917211442-phpapp02
Moneypadppt 110917211442-phpapp02
 
EMV Card Migration: How the EMV Transaction Flow Works
EMV Card Migration: How the EMV Transaction Flow WorksEMV Card Migration: How the EMV Transaction Flow Works
EMV Card Migration: How the EMV Transaction Flow Works
 
Unified payments interface (upi)
Unified payments interface (upi)Unified payments interface (upi)
Unified payments interface (upi)
 
SMART CARD
SMART CARDSMART CARD
SMART CARD
 
5 Ways to Protect your Mobile Security
5 Ways to Protect your Mobile Security5 Ways to Protect your Mobile Security
5 Ways to Protect your Mobile Security
 

En vedette

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
 
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
 
Mobile Payment Value chain and Business Models
Mobile Payment Value chain and Business ModelsMobile Payment Value chain and Business Models
Mobile Payment Value chain and Business ModelsStomar
 
NFC near feald communication
NFC near feald communicationNFC near feald communication
NFC near feald communicationMADHANRAJXBOX360
 

En vedette (20)

HCE tutorial
HCE tutorialHCE tutorial
HCE tutorial
 
Host Card Emulation
Host Card Emulation Host Card Emulation
Host Card Emulation
 
What is a Token Service Provider?
What is a Token Service Provider?What is a Token Service Provider?
What is a Token Service Provider?
 
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
 
Mobile Payment Value chain and Business Models
Mobile Payment Value chain and Business ModelsMobile Payment Value chain and Business Models
Mobile Payment Value chain and Business Models
 
NFC near feald communication
NFC near feald communicationNFC near feald communication
NFC near feald communication
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

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!