Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

Does not work with Android 10

Open nvhaiwork opened this issue 6 years ago • 5 comments

With Android Q update, the compressor does not work any more due to "Manage scoped external storage access"

nvhaiwork avatar Sep 26 '19 13:09 nvhaiwork

@nvhaiwork You can add android:requestLegacyExternalStorage="true" in AndroidManifest.xml currently

jp1017 avatar Oct 08 '19 02:10 jp1017

@nvhaiwork You can add android:requestLegacyExternalStorage="true" in AndroidManifest.xml currently

Will that work properly in Android 10 and coming versions?

Parag2385 avatar Oct 23 '19 10:10 Parag2385

@Parag2385 it should, but it's not a proper solution. That's a way to avoid the error for now and will not work for Android 11

petarmarijanovicfive avatar Mar 09 '20 09:03 petarmarijanovicfive

On Android 10+ there is scoped storage, meaning that each app can only access their own files. Thus, to actually do anything, you need to copy the file you want somewhere you can access it, e.g. your app's cache directory. This article explains how to do it pretty clearly.

Keep in mind that you should clean up after yourself when you're finished with the cached files.

lpbas avatar Mar 24 '20 15:03 lpbas

I have raised https://github.com/zetbaitsu/Compressor/pull/150 to support this on Android 10. @zetbaitsu could you please review this?

shrastiRisor avatar May 15 '20 06:05 shrastiRisor