Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: ISO7816/CEPAS speed-ups to make Android Pay work#705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
micolous wants to merge2 commits intometrodroid:master
base:master
Choose a base branch
Loading
frommicolous:iso-cepas-speedup

Conversation

micolous
Copy link
Collaborator

  • CEPAS: removes earlydumpAllSfis. This saves about 1.6 sec reading CEPAS and EMV cards. The data here is never actually used by Metrodroid as far as I can tell, and it isalso available in other places:

    • SFI 16 =:3f00:4000:10
    • SFI 22 =:3f00:4000:16
    • SFI 23 =:3f00:4000:17
  • EMV: Makes the GPO authorised for USD 0.00, rather than USD 0.01

  • ISO: Add some more error conditions, and bail out earlier onfile not found andsecurity status not satisfied

  • EMV: Bail out early when reading if the first batch of SFIs returns null 3/3, rather than continuing to read (which helps with Android Pay)

This seems to be good enough to letjvmcli sort-of read from Android Pay EMV -- it does time out in a later stage, but pulling the phone away from the reader still shows valid data.

I'm still able to read a CEPAS not affected by#366 in jvmcli with this patch.

I still need to do some more testing on this to ensure nothing else broke.

} catch (e: Exception) {
null
null // but continue
}

val records : MutableMap<Int, ImmutableByteArray> = mutableMapOf()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think this part and its dependencies can be committed. Not sure how I feel about skipping SFI dumping though

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

@phcoderphcoderphcoder left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@micolous@phcoder

[8]ページ先頭

©2009-2025 Movatter.jp