Closed jensberke closed 4 years ago
This is caused by tightened storage permissions in Android 10. Please use the version from https://mpcjanssen.nl/artifacts/10.8.0/cloudless/release/app-cloudless-release.apk for a fix. You will need to move the todo.txt file to /storage/emulated/0/Android/data/nl.mpcjanssen.simpletask/files/todo.txt easiest is to reinstall cloudless and create a new task in the new version and then copy the existing todo.txt over it (or paste it in Simpletask directly)
I've already tried 10.8.0 released via F-Droid by now but the problem persists (removed 10.7.0 from Google Play and reinstalled 10.8.0 from F-Droid). The path to todo.txt which is actually used is different from the one you posted above:
Posted by you: /storage/emulated/0/Android/data/nl.mpcjanssen.simpletask/files/todo.txt
Actually used: /storage/emulated/0/data/nl.mpcjanssen.simpletask/todo.txt
09-27 12:02:35.581 2033 2682 I FileStore: Saving tasks to file: /storage/emulated/0/data/nl.mpcjanssen.simpletask/todo.txt
09-27 12:02:35.588 2033 2682 E Util : Could not create dirs: /storage/emulated/0/data
09-27 12:02:35.590 2033 2682 E TodoList: TodoList save to /storage/emulated/0/data/nl.mpcjanssen.simpletask/todo.txt failed
09-27 12:02:35.590 2033 2682 E TodoList: nl.mpcjanssen.simpletask.TodoException: Could not create dirs: /storage/emulated/0/data
@jensberke you'll need the unreleased https://mpcjanssen.nl/artifacts/10.8.0-2-b732e3b/cloudless/release/app-cloudless-release.apk for https://github.com/mpcjanssen/simpletask-android/commit/6f084e4cdd0ecb6904a0c7b78930e7a1d85cf027 . Sorry for the wrong link.
Ok, thanks, that version fixes the problem. I copied my backup of the todo.txt to /storage/emulated/0/Android/data/nl.mpcjanssen.simpletask/files/ after installing the apk and now everything's back and working.
I was having exactly the same problem and that fixed it. Thanks for this and all your work on this useful app. Is this going to have to remain the storage location for future versions or do you think future updates will allow different locations to be selected again?
@idlinds I have no plans to try jump through hoops to be able to write to the old location again (just for Google to break the hoops in the next Android release)
@mpcjanssen I've switched to a new Android 10 device and I'm experimenting this same issue. Do you plan to publish the new version in the play store soon? Thanks in advance.
@ddisanti not sure when I have time but if you install the version linked above it will fix the issue and be update once a newer version comes on the playstore
Hi, first of all, thanks a lot for your work on Simpletask.
Setup
Simpletask 10.7.0 Cloudless Granted app permissions: Storage, Calendar todo.txt location: /storage/emulated/0/Simpletask/todo.txt
Problems
Can't save todo.txt anymore. Saving shows "Saving todo file failed". Can't open a todo.txt anymore because the file dialog only shows empty directories (though files exists in these directories).
Details
2020-09-23: I upgraded my phone from Android 9 to 10. Simpletask configuration has been the same for months and working without issues until then. 2020-09-24: Simpletask still must have worked that day because I'm quite sure that I was able to make changes to my todo.txt. I don't 100% remember doing it, but the time stamp of the todo.txt is 2020-09-24, so I'm quite confident that I did changes successfully. 2020-09-25: Simpletask suddenly is not able to save the todo.txt anymore, showing "Saving todo file failed".
Using menu "Open todo file" to open the same todo.txt again (or to open any other todo.txt) is also not possible. The file dialog doesn't show any file. It only shows the current directory's name in the first line and ".." in the second. It's possible to navigate to parent directory tapping the ".." until I reach root "/". It then only shows "/" in the first and "/storage/emulated/0/" in the second line, nothing else. Tapping "/storage/emulated/0/" brings me there and I can only go upward per ".." again.
I have made no changes to file or app permissions since the Android 10 upgrade, but I guess that somehow they must have been changed by the system in a way that Simpletask suddenly doesn't see any files on /storage/emulated/0 anymore.
Other apps have no problems reading from and writing to "/storage/emulated/0/".
Log