-
Notifications
You must be signed in to change notification settings - Fork 70
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
Crash on selecting flash image on android #202
Comments
I don't get that here on Android 6.0, which version do you run? Unfortunately this is done in Qt code, so it would have to be fixed there. Why oh why is the Android API so unbelievably awful... |
I am on Android 10, though it might have something to do with vendor customizations. I dug through the logs a bit more and it seems to be coming from
I think it could possibly be fixed by manually invoking the file chooser dialog using JNI, but I'm not exactly familiar with any of that. I tried finding where the file picker is actually launched but it seems that is done with the Hope this helps. |
I solved this problem by deleting all spaces of folder name where you store flash. "Nspire EMU" does not work, but "nspire" works. Hope this will help you. |
Can you try whether https://owncloud.ritter-vogt.de/index.php/s/DO5h08BKxGvl5du (b1d2b49) works for you? |
@Vogtinator it works! Tried with the same path as last time, but I'm now on android 11. |
Great! |
Apparently Android checks for equivalence of the passed URLs at a string level when looking up URI grants. It has to be fully encoded to match properly. Fixes nspire-emus#202
Apparently Android checks for equivalence of the passed URLs at a string level when looking up URI grants. It has to be fully encoded to match properly. Fixes #202
When selecting the flash image in the kits menu on android, the app crashes. This seems to only happen with version 1.5, which introduced the storage access framework file picker.
The error message (from logcat):
A brief search found (https://stackoverflow.com/questions/25414352/how-to-persist-permission-in-android-api-19-kitkat/29588566#29588566). The flag
Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION
seems to be missing when the file chooser is launched.The text was updated successfully, but these errors were encountered: