OpenLauncherTeam / openlauncher

Customizable and Open Source Launcher for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

osirisinferi opened this issue · comments

General Information

  • OpenLauncher Version: git master
  • Android Version: 11.0
  • Custom ROM: None
  • Install Source: git master compile using Android Studio

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.