Skip to content
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

Optimize much #363

Merged
merged 8 commits into from
Dec 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert changes
  • Loading branch information
Goooler committed Dec 28, 2021
commit ab986fc23591ca9e1f80ad7c173562708b86fd32
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,18 @@ public static int checkMifareClassicSupport(Tag tag, Context context) {
// MIFARE Plus EV1 2K/4K SL1
return -1;
} else {
return -1;
if ((sak & 1) == 1) { // SAK bit 1 = 1?
// MIFARE Mini
return -1;
} else {
// MIFARE Classic 1k
// MIFARE SmartMX 1k
// MIFARE Plus S 2K SL1
// MIFARE Plus X 2K SL1
// MIFARE Plus SE 1K
// MIFARE Plus EV1 2K/4K SL1
return -1;
}
}
} else {
// Some MIFARE tag, but not Classic or Classic compatible.
Expand Down