Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom data location compatable with Android 11 #22

Open
4 tasks done
samnyan opened this issue Apr 16, 2022 · 0 comments
Open
4 tasks done

Custom data location compatable with Android 11 #22

samnyan opened this issue Apr 16, 2022 · 0 comments

Comments

@samnyan
Copy link
Contributor

samnyan commented Apr 16, 2022

Goal: Custom data location works with Android 11 (API level 30)

Because of the new scoped storage of Android, apps can't access files outside app-specific directory directly.
Unity itself has no support for documents provider, so IO operation must handle by native code.

Todo:

  • Android Native Plugin for required IO operation.
  • Wrap required System.IO operation with UniversalIO class.
  • Use native plugin to handle IO with "content://" uri in UniversalIO
  • Compatable with Android 5.1 ~ 7.0 below (API level 24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant