我正在搜索Android源代码,因为我想了解何时解析应用程序的AndroidManifest.xml.
即如果应用程序注册NFC服务
<service
android:name=".demo.service.ApduService"
android:exported="true"
android:permission="android.permission.BIND_NFC_SERVICE">
<intent-filter>
<action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" />
</intent-filter>
<meta-data
android:name="android.nfc.cardemulation.host_apdu_service"
android:resource="@xml/apduservice" />
</service>
Run Code Online (Sandbox Code Playgroud)
使用以下apduservice.xml
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/servicedesc"
android:requireDeviceUnlock="false" >
<aid-group
android:category="other"
android:description="@string/aiddescription" >
<aid-filter android:name="23498234098234098" />
</aid-group>
Run Code Online (Sandbox Code Playgroud)
Android操作系统何时何地读取辅助过滤器并注册ID?
(我知道它将存储在哪里,以及如何存储,但我无法找到实际ID被提取并转发到NFC堆栈的事件)