removing android.permission.READ_EXTERNAL_STORAGE results in black screen on apk build
Hi!
I am having issues submitting my games on App Lap.
When I tried to execute my game on the quest2, it shows nothing but black screen after splash screen.
(It's different than a 'three dots' problem we have discussed previously)
And here are the details.
I had to remove android permissions as the oculus dashboard says, so I have followed the instructions of lee17 in the following link.
https://forums.oculusvr.com/t5/Unreal-VR-Development/Quest-releasing-problem-android-manifest/td-p/864579
It successfully removed sensitive permissions and looked ready to submit, but this was a point where this problem came out.
I dug further into AndroidSanitizePermissions_UPL.xml, commented out line by line.
<removePermission android:name="android.permission.READ_EXTERNAL_STORAGE" />
when I commented out this line, the problem is gone. that means my apk requires it somewhere.
So tried to narrow this problem further, by checking whether this problem specific to my project or universal. conducted following test.
- In UE4.26.2, started from VR Template followed instructions in https://developer.oculus.com/documentation/unreal/unreal-quick-start-guide-quest/
(It's a clean project without any plugin enabled)
- on apk Packaging - extra tags for <application> node >> allowBackup="False"
- on ExtraSettings for <application> section >> android:networkSecurityConfig="@xml/network_sec_config"
- then followed lee17 instruction again in https://forums.oculusvr.com/t5/Unreal-VR-Development/Quest-releasing-problem-android-manifest/td-p/864579
and the problem is reproduced.
1. If there a better way to clean android permission, let me know please.
2. Any other solutions?
Your help would be much appreciated.
- I think I have found a solution to this problem.I have separated my Map into multiple chunks, then loaded it in runtime sequentially, then built a (singleton)reference to the object.In this way, I was able to solve the problem effectively. No more black screen in shipping build!thank you all.