DllNotFoundException when using Tizen.Security.PrivacyPrivilegeManager on Tizen TV

Original Created May 29, 2020 | Regeneration Apr 22, 2026

I'm developing a Tizen TV application (Tizen 4.0) using Xamarin and need to check if the user has permission to access external storage. I'm using the standard PrivacyPrivilegeManager API:

CheckResult result = PrivacyPrivilegeManager.CheckPermission(permissionname);

switch (result)
{
    case CheckResult.Allow:
        break;
    case CheckResult.Deny:
        break;
    case CheckResult.Ask:
        PrivacyPrivilegeManager.RequestPermission(permissionname);
        break;
}

(where permissionname is for mediastorage)

However, when calling CheckPermission, I get this exception:

System.DllNotFoundException: Unable to load shared library 'libcapi-privacy-privilege-manager.so.0' or one of its dependencies...
   at Interop.PrivacyPrivilegeManager.CheckPermission(String privilege, CheckResult& result)
   at Tizen.Security.PrivacyPrivilegeManager.CheckPermission(String privilege)

The same exception occurs when calling RequestPermission. I've already added the permission in the manifest file but the issue persists. How can I resolve this?

Problem Understanding

The issue occurs because Samsung Smart TVs (Tizen TV platform) don't support the privacy privilege management system that's available on mobile devices. The required shared library (libcapi-privacy-privilege-manager.so.0) is not present on TV devices.

Solution Methods

  1. For Samsung Smart TV applications, you don't need to request user consent for storage access permissions.
  2. Simply access the external storage directly without using PrivacyPrivilegeManager APIs.
  3. Ensure your application has the proper privileges declared in the manifest file.

Additional Tips

  • This limitation is specific to Samsung Smart TV platform (Tizen TV)
  • For mobile applications (wearable, mobile), you should continue using PrivacyPrivilegeManager as normal
  • Always verify platform-specific API availability when developing for different Tizen profiles

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.