Comments (15)
FWIW I also get this behaviour. My S5 is the same version and model variant as @aganser. I expect this is a bug in the Samsung NFC implementation though :(
from yubioath-android.
I also get this issue. I submitted a support request to yubico but no response so far.
from yubioath-android.
We've gotten several of these reports regarding the S5. As far as we can tell, it's an issue with the NFC stack on the phone itself. We officially support Nexus devices and do all our testing and development on those, thus we have no possibility of reproducing this. That said, if any of you are using a different application on the S5 that uses the IsoDep (http://developer.android.com/reference/android/nfc/tech/IsoDep.html) APIs that doesn't cause these kind of crashes, and is open source, point me to it and I'll see if they're doing anything differently. It's possible that there is some workaround which would cause S5's to behave better.
from yubioath-android.
I got the same issue, same model but using android 5.
Can you name such application's so I can test it?
from yubioath-android.
Alright i created a simple gradle project in android studio in order to test it (see https://github.com/MichaelKling/MyApplication-YubikeyTest/tree/master )
The issue appears without using the IsoDep Library at all (Not using IsoDep.get(tag)). It hast to be an issue in the underlying system and i'm afraid it's not fixable within an app.
In order to ensure "connectivity" i opened the phones case and hold the Yubikey NEO 0.5cm next to the NFC antenna.
I was really looking for that feature and it's sad that it doesn't work on (some?) Galaxy S5 devices.
I suggest taking it out of this list: http://forum.yubico.com/viewtopic.php?f=26&t=1302 - as the state of "working" isn't satisfying at all.
If there is anything else I can do to help you fixing that issue please let me know. Maybe it's possible to fix it with a custom rom.
from yubioath-android.
Thanks for doing some testing. It's unfortunate that there likely isn't anything we can do about it. We've updated the forum topic to at least make people aware of the issue.
from yubioath-android.
I think this could be solved by Nordpol ( https://github.com/fidesmo/nordpol ). I'll take a look soon!
from yubioath-android.
Together with @petter-fidesmo I have put together a pull request that should solve this specific issue. We had the same issue in the Fidesmo app and put the solution into the Nordpol library. I don't have an S5 around and therefore need some help testing it. @MichaelKling @getresults @aganser @public if one of you can compile and run the app on your device? This is the PR that needs testing: #23
If you don't want to compile yourself but still are interested in testing, here is an APK ready to install: https://drive.google.com/file/d/0B8Fc6Qd_aBaXRzFCXzNWa21EcDQ/view?usp=sharing
from yubioath-android.
I've the yubikey, the phone, the laptop but i forgot the usb cable... had to test with your precompiled apk file and could only visually check for the "Empty credentials list" Toast.
It lools like this really solved the issue - the toast came almost every time with cover and all the time without cover (so very likely an issue of signal absorption of my cover).
I will get a cable for tomorrow to check it with adb and mabe even trying to upgrade my test application.
from yubioath-android.
@MichaelKling Great! Looking forward to your conclusions :)
from yubioath-android.
Alright i got the adb output.
The shortversion prefiltered with yubioath|nfc: https://gist.github.com/MichaelKling/7710fefd3c896af8af05
And the full version: https://gist.github.com/MichaelKling/4d3e7a69583f360e3f5d
So what are we looking at:
I started holding the yubikey at my devices back, using the devices cover at 10-28 22:14:35.418 - everything seems functional and i repeat the process several times until i get at 10-28 22:15:02.848 "connection failed - status 3".
From that point on i can not read the yubikey anymore.
I take the phone out of my cover, go in the lock screen and unlock it again - then try again reading the yubikey.
At that point we even get the message 10-28 22:17:41.138 I/ServiceManager: service 'nfc' died.
It seems that the nfc library is loaded again and everything works fine again, until at one point 10-28 22:18:39.508 D/NativeNfcTag: Connect Failed - status = 3, it stops working again.
It is possible that it fails when the yubikey isn't positioned correctly and it cant be accessed reliable. That's why it worked much longer without the cover - until i was a little bit sloppy and didnt put it exactly on top of the nfc antenna.
I locked the screen and then entered again into android and tried a little bit more until
10-28 22:19:31.248 D/NativeNfcTag and then something really strange happened.
Even though i could restart the nfc lib (by locking the screen and entering again) i got exceptions including backtraces for every yubikey reading. The app worked fine on the first exceptions but when the E/yubioath IOException appeared it showed a Toast "Error in Yubikey communication!"
You can see them here:
10-28 22:20:20.128 8029-8029/com.yubico.yubioath E/NFC: android.os.DeadObjectException
10-28 22:20:20.128 8029-8029/com.yubico.yubioath E/NFC: NFC service dead - attempting to recover
10-28 22:20:20.128 8029-8029/com.yubico.yubioath E/NFC: android.os.DeadObjectException
10-28 22:20:27.808 8029-8029/com.yubico.yubioath E/NFC: NFC service dead
10-28 22:20:27.808 8029-8029/com.yubico.yubioath E/NFC: android.os.DeadObjectException
10-28 22:20:27.818 8029-8029/com.yubico.yubioath E/yubioath: IOException in handler
10-28 22:20:27.818 8029-8029/com.yubico.yubioath E/yubioath: java.io.IOException: NFC service died
I tried several more times, carefully placing the yubikey directly on top of the nfc antenna and was able to get a successful read 31 times in a row. It is a huge improvement
- i could read many more then 1 time until it crashed
- i could reliably restart the nfc service by closing the app, locking the screen and unlock the screen
from yubioath-android.
Thanks for testing @MichaelKling ! We did also see some spontaneous NFC crashes when we tested on the S5. In general it seems their NFC stack is a bit buggy. On the other hand, for us, after the fixes it went from unusable to usable (issue in Nordpol)
I'd say the improvement that you spoke of already makes the app far more usable with the S5! I'll send it on for review!
Thanks again!
from yubioath-android.
@MichaelKling We are working on solving issue #29 and have something that works as well as pre 1.0.3 versions for the S6 there, but I am uncertain how well this will work with the S5? The workaround for the S5 is not related to the workarounds that we have disabled for the S6 to work, so
in theory it should work with the S5, but we have no earlier experience of this combination.
Would it be possible for you to give it a try?
http://nordpol.fidesmo.com.s3-website-eu-west-1.amazonaws.com/yubioath.apk
Thanks!
from yubioath-android.
yea same for me, the NFC has not worked properly since I bought the yubikey a few weeks ago :( I would have just bought the y4 if I knew it wouldn't work =,=
from yubioath-android.
@petter-fidesmo sorry for responding that late - was pretty bussy.
i tested the version you linked and have similar results to what i got in octobre.
I can do multiple reads (until i get sloppy) and am able to reliably restart when i lock the phone and unlock it again.
My device currently (i think there where some updates since the last test):
Model: SM-G900F
Android 5.0
Kernel 3.4.0-5954332
Baseband: G900FXXU1POI2
from yubioath-android.
Related Issues (20)
- Error in communication HOT 3
- support for otpauth-migration://offline HOT 2
- No prompt for device permissions
- Feature Request: Support Yubico Authenticator on Chromebooks with USB-C HOT 1
- Yubico Authenticator not recognizing Yubikey 5C Nano on Chromebook Android HOT 3
- Yubikey 5C Nano not working on Samsung S7 HOT 4
- "Error in Yubikey Communication" in both my primary and backup keys HOT 6
- camera dependency not yet available, please try again later. HOT 6
- Yubioath available on "cleanapk"? HOT 1
- NFC Error in YubiKey communication HOT 13
- oops
- Devices without NFC shouldn't prompt to tap YubiKey HOT 1
- Feature request: Configurable password & list cache time HOT 1
- Yubico
- cccccbcctctbjdggntnhkbdrhfbfgekgglvtvelehhnr
- Yubico Authenticator is no longer on the Play Store HOT 5
- So what's the status of this app? HOT 4
- Request feature OATH password timeout custom setting, clear list accounts from dialog HOT 1
- Feature Request: Sync and/or transfer accounts HOT 3
- Themed icon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yubioath-android.