Step deploy-to-bitrise-io doesn’t like when we add the meta-data for NFC aid:
<meta-data
android:name="android.nfc.cardemulation.host_apdu_service"
android:resource="@xml/aid_list" />
The error:
Uploading apk file: /Users/vagrant/deploy/app-buildTest.apk
analyzing apk
Deploy failed, error: failed to get apk infos, output: package: name='[REDACTED].test' versionCode='35' versionName='5.1.3' platformBuildVersionName='5.1.3' compileSdkVersion='28' compileSdkVersionCodename='9'
sdkVersion:'23'
targetSdkVersion:'28'
…
application-icon-65534:'res/mipmap-anydpi-v26/ic_launcher.xml'
application: label='[REDACTED].test' icon='res/mipmap-anydpi-v26/ic_launcher.xml', error: signal: abort trap
- Apk works in real device.
- Build link: https://app.bitrise.io/build/e6aff7c427ec9fb8#?tab=log
- Refs: https://developer.android.com/guide/topics/connectivity/nfc/hce
- it also fails on latest version of “deploy-to-bitrise-io”
- again, as soon as I comment out the “meta-data” block in my AndroidManifest.xml, it builds but obviously doesn’t work as expected.
Here is my “aid_list.xml”:
<?xml version="1.0" encoding="utf-8"?>
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/service_name"
android:requireDeviceUnlock="false">
<aid-group
android:category="other"
android:description="@string/card_title">
<aid-filter android:name="A000000750" />
</aid-group>
</host-apdu-service>
Let me know if you need more info. I can post my AndroidManifest.xml if required.