Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
1
Question by ebrodie · Mar 17, 2014 at 07:43 PM · androidapkmanifest

AndroidManifest.xml versus AndroidManifest-main.xml in Temp/StagingArea

What exactly is the difference between AndroidManifest.xml and AndroidManifest-main.xml in the Temp/StagingArea directory? To help guide this question, assume that I am building a project without a Plugins/Android directory into an Android APK. But, I wish to copy a version of an Android Manifest XML file so I can customize it (ie, add in more permissions to the file). Which file should I be copying/modifying from the defaults created in Temp/StagingArea?

Comment
Add comment · Show 1
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 MorphVGX · Feb 10, 2017 at 05:04 PM 0
Share

Please, I also need to understand this

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by HenryStrattonFW · Feb 10, 2017 at 09:21 PM

You can find the default manifest in the Unity installation files, the path will be different depending on your installation location/version but for example mine is C:\ProgramFiles\Unity_5.5.0\Editor\Data\PlaybackEngines\AndroidPlayer\Apk

 <?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"
     android:installLocation="preferExternal"
     android:versionCode="1"
     android:versionName="1.0">
     <supports-screens
         android:smallScreens="true"
         android:normalScreens="true"
         android:largeScreens="true"
         android:xlargeScreens="true"
         android:anyDensity="true"/>
 
     <application
         android:theme="@style/UnityThemeSelector"
         android:icon="@drawable/app_icon"
         android:label="@string/app_name"
         android:debuggable="true">
         <activity android:name="com.unity3d.player.UnityPlayerActivity"
                   android:label="@string/app_name">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
             <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
         </activity>
     </application>
 </manifest>
 

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 MorphVGX · Feb 10, 2017 at 09:27 PM 0
Share

Thanks, but you didn't answer the question =)

avatar image
0

Answer by PAHeartBeat · Feb 11, 2017 at 09:35 AM

Hi @MophVGX

May this might help you.

  1. AndroidManifest.xml in "Temp/StaginArea" or "/Applications/Unity v5.5.1p1/PlaybackEngines/AndroidPlayer/Apk" is predefine Manifest used when developer not add it;s own Manifest in Plugins/Android folder. plus customise as per point 3

  2. if developer added it's own Manifest in "Plugins/Android" Unity used that manifest for identify which activity, service ase used by game, plus make little customise as per point 3

  3. It will little customise automatic for few permission like write external storage, Graphic API uses (OpenGLES 1.x / 2.x / 3.x) , bundle id, version and version code as per Player Setting we setup.

  4. If you want to customise permission and few more thing for your game, then your Manifest must has at-least those items or definition maintain in "/Applications/Unity v5.5.1p1/PlaybackEngines/AndroidPlayer/Apk"

~Thanks Ranpariya Ankur {PAHeartBeat}

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

26 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

Related Questions

my android build is of 29mb but when i install it ,size become 50mb in device 0 Answers

[URGENT!]Android Manifest file keeps reverting changes after build! 0 Answers

Disable permission requests 0 Answers

APK size question 0 Answers

Wake lock for android 2 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