Skip to content

fix(hce): Fixed false failure due to to multiple Select App APDU calls#42

Open
chehsing wants to merge 1 commit intoappidea:masterfrom
chehsing:fix-ios-fail-result
Open

fix(hce): Fixed false failure due to to multiple Select App APDU calls#42
chehsing wants to merge 1 commit intoappidea:masterfrom
chehsing:fix-ios-fail-result

Conversation

@chehsing
Copy link

I encountered an issue with the SELECT_APP APDU command where the processCommandApdu is triggered twice. The first invocation returns R_APDU_OK, but the second invocation returns R_APDU_ERROR. This causes the first successful SELECT_APP response to be overwritten.

This issue is observed only when the HCE app interacts with iOS devices. I suspect it might be due to some changes with the latest Android version that causes this behaviour.

To resolve this, I have updated the sequence of when currentHCEApplication.processCommand(command) is called.

Before
Image (5)

After
Image (3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant