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

Reply
Contributor
Posts: 24
Registered: ‎06-14-2011
My Device: Bold 9870
My Carrier: O2

CellularNetworkInfo - failed to open private PPS object: "Permission denied"

I'm trying to retrive the Network name using the following. I have the access_phone position

 

CellularNetworkInfo *cellularNetworkInfo = new CellularNetworkInfo(0, this);
 
cout << "cell network: " << cellularNetworkInfo->name().toStdString() << endl;
 
But when I run it I get a :
 
CellularNetworkInfo - failed to open private PPS object:  "Permission denied"
 
Am I doing something wrong or is this not implemented?
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: CellularNetworkInfo - failed to open private PPS object: &quot;Permission denied&quot;

try adding access_internet permission to your app.

Contributor
Posts: 24
Registered: ‎06-14-2011
My Device: Bold 9870
My Carrier: O2

Re: CellularNetworkInfo - failed to open private PPS object: &quot;Permission denied&quot;

It has access_internet as a permission, however if I look at the app's permissions under Security and Privacy under settings, I don't see Internet as one of the permissions listed.

 

I have other apps which access the internet and request that permission and they aren't listed either.

Contributor
Posts: 22
Registered: ‎03-01-2010
My Device: Z10
My Carrier: Bell Canada

Re: CellularNetworkInfo - failed to open private PPS object: &quot;Permission denied&quot;

Add this to the bar descriptor xml file manually:

 

 read_radio_modem_data permission