Languages

Menu
Sites
Language
Privilege to read contact

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
Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
muditha murthy
Is this happening with latest SDK 2.1 also ?
Kamil N
Yes, also my application was rejected because of unused privilege, but without this privilege I get described error
wil smith
@lyssy You are correct. It's the issu with SDK, raise a bug for the same.