Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How can I override the 3.4 manifest ?

Discussion in 'Android' started by TheAssassin, Sep 16, 2011.

  1. TheAssassin

    TheAssassin

    Joined:
    Jan 13, 2011
    Posts:
    51
    In the 3.4 update:
    This is great except when I use Input.touches[] it automatically makes it require multitouch support even though I only want to use the first touch. I tried putting a custom manifest in the plugins/Android folder but I still get the missing feature error. Is there a way I can override this?

    My test device doesn't even support multitouch right now so this is preventing me from using gestures at all. Bad news :(
     
    Last edited: Oct 17, 2011
  2. TheAssassin

    TheAssassin

    Joined:
    Jan 13, 2011
    Posts:
    51
    So to me this is a bigger issue than the specific one I stated. Unity 3.4 has started adding permissions to our final manifest.xml without a possibility for us to change it. This is very bad because it does not give us the control that we need. What if we want to have gps features in our apps but they wouldn't be needed? then any devices that don't have gps would be unable to install our app. Even though the gps feature isn't necessary.

    I hope that I am wrong and there is a way to manually remove the permission but I've been searching for the last few days and am unable to find anything.

    Edit: Ok so I solved my original problem for now by using the mouse events which are also touch events in android. I would still like to see us have full control of what goes in the manifest though.
     
    Last edited: Sep 18, 2011
  3. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    yes. I believe that we should have the freedom to change the manifest.
    Right now we are very limited.
     
  4. Evil-Dog

    Evil-Dog

    Joined:
    Oct 4, 2011
    Posts:
    134
    Any update on this? Some people should be able to get my app and they can't because of some restrictions I haven't put.
     
  5. TheAssassin

    TheAssassin

    Joined:
    Jan 13, 2011
    Posts:
    51
    Idk I put in a bug report but haven't gotten anything back about it.

    Are you just dealing with the multi touch restriction too or have you run into something else? If we can show other instances where this is bad maybe more people will pay attention.
     
  6. ezone

    ezone

    Joined:
    Mar 28, 2008
    Posts:
    331
    Can't you just override the manifest by putting your own manifest in:

    'Plugins/Android/AndroidManifest.xml'

    ...or did that change in 3.4?
     
  7. TheAssassin

    TheAssassin

    Joined:
    Jan 13, 2011
    Posts:
    51
    if you read the original post I said I tried that and it still added the requirement for multitouch.

    If you could confirm this for me that would be great though. I would love to find out I just messed something up when I tried it.
    Just create a new project, add a script that uses Input.touches[], and add a custom manifest.
    Then once you have built the apk you can either open the apk file (rename it to zip file) and look at the manifest file(most of the file will look like gibberish but you can still see the "requires permission multitouch" line, or try to install on a single touch device.

    I would appreciate the help.