JAMESJ Posted December 20, 2023 Share Posted December 20, 2023 @CicePernice I don't know the Focus 3 OS version, but I try to get the XR Vive Elite OS veision It is Android 10 and API level 29 So, May be you need to add to get access. After add this line, I fix the problem. android:requestLegacyExternalStorage="true" Link to comment Share on other sites More sharing options...
CicePernice Posted January 10 Share Posted January 10 On 12/20/2023 at 3:07 PM, JAMESJ said: @CicePernice I don't know the Focus 3 OS version, but I try to get the XR Vive Elite OS veision It is Android 10 and API level 29 So, May be you need to add to get access. After add this line, I fix the problem. android:requestLegacyExternalStorage="true" Thank you @JAMESJ, I found a solution that worked for me. For anyone interested, I used the following path: "/mnt/sdcard/Android/datacom.DefaultCompany.projectname/files" Additionally, I modified the Android Manifest under --> Player Settings --> Player --> Publishing Settings --> Custom Main Manifest At that point, I found it in Assets\Plugins\Android\AndroidManifest.xml and modified it as follows to include permissions: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools"> <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@style/Theme.WaveVR.Black" android:resizeableActivity="false" tools:replace="android:theme"> <!--You can use your theme here.--> <activity android:name="com.htc.vr.unity.WVRUnityVRActivity" android:label="@string/app_name" android:configChanges="density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:enableVrMode="@string/wvr_vr_mode_component"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="com.htc.intent.category.VRAPP" /> </intent-filter> <meta-data android:name="unityplayer.UnityActivity" android:value="true"/> </activity> </application> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="vive.wave.vr.oem.data.OEMDataRead" /> <uses-permission android:name="vive.wave.vr.oem.data.OEMDataWrite" /> <!-- <uses-permission android:name="android.permission.CAMERA" /> --> <!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> --> </manifest> I hope this helps! Link to comment Share on other sites More sharing options...
CicePernice Posted January 11 Share Posted January 11 17 hours ago, CicePernice said: Thank you @JAMESJ, I found a solution that worked for me. For anyone interested, I used the following path: "/mnt/sdcard/Android/datacom.DefaultCompany.projectname/files" Additionally, I modified the Android Manifest under --> Player Settings --> Player --> Publishing Settings --> Custom Main Manifest At that point, I found it in Assets\Plugins\Android\AndroidManifest.xml and modified it as follows to include permissions: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools"> <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@style/Theme.WaveVR.Black" android:resizeableActivity="false" tools:replace="android:theme"> <!--You can use your theme here.--> <activity android:name="com.htc.vr.unity.WVRUnityVRActivity" android:label="@string/app_name" android:configChanges="density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:enableVrMode="@string/wvr_vr_mode_component"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="com.htc.intent.category.VRAPP" /> </intent-filter> <meta-data android:name="unityplayer.UnityActivity" android:value="true"/> </activity> </application> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="vive.wave.vr.oem.data.OEMDataRead" /> <uses-permission android:name="vive.wave.vr.oem.data.OEMDataWrite" /> <!-- <uses-permission android:name="android.permission.CAMERA" /> --> <!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> --> </manifest> I hope this helps! sorry in the path missing a "/". This is the correct path to access the local storage of the Unity build: "/mnt/sdcard/Android/data/com.DefaultCompany.projectname/files" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now