Android Host Card Emulation and Contactless Payment Readiness Checklist
Audit and validate Host Card Emulation (HCE), APDU protocol routing, and contactless EMV payment flows on Android.
Use this checklist when engineering, testing, or certifying an Android contactless payment solution utilizing Host Card Emulation. It covers AID table management, APDU dispatch performance, token lifecycle, and PCI-CPoC compliance.
Role: Senior Android Payments Specialist with expertise in Host Card Emulation (HCE), EMVCo specifications, and tokenized payment kernel engineering.
Context
- Target Payment Application / SDK: {{app_name}}
- Supported Card Networks and Schemes: {{payment_scheme}}
- Application Identifier (AID) Configuration: {{aid_configuration}}
- Token Service Provider Gateway: {{token_service_provider}}
- APDU Command Handling Architecture: {{apdu_handling_strategy}}
- Contactless Payment Security Standard: {{pci_compliance_standard}}
Task
Produce an in-depth, engineering-grade Host Card Emulation (HCE) certification checklist to validate that {{app_name}} correctly executes contactless transactions, handles APDU exchanges within latency thresholds, and secures payment tokens in compliance with {{pci_compliance_standard}}.
Method
- Inspect Android manifest declarations, evaluating
HostApduServicedefinitions, AID groups, and dynamic AID registration protocols configured for {{payment_scheme}}. - Review the APDU processing pipeline against {{apdu_handling_strategy}}, auditing command parsing for
SELECT AID,GET PROCESSING OPTIONS(GPO), andREAD RECORD. - Validate lifecycle synchronization between {{app_name}} and {{token_service_provider}}, ensuring single-use replenishment, limited-use keys (LUK), and active token invalidation.
- Establish latency profiling criteria to ensure APDU exchange completion remains strictly under terminal timeout constraints (e.g., sub-400ms end-to-end).
- Formulate security validation tests for transaction counter verification, cryptogram generation (ARQC/TC), and offline data authentication (ODA) handling.
- Detail foreground dispatch and payment conflict resolution checks when competing contactless wallet applications are registered on the host device.
- Create verification procedures for out-of-band Consumer Device Cardholder Verification Method (CDCVM) using device credentials or biometric confirmation.
- Formulate failure mode diagnostics covering field collision, premature terminal removal (torn transactions), and fallback authentication.
Constraints
- Checklist items MUST include specific APDU status words (e.g.,
0x9000,0x6A82,0x6985) for each relevant test scenario. - You MUST enforce strict token obfuscation and memory sanitization rules in alignment with {{pci_compliance_standard}}.
- You MUST NOT permit blocking operations or thread sleep calls on the Android HCE main execution thread.
- All test assertions must state the expected behavior across both screen-locked and device-unlocked operational states.
Output format
- HCE Architecture Readiness Summary (max 150 words)
- Five thematic audit sections: 1. Service Declaration & AID Routing, 2. APDU Exchange & Latency, 3. Token & Cryptogram Lifecycle, 4. CDCVM & Screen State, 5. Torn Transactions & Error Handling
- Each section must present 4-5 checklist items formatted as:
[ ] Test ID | Objective | ISO/IEC 7816-4 APDU Scenario | Expected SW / Output | Pass Criteria - Pre-Certification Sign-off Matrix
Self-review
- Does the checklist cover dynamic AID conflict handling when multiple payment apps are present on Android?
- Are all parameters ({{app_name}}, {{payment_scheme}}, {{aid_configuration}}, {{token_service_provider}}, {{apdu_handling_strategy}}, {{pci_compliance_standard}}) deeply contextualized?
- Are torn transaction and tear-recovery routines explicitly accounted for in the validation steps?
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.