Languages

Menu
Sites
Language
DllNotFoundException using Tizen.Security
Hi all,
I am developing an app for Tizen TV 4 using Xamarin and I want to check if user has permission to access external storage.
My code is the standard one:
 
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 the mediastorage one)
However when CheckPermission is called I have the following exception:
 
System.DllNotFoundException: Unable to load shared library 'libcapi-privacy-privilege-manager.so.0' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcapi-privacy-privilege-manager.so.0: cannot open shared object file: No such file or directory
   at Interop.PrivacyPrivilegeManager.CheckPermission(String privilege, CheckResult& result)
   at Tizen.Security.PrivacyPrivilegeManager.CheckPermission(String privilege)
 [...]
 
Same exception happens if I try to call RequestPermission.
I also added the permission in the manifest file but I still have the same issue.
Can someone help me?
Thanks
View Selected Answer

Responses

2 Replies
Mark as answer
Tizen .NET

For Samsung Smart TVs, it's not mandatory to get user's agreement for privacy privilege and it's not supported.

Could you try to access external storage without asking for user consent for privacy privilege?

 

Ap


Thanks that was it. I didn't know this was not supported in Samsung TV! Thanks again.