Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
4
Question by kibbles-n-crits · Apr 21, 2016 at 11:39 AM · androidoculusandroid-manifest

Modifying AndroidManifest for GearVR

Hello,

I an trying to upload my game to the Oculus store but I am failing the validator, it say:

Exclude from Recents (android:excludeFromRecents in AndroidManifest.xml) must be set to true.

APK's main activity intent filter set to android.intent.category.LAUNCHER, but must be android.intent.category.INFO

I know I need to change this in the AndroidManifest.xml, but I cannot find it. I've read it is suppose to be found in assets/plugins/adroid but it is nowhere to be found. I've searched for it.

Where do I go to modify this xml file? It seems it is compiled between the various settings in the editor.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by kibbles-n-crits · Apr 21, 2016 at 10:38 PM

So what I learned was that Unity will compile the manifest file from your settings and pack it with your APK, you have to decompile that APK using something like APKTools (http://ibotpeaches.github.io/Apktool/documentation/) to get the final XML which you will then copy into /assets/plugins.android which then Unity will use that one instead of the compiled one. Then you can edit it to match what Occulus requires. I am about to try that now so wish me luck!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image andrew-lukasik · Jun 08, 2016 at 05:54 PM 0
Share

And? Did it work?

avatar image
8

Answer by natwales · Apr 21, 2016 at 03:21 PM

I found my Manifest file(s) in Temp/StagingArea/. My understanding is that you could copy that and put it in your Assets/Plugins/Android folder with your edits and that will be used instead of the manifest generated by Unity.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image andrew-lukasik · Jun 08, 2016 at 06:43 PM 1
Share

I can confirm this as fix. In my case (5.4b20) nothing else worked.

avatar image misher · Aug 29, 2017 at 09:56 AM 0
Share

Yes. Copy autogenerated manifest from Temp/StagingArea/ into Assets/Plugins/Android folser in unity project. I had to delete android:theme attribute from manifest to get rid of error

avatar image
1

Answer by W_M_Reszke · Jan 31, 2017 at 06:51 PM

Just use the "Build" option, instead of "Build and Run" while building the app and this particular error won't occur.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheCircadian · Mar 09, 2021 at 10:06 PM 0
Share

I tried this and it didn't work. Why would that make any difference to the APK?

avatar image
0

Answer by TheCircadian · Mar 09, 2021 at 10:43 PM

It's in Oculus' documentation. There are settings you need to change to get this working: https://developer.oculus.com/distribute/publish-mobile-manifest/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

79 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

CommandInvokationFailure: Failed to re-package resources (ONE MORE TIME QQ) 1 Answer

Why is my projection messed up and green in my Android VR build but not in my game view? 1 Answer

Quest 2 Building Issue System.Windows.Forms.dll assembly && OnMouse_ event handlers 0 Answers

Unity detect wrong androidSDK version 0 Answers

Error to import Unity project with Vuforia to Android Studio 3.0 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges