Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 105
Registered: ‎09-06-2013
My Device: Z10

[Urgent] SimCardInfo Permission denied even with read_device_identifying_information enabled and checked

[ Edited ]

As subject, i have added the read_device_identifying_information permission to my app ands granted (i checked the settings >> apps >> permissions)

 

However, it throws an error on SimCardInfo - failed to open restricte PPS object: "Permission Denied"

 

Does the SimCardInfo not work on simulator, or am i missing any other permission? The docs only mentioned read_device_identifying_information as the required permission. 

 

EDIT 1 : Doesnt work on device with sim card included, i wonder if all the docs are verified and tested...

Developer
Posts: 105
Registered: ‎09-06-2013
My Device: Z10

Re: [Urgent] SimCardInfo Permission denied even with read_device_identifying_information enabled and checked

Doesnt work on device with sim card included, i wonder if all the docs are verified and tested...

Highlighted
Developer
Posts: 105
Registered: ‎09-06-2013
My Device: Z10

Re: [Urgent] SimCardInfo Permission denied even with read_device_identifying_information enabled and checked

Anyone? 

Developer
Posts: 105
Registered: ‎09-06-2013
My Device: Z10

Re: [Urgent] SimCardInfo Permission denied even with read_device_identifying_information enabled and checked

^

New Developer
Posts: 2
Registered: ‎10-10-2013
My Device: Z10
My Carrier: Rogers

Re: [Urgent] SimCardInfo Permission denied even with read_device_identifying_information enabled and checked

Hi,

 

I want to get SIM serial number programatically for BB10 device. 

 

I already set same as below:

 

===============

I have added the read_device_identifying_information permission to my app ands granted (i checked the settings >> apps >> permissions)

 

However, it throws an error on SimCardInfo - failed to open restricte PPS object: "Permission Denied"

======

 

Any one able to get SIM serial number e.g.?

 

SimCardInfo simcardinfo;

serialnumber = simcardinfo.serialNumber());

=======

 

Thanks in advance.

 

Regards,

Devendra

Developer
Posts: 105
Registered: ‎09-06-2013
My Device: Z10

Re: [Urgent] SimCardInfo Permission denied even with read_device_identifying_information enabled and checked

Hey seems that that error means that the sim has some security to prevent you from viewing too much information such as phone number.

 

Normally, if you go to Settings > About > SIM, you will see your phone number attached to the SIM card, however if you get that Permission Denied Error like me when you redo the steps you can only get the ICCID (Serial Number) of the SIM

 

I got that Permission Denied error to but I am still able to retrieve the MCC, MNC, and Serial Number of the SIM (ICCID) on the Device.

 

Make sure the SimCardState is 5. (Ready) 

 

Hope that helps you