-
Notifications
You must be signed in to change notification settings - Fork 87
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
possible fix for 'Could not determine app's private files directory' #767
Conversation
@Catfriend1 is it possible to maybe push this change to the Play Store beta, so I can test if it works? Or how should we step forward? |
Hi, I'm a little bit busy and behind atm, ir it's just testing you can use the compile scripts from this repo to make your own debut build easily without signing stuff or I could do an APK build for you. I hope to have some free time available for the fork next week. Meanwhilst, thanks for you help on this, much appreciated :-)! |
Memo for me: Look up why we changed the path detection in the past (remember crashes? issues with phone manufacturer stock os'es?) There was a ticket, not that we reintroduce the probleme again for others. |
Ah yes , I should do something here when time allows, still noted! |
Merged into "beta" branch. |
Problem: After this PR it does not save the emergency export to internal storage. Request: As it was the result before this PR, Syncthing-Fork should export its private keys and config to the phone's internal storage. This may be some path like /storage/ABCD-EFGH/Android/media/[pkg_id] or /storage/emulated/0/Android/media/[pkg_id] . Syncthing-Fork should detect the internal storage's absolute path correctly and export to it. Next steps to take @balihb : Please show me which File URIs or absolute paths your phone/Android OS returns for
so we can work out a solution not breaking the existing behaviour on other phones implementations, Android versions and the Android emulator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
This reverts commit 7471539.
@balihb Something maybe is wrong what I've stated above. Let's do a test build ( https://drive.google.com/file/d/1FVLHSkIamwFNrhQGOLBj2qNz8Jnqh2KV/view?usp=sharing ) . Could you please check if this build fixes the problem on your phone you've originally had? |
with this I could grant all file access, but I didn't and I pressed the emergency button. gave me the same failure. |
Failed to export config |
@balihb Did you configure Syncthing first before revoking all files permission and trying the emergency export? |
We should maybe add the extra code which displays an error more clear if Syncthing has nothing to export when it was'nt configured. |
I'm closing this. Later to be re-opened, when we know what needs exactly to be fixed and how. |
Bug on some devices: #541 |
#759
the possible fix I proposed for the issue. this solution won't remove the first element from the list, but instead choose the 2nd one if there is more than one.