cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with setting read permissions on Quest 2

SrEskild
Explorer
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.
1 ACCEPTED SOLUTION

Accepted Solutions

SrEskild
Explorer
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

View solution in original post

1 REPLY 1

SrEskild
Explorer
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