Samsung / TizenFX

C# Device APIs for Tizen
Apache License 2.0
195 stars 255 forks source link

[NFC] Privileges level mismatch #462

Closed r-czerski closed 5 years ago

r-czerski commented 6 years ago

Hello,

I am Samsung Project Leader and developer.

I faced an issue with NFC activation in C# API: NfcManager.SetActivationAsync(true);

I have received following error while installing app on Galaxy Watch: _key[error] val[-14] error message: :Check tizen-manifest.xml| - Current api-version = 4, | certificate signature level = partner||[MISMATCHED_PRIVILEGELEVEL]| - http://tizen.org/privilege/nfc.admin| >> Use at least platform signatured certificate.||:<-7>

The documentation points out that I need to use PARTNER certificate level, but above error message tells that I need to use PLATFORM cert level. https://developer.tizen.org/development/guides/.net-application/connectivity-and-wireless/nfc#manager_activating_nfc_device

Can you please tell me what is the correct level and if the documentation is ok or invalid?

What is more Native and Web APIs have PUBLIC level for the http://tizen.org/privilege/nfc.admin https://developer.tizen.org/development/training/native-application/understanding-tizen-programming/security-and-api-privileges#wearable_native

Thanks in advance for help.

rc

myroot commented 5 years ago

http://tizen.org/privilege/nfc.admin Allows the application to change NFC settings, such as switching NFC on and off. This is a platform privilege for a native application and a public privilege for a Web application

http://tizen.org/privilege/nfc.admin is platform level privileges .net application has same policy with native application