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

No valid key found in chosen key file #129

Closed
mark-monserrat opened this issue Apr 25, 2017 · 19 comments
Closed

No valid key found in chosen key file #129

mark-monserrat opened this issue Apr 25, 2017 · 19 comments

Comments

@mark-monserrat
Copy link

The app works fine at first, I can read/write data on d card. Then all of a sudden when I tried to increment sector 1 block 0, a toast appear saying No valid key found in chosen key file'. I'm sure I have the right keys. From then on I can't access the card anymore. It keeps showing 'No valid key found in chosen key file'.

@mark-monserrat
Copy link
Author

In addition even if I'm using same sets of key file, mapping process now takes longer compare on the time when the message 'No valid key found in chosen key file' is not appearing.

@mark-monserrat
Copy link
Author

As far as I remember, the keys I used for A and B is 000000000000

@ikarus23
Copy link
Owner

Hi,
so after you've used the increment function of MCT on sector 1 block 0 you are no longer able to access the whole card? That sounds strange.

Maybe this has something to do with #66. However, I was never able to reproduce this behavior.

What device are you using? Do you have access to another device to verify that behavior?

@mark-monserrat
Copy link
Author

Yes, after increment function. But the weird thing is, before it happened, I can use increment/decrement function on the same sector/block without having any problem; and during that time key A & B is FFFFFFFFFFFF, the problem arises when key A and B becomes 000000000000. I'm using xperia XA ultra, android Marshmallow, no firmware upgrade made, the version of the app that I'm using is the latest in playstore as of this writing (2.1.0)

@ildar
Copy link

ildar commented Apr 26, 2017 via email

@mark-monserrat
Copy link
Author

mark-monserrat commented Apr 26, 2017

Here's adb log on my device while doing 'READ TAG' function that generates same error message 'No valid key found in chosen key file':

04-26 22:25:33.983 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:33.984 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:33.985 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:33.989 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:33.992 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:33.996 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:33.998 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:33.998 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.003 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.006 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.010 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.011 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.011 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.018 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.023 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.027 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.028 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.028 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.033 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.038 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.043 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.044 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.044 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.050 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.055 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.060 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.061 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.061 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.068 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.074 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.079 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.080 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.080 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.085 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.090 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.096 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.097 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.097 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.106 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.111 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.111 1166-2240/? I/PowerManagerService: setBrightness mButtonLight 0.
04-26 22:25:34.115 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.116 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.116 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.123 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.126 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.128 1166-1177/? I/PowerManagerService: setBrightness mButtonLight 0.
04-26 22:25:34.131 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.132 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.132 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.137 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.141 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.145 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.146 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.146 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.151 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.154 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.158 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.160 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.160 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.166 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.169 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.173 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.175 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.176 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.181 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.183 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.187 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.191 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.191 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.196 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.199 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.204 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.207 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.207 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.212 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.215 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.219 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.221 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.221 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.226 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.229 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.233 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.234 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.234 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.239 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.244 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.248 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.249 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.249 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.255 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.259 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.264 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.265 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.265 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.269 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.273 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.278 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.279 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.279 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.284 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.287 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.292 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.295 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.295 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.300 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.303 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.309 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.312 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.312 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.317 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.320 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.324 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.326 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.326 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.331 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.334 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.338 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.340 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.340 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.346 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.349 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.353 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.354 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.354 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.361 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.364 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.369 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.370 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.370 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.375 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.379 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.384 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.385 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.385 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.390 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.393 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.397 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.399 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.399 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.403 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.406 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.411 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.412 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.413 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.417 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.420 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.424 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.425 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.426 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.430 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.433 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.437 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.438 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.438 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.443 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.446 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.450 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.451 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.451 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.456 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.460 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.464 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.465 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.465 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.470 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.473 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.477 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.478 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.479 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.484 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.487 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.491 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.492 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.493 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.497 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.500 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.504 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.505 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.505 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.510 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.513 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.517 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.518 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.518 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.523 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.526 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.530 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.532 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.532 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.537 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.540 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.544 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.546 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.546 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.550 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.553 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.557 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.558 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.558 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.563 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.565 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.570 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.571 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.571 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.576 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.579 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.583 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.585 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.585 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.587 1166-1233/? E/PROXIMITY: ProximitySensor: unknown event (type=3, code=0)
04-26 22:25:34.589 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.592 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.596 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.597 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.597 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.605 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.608 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.612 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.613 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.613 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.617 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.620 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.624 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.625 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.625 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.630 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.633 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.636 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.638 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.638 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.642 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.645 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.650 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.651 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.651 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.656 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.659 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.663 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.664 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.664 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.668 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.671 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.675 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.676 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.676 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.681 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.683 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.687 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.688 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.688 2047-2126/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.693 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.696 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.700 2047-2126/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.702 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.702 2047-2536/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x2
04-26 22:25:34.706 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.709 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.713 364-364/? I/SurfaceFlinger: [Built-in Screen (type:0)] fps:53.826763,dur:1003.22,max:51.32,min:12.69
04-26 22:25:34.714 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.715 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.715 2047-14346/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.719 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.722 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.726 2047-14346/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.727 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC Key found
04-26 22:25:34.727 2047-2128/? E/NxpExtns: Mifare : phLibNfc_GetKeyNumberMFC returning = 0x0 Key = 0x3
04-26 22:25:34.731 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.734 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.738 2047-2128/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.741 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.743 2047-6437/? E/BrcmNfcJni: getReconnectState = 0x0
04-26 22:25:34.747 2047-2536/? E/BrcmNfcJni: setReconnectState = 0x0
04-26 22:25:34.750 1166-2622/? I/NotificationService: enqueueToast pkg=de.syss.MifareClassicTool callback=android.app.ITransientNotification$Stub$Proxy@e0f5dad duration=1
04-26 22:25:34.761 364-1193/? I/BufferQueueProducer: [de.syss.MifareClassicTool/de.syss.MifareClassicTool.Activities.KeyMapCreator](this:0x7f99143400,id:1762,api:1,p:6461,c:364) queueBuffer: fps=51.13 dur=1056.13 max=59.26 min=7.72
04-26 22:25:34.873 2047-7359/? E/BrcmNfcJni: Calling EXTNS_MfcPresenceCheck
04-26 22:25:34.873 2047-7359/? E/NxpExtns: Error Sending msg to Extension Thread
04-26 22:25:34.976 544-544/? I/thermal_src: received msg from kernel, it's len is 32
04-26 22:25:34.976 544-544/? I/thermal_src: wake up function 3
04-26 22:25:34.976 544-544/? I/thermal_src: ta_catmplus_decide_ttj,ttj init? 1
04-26 22:25:34.976 544-544/? I/thermal_src: u_CATM_ON = 2
04-26 22:25:34.976 544-544/? I/thermal_src: tad_ctrl_cmd_to_kernel, cmd = 0x5
04-26 22:25:34.976 544-544/? I/thermal_src: tad_ctrl_cmd_to_kernel,152 cmd = 0x5
04-26 22:25:34.976 544-544/? I/thermal_src: TA_DAEMON_CMD_GET_TPCB
04-26 22:25:34.976 544-544/? I/thermal_src: ta_send_nl_message
04-26 22:25:34.976 544-544/? I/thermal_src: received msg from kernel, it's len is 32
04-26 22:25:34.976 544-544/? I/thermal_src: ret_msg, msgdata->tad_cmd=5 tad_data_len=4 output=42000
04-26 22:25:34.976 544-544/? I/thermal_src: TA_DAEMON_CMD_GET_TPCB
04-26 22:25:34.976 544-544/? I/thermal_src: tad_ctrl_cmd_to_kernel, cmd = 0x4
04-26 22:25:34.976 544-544/? I/thermal_src: msgdata.tad_data_len=4 input=85000
04-26 22:25:34.976 544-544/? I/thermal_src: ta_send_nl_message
04-26 22:25:34.976 544-544/? I/thermal_src: received msg from kernel, it's len is 28
04-26 22:25:34.976 544-544/? I/thermal_src: TA_DAEMON_CMD_SET_TTJ, ttj 85000
04-26 22:25:34.976 544-544/? I/thermal_src: waiting TA_DAEMON_CMD_NOTIFY_DAEMON from kernel...
04-26 22:25:35.004 2047-7359/? E/BrcmNfcJni: Calling EXTNS_MfcPresenceCheck
04-26 22:25:35.004 2047-7359/? E/NxpExtns: Error Sending msg to Extension Thread

The keys in my key file are:

FFFFFFFFFFFF 
000000000000 

which are used before the issue occur.

@ikarus23
Copy link
Owner

All the things you are describing really sounds like #66. You have a Xperia too. I thing this issues is a result of bug with Xperia devices. @alfs said

However if I reverse the keys:
000000000000
FFFFFFFFFFFF
then MCT now reports the key as being 0s, not Fs.
If swap the last digit from a 0 to a 1, then the F key is found correctly.
Have you tried "playing" with the keys? (e.g. reverse the order, delete or change a key)

@ikarus23
Copy link
Owner

@ikarus23
Copy link
Owner

It would be really interesting to see if this issue is fixed in CyanogenMod / LinageOS >= 13.x. @ArchangeGabriel reported in #127 that CM fixes the Mifare Classic compatibility issues on the OnePlus One. Maybe it's the same here.

@motifs77
Copy link

Same problem on Nexus 6P😂

@motifs77
Copy link

Clone card, read&write successfully. Then, can not access the card and same notification like Mark said.

@ikarus23
Copy link
Owner

So not exactly the same problem. @mark-monserrat is expecting issues after using the increment/decrement function. Sorry to ask you that: you are sure the keys of the tag you just wrote are in one of the key files you selected, right? Also, there are issues with Mifare Classic and the Nexus 5X. Maybe the 6P has issues as well?! Furthermore, were (some of) the keys of the tag "000000000000"?

@osysltd
Copy link

osysltd commented May 24, 2017

@mark-monserrat as I can catch from the log
04-26 22:25:35.004 2047-7359/? E/BrcmNfcJni: Calling EXTNS_MfcPresenceCheck

You have broadcom (not nxp) nfc chip compatibility for which has not been confirmed probably.

@ikarus23
Copy link
Owner

@osysltd good catch! So the Sony Xperia XA Ultra has a Broadcom chip?. Unfortunately I was not able to confirm this by a quick google search.

@motifs77
Copy link

Original card
"825C7BDB7E0804006263646566676869
00000000000000000000000000000000
00000000000000000000000000000000
000000000000FF078069000000000000

3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
00455624180511383838383838383838
01170425191432000411A50000000000
000000000000FF078069000000000000

00455622000413180516000000000000
00002359000000000000000000000000
1FFFFFFFFFFEFFFFFFFFFFFFFFFFFFFF
000000000000FF078069000000000000

FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
000000000000FF078069000000000000

00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
000000000000FF078069000000000000"

@ikarus23
Copy link
Owner

Interesting. So it seems this is connected to #66...

@ikarus23
Copy link
Owner

It would be really interesting to see if this issue is fixed in CyanogenMod / LinageOS >= 13.x. @ArchangeGabriel reported in #127 that CM fixes the Mifare Classic compatibility issues on the OnePlus One. Maybe it's the same here.

Is there anyone with such a device an CM / LinageOS who can test this?

But maybe it is just based on the same consistency issue I have with my Nexus 5X (#106). And it looks like Google is responsible for this.

@ElPumpo
Copy link

ElPumpo commented Dec 21, 2017

Yes, CyanogenMod fixed the NFC issues with the OPO a long time ago, this app works perfectly fine on mine. (using sultanxda's lineage 14.1 ROM-9

@ikarus23
Copy link
Owner

So it looks like this is an Android issue. I don't think there is anything I can do. Closing this issue until proven otherwise ;).

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

No branches or pull requests

6 participants