-
Notifications
You must be signed in to change notification settings - Fork 120
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
Android app crashes at startDfu when targeting SDK version 31+ #166
Comments
There is and open PR that fixes that #164 |
Thank you so much, I will keep an eye out on this. |
Check my comment on the PR. I was able to patch it with |
Is there any maintainer left on this library? Would be good to merge this. A Cheers! |
Fix available in this fork: https://github.com/Salt-PepperEngineering/react-native-nordic-dfu |
as vkou said, I've tested it on Android 12 and it's working. Node_modules were not updating code. It shows the 3.2.1 version in package.json, but the principle was not added to the node_modules folder, so I created the patch package and replaced the android folder. Everything is working now. |
Hello, Edit: turned out that nRF Connect Mobile produces a similar behaviour with the Android12 phone I'm using, so this might be a device-specific bug in the Nordic Android DFU library. |
@kakonyitibor have you used the patch for the react-native-nordic-dfu? if not please use it and update the code as in package 3.2.1. compare with this https://github.com/Salt-PepperEngineering/react-native-nordic-dfu/blob/master/android/build.gradle for example - |
Thanks for your reply. |
When running startDfu function on Android while targeting SDK version 31, the app crashes directly without any errors thrown.
I used adb logcat to trace the log messages and found the following issue:
(masked out the project name that I am working on, and the first line was me printing the firmware file for debugging)
I am not the most familiar with logcat outputs but it seems that it ran into the exception on the highlighted line, then the app proceeded to crash directly.
I have tested that the exact same code works on iOS, as well as Android while targeting SDK version 30.
Does anyone have any idea whether this is something that needs to be changed on the library's side, or have I not configured it correctly specifically for SDK version 31?
The text was updated successfully, but these errors were encountered: