Privilege to read contact

Privilege to read contact

BY 23 May 2013 Native Application Development

Hi,

 

I want to read phone number, so I call:

 

pPerson->GetPrimaryPhoneNumber().GetPhoneNumber()

Documentation says that this method needs privilege:

 

http://tizen.org/privilege/contact.read

I added this privilege and I have error:

 

05-23 00:14:25.840 : ERROR / Tizen::Security ( 2912 : 2912 ) : bool Tizen::Security::_PrivilegeInfo::HasPrivilege(Tizen::Security::_Privilege) const(451) > Result : FALSE [26d61e7o7k, contact.write]
05-23 00:14:25.840 : ERROR / Tizen::Security ( 2912 : 2912 ) : static result Tizen::Security::_AccessController::CheckUserPrivilege(Tizen::Security::_Privilege)(406) > [E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.
 
If I add privilege contact.write everything is working but SDK reports that I have unused privilege “Contact.Write”. Is this BUG?
 
Thanks
Written by