-
Notifications
You must be signed in to change notification settings - Fork 50
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
StrongBoxUnavailableException/ProviderException: Failed to generate key error when connecting Tap to Pay reader #469
Comments
Hi @wkol, thanks for bringing this to our attention. The first error ( As for the second error, we are updating |
Hi @wkol unfortunately fixing this issue is going to take more engineering resources than we have at the moment. We will try to pick this up as soon as our workload frees up and keep you updated in this thread. |
Hi @sidhant-stripe, thanks for all the work and updates. I am going to report this issue directly to Samsung, and since I currently do not have access to any Samsung S24 - could you provide more or less the code used to generate the keys (I believe "asp_key" is the problematic key) - I mean just a general overview - what algorithm, padding, any custom options etc? Something that could allow Samsung to reproduce it. |
Hi, are there any updates on this issue or a timeline for the fix? |
unfortunately we aren't expecting to have the resources to work on this in the near future, but we'll be sure to update this thread if we have any updates. |
Summary
This issue follows the problem encountered in this issue, where an attempt to connect to the Tap to Pay reader resulted in a crash of the Stripe AIDL process. After upgrading the SDK to version 3.6.0, the crashes mentioned in the original issue indeed disappeared. However, some new crashes have appeared in the same place (connection process). The stack traces (so far, we have encountered two variants of this crash) are a bit different, but it seems that the problem is during the generation of the hardware backed key:
Again, the crashes occur on Samsung devices, so there is probably an issue with their software, but maybe you could figure out some workaround. Also, since the exception says that the StrongBox is not available, I wonder if you could add a StrongBox check to the method
supportsReaderOfType()
or returnTerminalErrorCode.LOCAL_MOBILE_UNSUPPORTED_DEVICE
in case of connection on a device where the StrongBox is not available.Code to reproduce
Well so far I couldn't reproduce this, but if I succeed i will provide the code.
Android version
Mostly 14
Impacted devices (Android devices or readers)
Samsung devices/Tap to Pay reader
SDK version
3.6.0
The text was updated successfully, but these errors were encountered: