Android HCE:关闭主机辅助设备不会路由到SE

时间:2015-01-13 19:17:33

标签: android android-4.4-kitkat hce

我正在使用Secure元素处理钱包应用程序。最近我更新了我们的支付代码,包括KitKat OS的OffHostApduService。我注册了所有卡AID以使用主机卡仿真。但是,当我们尝试付款时,艾滋病并不是针对SE的。在HTC M8手机上出现以下错误:

E/HostEmulationManager(19573): AID that was meant to go off-host was routed to host. Check routing table configuration.

以下是清单文件中的offhostapduservice条目:

<service android:exported="true" android:name=".MyOffHostApduService" android:permission="android.permission.BIND_NFC_SERVICE">
        <intent-filter>
            <action android:name="android.nfc.cardemulation.action.OFF_HOST_APDU_SERVICE"/>
        </intent-filter>

        <meta-data android:name="android.nfc.cardemulation.off_host_apdu_service" android:resource="@xml/apduservice"/>
    </service>

这是apdu服务xml文件:

<offhost-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:apduServiceBanner="@drawable/payment_banner"
android:description="@string/servicedesc" >

<aid-group
    android:category="payment"
    android:description="@string/paymentGroup" >
    // all aids go here
</aid-group>

真的很感激这个问题的任何想法。

由于

0 个答案:

没有答案