Android는 오프 호스트 카드 에뮬레이션에 관한 보안 요소가 있는 NFC 카드 에뮬레이션을 지원합니다. 자세한 내용은 호스트 기반 카드 에뮬레이션 개요를 참조하세요.
Android 플랫폼에서 탭앤페이 설정에 지정된 기본 결제 서비스가 항상 보안 요소에 있는 앱과 동기화되는 것은 아닙니다. 즉, 보안 요소에서 기본 결제 서비스 대신 기본이 아닌 결제 서비스가 사용될 수 있습니다.
Android 11에서 오프 호스트 결제 동기화 기능은 탭앤페이의 설정, 미접촉 결제 프런트엔드 (CLF)의 경로 지정 설정, 보안 요소의 앱 지정 상태를 동기화하도록 해 주는 메커니즘을 제공합니다.
다음 다이어그램은 오프 호스트 결제 동기화 기능의 설계 아키텍처를 보여 줍니다.
그림 1. 오프 호스트 결제 동기화 설계 아키텍처
구현
오프 호스트 결제 동기화 기능을 구현하려면 기기에는 NCI 2.0 표준을 지원하는 NFC 컨트롤러가 있어야 하며, Android 오픈소스 프로젝트 NFC 및 Open Mobile 애플리케이션 프로그래밍 인터페이스(OMAPI) 프레임워크를 사용해야 합니다.
프레임워크 API
오프 호스트 결제 동기화를 구현하려면 Android 오픈소스 프로젝트에 있는 다음 프레임워크 API를 사용하세요.
오프 호스트 결제 동기화 기능 구현의 유효성 검사를 실행하려면 해당 보안 요소가 포함된 보안 요소 앱을 설치한 후 다양한 조건에서 NFC 리더로부터 적절한 응답이 수신되는지 확인합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# NFC off-host payment synchronization\n\nAndroid supports NFC card emulation with a secure element for off-host card\nemulation. (For more information, see\n[Host-based card emulation overview](https://developer.android.com/guide/topics/connectivity/nfc/hce).)\nHowever, on the Android platform, the preferred payment service specified in the\nTap \\& pay setting isn't always synchronized with the app in the secure\nelement. This means it's possible that a nonpreferred payment service in the\nsecure element is used instead of the preferred payment service.\n\nIn Android 11, the *off-host payment synchronization*\nfeature provides a mechanism that lets you synchronize the payment\nconfiguration in Tap \\& pay, the routing configuration on the contactless\nfrontend (CLF), and the app-selected state in the secure element.\n\nThe following diagram illustrates the design architecture of the off-host\npayment synchronization feature.\n**Figure 1.** Off host payment synchronization design architecture\n\nImplementation\n--------------\n\nTo implement the off-host payment synchronization feature, the device must have\nan NFC controller that supports the NCI 2.0 standard and must use the Android\nOpen Source Project NFC and Open Mobile Application Programming Interface\n(OMAPI) frameworks.\n\n### Framework APIs\n\nTo implement off-host payment synchronization, use the following framework APIs\nfound in the Android Open Source Project:\n\n- [`getAidsForPreferredPaymentService()`](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation#getAidsForPreferredPaymentService()): Retrieves the registered AIDs for the preferred payment service.\n- [`getRouteDestinationForPreferredPaymentService()`](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation#getDescriptionForPreferredPaymentService()): Retrieves the route destination for the preferred payment service.\n- [`getDescriptionForPreferredPaymentService()`](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation#getRouteDestinationForPreferredPaymentService()): Returns a user-visible description of the preferred payment service.\n- [`android.permission.NFC_PREFERRED_PAYMENT_INFO`](https://developer.android.com/reference/android/Manifest.permission#NFC_PREFERRED_PAYMENT_INFO) (permission): Allows apps to receive NFC preferred payment service information.\n- [`android.nfc.action.PREFERRED_PAYMENT_CHANGED`](https://developer.android.com/sdk/api_diff/r-dp1/changes/android.nfc.NfcAdapter) (broadcast action): Intent to notify if the preferred payment service changed.\n\nValidation\n----------\n\nTo validate your implementation of the off-host payment synchronization feature,\ninstall secure element apps with corresponding secure elements and then check\nfor appropriate responses from an NFC reader in different conditions."]]