phone-saver
phone-saver copied to clipboard
Use com.android.documentsui instead of directly write to `/sdcard' in newer platforms
In newer Android versions, this app may just apply for a destination directory and write shared files to it.
Benefits:
- No
android.permission.WRITE_EXTERNAL_STORAGE
needed - Ability to save to Google Drive, OneDrive and other
android.provider.DocumentsProvider
s - Another mode available where users can rename his or her file
Thank you very much!
And https://github.com/ScreamingHawk/phone-saver/issues/26 would be fixed, as another benefit.
It sounds like you are a lot more familiar with this process than I am.
Would this work for older versions of Android also? Would you be able to submit a pull request with a fix for this?
I'll absolutely have your name added to the credits in app if you were to solve this issue for me.
At least 4.4 KitKat. I wrote some Android code two years ago and if I have some time to rebuild my development platform I would have a try. By the way, it is easy to learn.
Another related ticket as per OP #34
is this point still being looked at? It's sort of the only small annoyance in an otherwise brilliant program for me.
at least the error message when attempting to save to external sd in a new version of Android could be more informative.
@mhellwig I haven't been actively looking at this, as I've been busy on other projects. This is by the far the biggest request I've had for the app.
I welcome any pull requests if you have the time and expertise to fix the issue. I'll make sure to stick a thanks in the change log alongside the update for all to see as well.
Ok, I've picked this up. This is going to require a huge change to the code base and may introduce a number of bugs. It's also restricted to a KitKat+ which is higher than the base API level I support.
Will release this under a new major version number due to potentially breaking changes.
Undecided if the setting should be enabled by default or not.
Pushing to beta stream on Play Store as 4.0.0. Please let me know if you have success / issues with this feature.
I've kept it off by default. If there are no problems, I'll switch the enabled by default
May you also push this new version to F-Droid? Thank you very much!
@amtlib-dot-dll There's a couple bugs. You don't want this version. :laughing: I'll fix it tomorrow
AFAIK you can't ask FDroid to update the app version. They have their own schedule for updating the apps that is a mystery to me.
Released v4.0.2 to beta stream which has a number of fixes. Looking a lot more stable now
Note to F-Droid users: I recommend you avoid v4.0.1 and wait for v4.0.2