victordiaz / PHONK

PHONK is a coding playground for new and old Android devices

Home Page:https://phonk.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFC: Android 11 compatibility

victordiaz opened this issue · comments

Problem description
Android 10 and more strictly Android 11 introduced a bunch of limitations to access the external storage, which by the way is where PHONK stores the user projects.

Storing in the external storage gave PHONK a bunch of advantages such as:

  • Easy file handling
  • Enabling the user to uninstall and install PHONK without loosing the projects
  • Accessing PHONK's projects from any other app such as File Managers

As Android is deprecating (or at least making it more and more difficult) to operate with the external storage, PHONK will have to migrate where to store the files in devices with Android > 11

I'm don't fully understand the possibilities but for now the most viable option is to use the internal storage so

  • User projects will disappear when the app is uninstalled
  • Files and folders cannot be accessed by any other app, file manager or anything

If that option is taken:

  • Will it be handy to have a Batch Project Import / Export?

Any other approaches not taken into account here? Suggestions?

Android version
Android 11

As far as I know you can opt for special folders as long as they're not wildcard.
Otherwise you could offer a way to sync the files via GoogleDrive (hidden storage) or by using a simple Google Firebase User Authentication plus file storage.
Edit: this could also be a good solution: https://gun.eco/