-
Notifications
You must be signed in to change notification settings - Fork 3.2k
nfc: DESFire fixes #1334
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nfc: DESFire fixes #1334
Conversation
Some cards are configured to refuse to provide key settings, but still provide other info. For example, Ubiquiti UniFi Protect access cards won't list keys or applications, but will still answer GET_FREE_MEMORY.
|
Hello @kevinwallace ! Could you please fix it in this PR? |
gornekich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add support for loading cards with 0 App count
|
Oops, sorry, I should have caught that! Thanks for the stack trace. Fixed in 1464afd, and verified saving and loading with the card shown in the photo above. (Also, noted that 0-byte mallocs are unsupported, will avoid those in the future) |
gornekich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* nfc: don't give up on reading DESFire card if GET_KEY_SETTINGS fails Some cards are configured to refuse to provide key settings, but still provide other info. For example, Ubiquiti UniFi Protect access cards won't list keys or applications, but will still answer GET_FREE_MEMORY. * nfc: don't show error when saving DESFire card with no applications * nfc: fix DESFire load with 0 applications or no PICC key settings Co-authored-by: Kevin Wallace <[email protected]> Co-authored-by: gornekich <[email protected]> Co-authored-by: あく <[email protected]>
What's new
Verification
FURI_LOG_Win a loop)A "UniFi Access" card can be used to test both of the above scenarios.
Checklist (For Reviewer)