-
Notifications
You must be signed in to change notification settings - Fork 3
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
Access to shared dictdata directory will stop starting Android 12 (maybe) #29
Comments
It's odd. I got one or two reports in the past couple of days. Not sure what the problem is. Can't replicate on my phone. |
I have worked around using a fork of pydictupdater at https://github.com/kmadathil/pydictupdater - updated to work with Python3 and the new repository structure. |
@kmadathil - I've made you maintainer of https://github.com/sanskrit-coders/pydictupdater and given you write access to this repo. Can you merge back your changes there (and perhaps even debug this repo for your case)? |
I've merged my pydictupdater changes. It can be improved if someone actually shows interest in using it. |
@kmadathil Can you update to 3.4.5 (should be out tomorrow), rerun, and send me the log (final button)? |
Done. You should have the log in your mailbox |
Strange - why can't it create the parent directories while downloading? Luckily I can replicate it with a simulated android 10 device. Will look into it. |
My previous device was Android 10 as well, but it may have been upgraded from 9 to 10 after the first download. It is likely then that directory creation is the root cause. |
Problem is that from Android 10, an app cannot have direct access to arbitrary shared directories. Instead, app needs to let the user pick a directory via "Storage Access Framework", or "provide" files of a certain mimetype. I am not sure how various dict apps will adjust to this (probably not a big deal since they need mostly read access) - but will wait and see. Short term solutionFor now, I've just postponed the problem to Android 12. As https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10 says:
The temp fix should roll out to production in a day or two. Long term solutionCopying 100s/ 1000s of files to user-selected external directory via "Storage Access Framework" will be quite irritating - hopefully someone will publish a good code snippet in the next year. If that does not work, I will consider just junking this app and going the python route (those poor users who are not tech-savvy will unfortunately have to get by). |
" temporarily opt out of the changes associated with scoped storage " says https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage . No idea when the blade will fall - may be later than android 12. |
Phone: Moto G Stylus
Android Version: 10
Final step displays "Failed on: all files"
Log seems to be unavailable - I cannot share it with email ("Couldn't attach file"), WhatsApp or Bluetooth.
I have tried
The text was updated successfully, but these errors were encountered: