OpenLauncherTeam / openlauncher

Customizable and Open Source Launcher for Android
Apache License 2.0
1.41k stars 413 forks source link

Can't find ZIP files when running `master` on Android 11. #687

Closed osirisinferi closed 1 year ago

osirisinferi commented 2 years ago

General Information

Description

When generating a desktop and settings backup using the "Backup" button from the advanced settings and subsequentially trying to import that ZIP file again using "Restore backup", OpenLauncer can't find the ZIP file in the file picker.

Also, the storage permissions of OpenLauncher seem to be limited to "media files", which seems to be the cause of the issue above.

I think this seems to be related to targeting API 29 (changed in 1b29f27) and running OpenLauncher on Android 11. See https://developer.android.com/about/versions/11/privacy/storage for more info.

This also seems to be fixed by setting requestLegacyExternalStorage to true when targeting Android 10. However, if I read the docs correctly, this flag is ignored when targeting Android 11, so it might be a problem again when OpenLauncher is doing so.

See #688 for setting requestLegacyExternalStorage to true.