-
Notifications
You must be signed in to change notification settings - Fork 42
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
Unable to create/specify Git repo #150
Comments
Hello, thank you for reporting. What Android version are you on? It's definitely not a user error. :) |
Android 10 (I'll go back and update the original report). |
Will see if I can recreate. If you can check the device logs (e.g. with an app such as Logcat Reader) and filter for orgzly, that would be great. I will suggest adding cloning errors to the "developer major events log". |
I have a similar issue; git cloning fails silently; logcat is attached |
Great, thank you. Which Android version are you on? This error from JGit is something we have not seen before. I hope it might be an R8/minify issue. |
Android 11 here. Please let me know if I can be of more help. |
Seems to be this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=582423 I will look at downgrading JGit to 6.6.1 for now. |
I think I have resolved the issues on Android 11, but on 10 it looks worse. It seems that our current solution for external storage permission (0d0dc29) does not work on Android 10, and I don't know if it has ever worked. The permission check always gets a negative result, so we always end up in the "request permission" logic, but then nothing happens once you have answered the prompt one time. The Android GUI says that the app has "storage" permission, but I'm not sure what that really means. If I change the logic to launch the activity, cloning fails because of missing write permissions. Hopefully, we can get rid of this type of issues if we tackle #21. |
Thanks for the detailed update @amberin as an Android 10 (potential) user that's a real pain 😿. I know a few authors of Android apps that did not want to deal with android storage api, have ended up using the Android app "home" directory (which it sounds like #21 maybe suggesting?) as it was least hassle to develop. It doesn't rule out real permissions/API in the future. |
I think I found and solved the permission problem on Android 10. I will open a PR after some testing. |
Using Android 10 phone.
I can generate an ssh key fine without problem, so slightly different from #58
But selecting the git repo does nothing. If I select Directory or WebDAV both bring up a dialog, Git brought up an Android permissions request for file access which I granted but now does nothing. Seen with FDroid install and the separate APK (orgzly-revived-1.8.14.apk) from https://github.com/orgzly-revived/orgzly-android-revived/releases/tag/v1.8.14
Is this user error or a bug (it feels like the later).
The text was updated successfully, but these errors were encountered: