parent
c084950eb1
commit
9d2a167c0c
@ -0,0 +1,16 @@
|
||||
package moe.tqlwsl.aicemu
|
||||
|
||||
import android.nfc.cardemulation.HostApduService
|
||||
import android.os.Bundle
|
||||
|
||||
|
||||
class ApduService : HostApduService() {
|
||||
override fun onDeactivated(reason: Int) {
|
||||
// placeholder
|
||||
}
|
||||
|
||||
override fun processCommandApdu(commandApdu: ByteArray, extras: Bundle): ByteArray {
|
||||
// placeholder
|
||||
return ByteArray(0)
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:apduServiceBanner="@drawable/aic_fill"
|
||||
android:description="@string/apdu_service_desc"
|
||||
android:requireDeviceUnlock="false" >
|
||||
<aid-group
|
||||
android:category="payment"
|
||||
android:description="@string/apdu_service_desc" >
|
||||
<aid-filter android:name="F0010203040506" />
|
||||
</aid-group>
|
||||
</host-apdu-service>
|
Loading…
Reference in new issue