Search Unity

How to add Priviliges / Permissions fro Tizen app in the tizen-manifest.xml?

Discussion in 'Tizen' started by kshitijgandhi, Jul 13, 2015.

  1. kshitijgandhi

    kshitijgandhi

    Joined:
    Jul 13, 2015
    Posts:
    28
    Hi,
    I have searched for it but cannot find it anywhere - How can I add permissions / priviliges for a Tizen app?
    For android it is possible by adding a manifest xml file in Plugins/Android folder.
    I tried by adding a tizen-manifest.xml file in the Plugins/Tizen & Plugins/Tizen/libs folders neither of which work.
    I also wasn't able to find any related documentation for tizen.
     
  2. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    At the moment this is not possible. What permissions/privileges do you want to use?

    Could you submit a bug/feature request on our bug tracker?
     
  3. kshitijgandhi

    kshitijgandhi

    Joined:
    Jul 13, 2015
    Posts:
    28
    We have added plugins / libraries in our app which require Telephony permission.
    Also, we would requirepermissions for push notifications and maybe more.

    If I change the tizen-manifest.xml directly in the built .tpk app will it work?
    I haven't been able to deploy a tpk directly to the device - I just do it from Unity.

    I will submit a feature request on the bug tracker meanwhile.
     
  4. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    Ok, sounds very reasonable. Something that I had not contemplated before.

    Changing the manifest won't work because the file signature will change therefore making the package invalid for installation.

    Could you post the bug number in this thread so I can find it quickly?
     
  5. kshitijgandhi

    kshitijgandhi

    Joined:
    Jul 13, 2015
    Posts:
    28
  6. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
  7. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    726
    The way Windows 8 / Phone 8 or BB10 does this is better in Unity.
    If we could just have the ability to check on Permissions really quick. Right now you can hardly do any type of plugin without this... Seems like a big oversight.
     
  8. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    What feature exactly in WP8/BB10 are you referring to?
     
  9. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    726
    The permissions checkbox list that are available in both those platforms.

    BB10:


    Win8 - WP8.1:


    Native TizenIDE:
     
  10. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    726
  11. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    Are there any permissions not listed for WP8/BB10 that you specifically need?
     
  12. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    726
    This
    No, I need permissions settings for Tizen in Unity3D player settings. BB10 and WP8 already have everything you need thus is why it was used as an example for what should be added to Tizen Player Settings.
    Tizen is the issue here. No permission options in Unity3D for Tizen = bad for plugins.
     
  13. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    Ok, that is not what I asked.

    I understand that you are asking for a UI in Unity to add these permissions. But what specific permissions are you requiring? So when you add permissions to a plugin in the Tizen UI it shows you a list of available permissions. Which of those do you need?
     
  14. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    726
    Aww ic. Why not just add them all other then the ones Unity already adds. I'm not sure which ones I might need as iv'e just started to get plugin stuff working. One permission I did hit right off was ".notification" that Unity didn't have enabled.

    Important things are probably stuff like:
    message.write/read
    contact.write/read
    internet
    email
    call
    systemsettings
    notification
    message
    ect, as there are probably more you might need I don't know yet.

    Here is the full list:
    Code (CSharp):
    1.     <privileges>
    2.         <privilege>http://tizen.org/privilege/location</privilege>
    3.         <privilege>http://tizen.org/privilege/datasharing</privilege>
    4.         <privilege>http://tizen.org/privilege/network.get</privilege>
    5.         <privilege>http://tizen.org/privilege/wifidirect</privilege>
    6.         <privilege>http://tizen.org/privilege/callhistory.read</privilege>
    7.         <privilege>http://tizen.org/privilege/power</privilege>
    8.         <privilege>http://tizen.org/privilege/contact.write</privilege>
    9.         <privilege>http://tizen.org/privilege/message.write</privilege>
    10.         <privilege>http://tizen.org/privilege/content.write</privilege>
    11.         <privilege>http://tizen.org/privilege/push</privilege>
    12.         <privilege>http://tizen.org/privilege/account.read</privilege>
    13.         <privilege>http://tizen.org/privilege/externalstorage</privilege>
    14.         <privilege>http://tizen.org/privilege/recorder</privilege>
    15.         <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
    16.         <privilege>http://tizen.org/privilege/mediastorage</privilege>
    17.         <privilege>http://tizen.org/privilege/internet</privilege>
    18.         <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
    19.         <privilege>http://tizen.org/privilege/calendar.write</privilege>
    20.         <privilege>http://tizen.org/privilege/window.priority.set</privilege>
    21.         <privilege>http://tizen.org/privilege/volume.set</privilege>
    22.         <privilege>http://tizen.org/privilege/callhistory.write</privilege>
    23.         <privilege>http://tizen.org/privilege/alarm.set</privilege>
    24.         <privilege>http://tizen.org/privilege/call</privilege>
    25.         <privilege>http://tizen.org/privilege/email</privilege>
    26.         <privilege>http://tizen.org/privilege/contact.read</privilege>
    27.         <privilege>http://tizen.org/privilege/systemsettings</privilege>
    28.         <privilege>http://tizen.org/privilege/shortcut</privilege>
    29.         <privilege>http://tizen.org/privilege/keymanager</privilege>
    30.         <privilege>http://tizen.org/privilege/camera</privilege>
    31.         <privilege>http://tizen.org/privilege/led</privilege>
    32.         <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
    33.         <privilege>http://tizen.org/privilege/network.profile</privilege>
    34.         <privilege>http://tizen.org/privilege/alarm.get</privilege>
    35.         <privilege>http://tizen.org/privilege/display</privilege>
    36.         <privilege>http://tizen.org/privilege/calendar.read</privilege>
    37.         <privilege>http://tizen.org/privilege/nfc</privilege>
    38.         <privilege>http://tizen.org/privilege/account.write</privilege>
    39.         <privilege>http://tizen.org/privilege/bluetooth</privilege>
    40.         <privilege>http://tizen.org/privilege/notification</privilege>
    41.         <privilege>http://tizen.org/privilege/network.set</privilege>
    42.         <privilege>http://tizen.org/privilege/externalstorage.appdata</privilege>
    43.         <privilege>http://tizen.org/privilege/haptic</privilege>
    44.         <privilege>http://tizen.org/privilege/download</privilege>
    45.         <privilege>http://tizen.org/privilege/telephony</privilege>
    46.         <privilege>http://tizen.org/privilege/message.read</privilege>
    47.     </privileges>
     
    Last edited: Jul 23, 2015
  15. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    On Android this is done by including the manifest with the plugin and merging it with the Unity manifest.

    Which method would you prefer? Merging or a bunch of options in the Unity Editor?
     
  16. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    726
    I would much prefer a list of options as Tizen is more like BB10 then Android in this regard. By that I mean there's nothing else in the Tizen or BB10 manifest other then permissions needing to be customized with a Unity3D app. Android's manifest is needed for activity definitions and tons of random stuff peoples APIs probably shouldn't be using it for. Does Tizen need manifest settings other then permissions? I don't think it does thus I would use the BB10 method (aka a list of checkboxes).

    Its also a much easier support issue with a list of checkbox items.
     
  17. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    362
    This is being added for Unity 5.2.