We have a game that we developed on Unity. We need storage permission to install and play the OBB file. We don't need any other permissions other than this. Which permission should we use and how? As of Android 13, our application remains on a black screen on devices with Android 13 because the permission window does not appear.
We have come this far without any problems by using read and write external storage permissions. However, as of Android 13, this has changed.
Frankly, I don't know if we need these permissions just to install our obb file on the device and enable the game to open. Which permission is more suitable for us? Our game remains on a black screen on devices with Android 13.
You don't need external storage permission for your own files if you store them in the right place.
Place them in
Context.getFilesDir() (no permissions needed);
or, if no sufficient space above (which shouldn't be the case, really), use Context.getExternalFilesDir() (no permissions needed since
KITKAT).