Change AndroidManifest.xml for AppLab submission.
I'm trying to get my app to be submitted into the AppLab, but I'm running into issues where no matter what I try, I always get those permissions active in my build: android.permission.READ_EXTERNAL_STORAGE android.permission.READ_MEDIA_AUDIO android.permission.READ_MEDIA_VIDEO android.permission.READ_MEDIA_IMAGES android.permission.ACCESS_MEDIA_LOCATION android.permission.READ_MEDIA_IMAGE android.permission.READ_MEDIA_VISUAL_USER_SELECTED My app currently does not use any of those permissions, but I am currently using Oculus Interaction SDK (The old integration), so I have two options, to delete all the code that is tied to those permissions, or use another straighter (to the point) solution like modifying the manifest directly, I tried the following code using custom AndroidManifest.xml file checked on Player Settings: <?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.CompanyName.MyApp" xmlns:tools="http://schemas.android.com/tools"> <uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" tools:node="remove" /> <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" tools:node="remove" /> <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" tools:node="remove" /> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" tools:node="remove" /> <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" tools:node="remove" /> <uses-permission android:name="android.permission.READ_MEDIA_IMAGE" tools:node="remove" /> <application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false"> <activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerActivity" android:excludeFromRecents="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" /> <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" /> <meta-data android:name="com.oculus.vr.focusaware" android:value="true"/> </application> <uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" /> </manifest> But it simply did not work, not matter what I tried. I also tried building directly on Android Studio, but it did not work either. I don't know why the custom manifest is not working, well, actually it works but specifically the record audio part. <uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove" /> The other permissions simply stay there. I hope that maybe some good developer can help me with this issue. Unity version: 2021.3.30f1, Using this packages: Thank you very much for your patience 😊2.3KViews1like3CommentsApp Key and Manifest
My original project ran into some version errors which required me to make a new project and I am trying to use the same App Key and Manifest from that project. My app is already approved by Meta App Lab and I do not want to have to change App Keys and go through the approval process again. Is there a way to use the same App Key for a different project build?415Views0likes0CommentsIssues with the APK during validation
I'm having problems with my app's Manifest, I want to publish it on the ALPHA channel, but when building I get errors, even using "Create store-compatible AndroidManifest.xml" I tried to debug, I added: |android:exported="true"| and |android:installLocation="auto"| in the Manifest, I was able to build it, but I couldn't upload it. OVR Platform Tool log: NOTE: Your manifest includes the following permissions restricted by Oculus: - android.permission.RECORD_AUDIO - android.permission.MODIFY_AUDIO_SETTINGS Please remove these permissions if they are not needed by your application. If they are needed, you must include justification in the “Notes for the Reviewer” field when submitting your application for review. Failure to provide justification will result in the rejection of your application. This app contains both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) libraries. This consumes extra storage and increases download times. Consider updating your build to target 64-bit only. Preparing for upload... Uploading APK... Uploading... Waiting for processing to begin... rebuilding uploaded file (1/3) validating package contents (2 / 3) ERROR: We found issues with the APK during validation. Please check that the APK meets the `Application Manifest Requirements` and then resubmit your app. * APK install location must be "automatic" (android:installLocation in AndroidManifest.xml). Read the documentation at: https://developer.oculus.com/distribute/publish-mobile-manifest/ Even with |android:installLocation="auto"| I still get this error. What can I do? I need the microphone because I'm using Photon Voice My Manifest: <?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto"> <application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false"> <activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerActivity" android:excludeFromRecents="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" /> <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" /> </application> <uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" /> <uses-feature android:name="com.oculus.feature.PASSTHROUGH" android:required="true" /> </manifest> UPDATE: It looks like it's a bug from Unity, I was able to upload my APK using the workaround in the comments of this post: https://issuetracker.unity3d.com/issues/android-install-location-changes-when-exporting-project1.5KViews0likes0CommentsThere is no "Create store-compatible AndroidManifest.xml" menu
I have an app ready for upload to the oculus store for Oculus Go. development version builds and runs great on device. My app is not accepted when uploading to the store beta channel with some basic errors which should be easy to resolve. the official oculus documentation says: "To generate the Oculus store-compatible Android manifest file, in the menu, go to Oculus > Tools > Create store-compatible AndroidManifest.xml." ( developer dot oculus dot com / documentation/unity/unity-conf-settings/) However I do not have this menu option: using Unity 2019.3.10f1 with the following oculus integration: The values in the android manifest i need to change are simple, as shown in the oculus store when I attempt to upload the APK: HOW CAN I EDIT THE MANIFEST APPROPRIATELY????2.1KViews0likes1Comment