Forum Discussion
SrEskild
5 years agoExplorer
Problems with setting read permissions on Quest 2
I have an app developed in Unity3D that loads a 360 video from the "sdcard/Movies" folder.
It is running fine on my Quest 1 but I can't get the permissions set correctly on my Quest 2.
If I use "adb shell dumpsys package <package_name>" to check for the permissions it is listed as
"android.permission.READ_EXTERNAL_STORAGE: restricted=true"
Then I try to use the ADB command to change it
"adb shell pm grant <package_name> android.permission.READ_EXTERNAL_STORAGE"
But this doesn't change the restricted setting to granted=true as I would expect.
I have also included the "<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>" in the Android manifest file.
Is there something that I'm missing?
Any help is apreciated.
Eskild.
It is running fine on my Quest 1 but I can't get the permissions set correctly on my Quest 2.
If I use "adb shell dumpsys package <package_name>" to check for the permissions it is listed as
"android.permission.READ_EXTERNAL_STORAGE: restricted=true"
Then I try to use the ADB command to change it
"adb shell pm grant <package_name> android.permission.READ_EXTERNAL_STORAGE"
But this doesn't change the restricted setting to granted=true as I would expect.
I have also included the "<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>" in the Android manifest file.
Is there something that I'm missing?
Any help is apreciated.
Eskild.
- For others having this problem.
The problem is related to Android 10 and the way it is accessing the files.
I was on unity 2019.1 but after updating to 2019.4 the read file worked.
I then had a problem with spatialized audio that did not work in 2019.4, so I downgraded to 2019.2.
I can't post the link to the Unity bug related to this, but you can search this to find the issue[ANDROID] VIDEO PLAYER CANNOT PLAY FILES LOCATED IN THE PERSISTENT DATA DIRECTORY ON ANDROID 10
1 Reply
- SrEskildExplorerFor others having this problem.
The problem is related to Android 10 and the way it is accessing the files.
I was on unity 2019.1 but after updating to 2019.4 the read file worked.
I then had a problem with spatialized audio that did not work in 2019.4, so I downgraded to 2019.2.
I can't post the link to the Unity bug related to this, but you can search this to find the issue[ANDROID] VIDEO PLAYER CANNOT PLAY FILES LOCATED IN THE PERSISTENT DATA DIRECTORY ON ANDROID 10
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 8 months ago