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

Java Development

Reply
Developer
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Display Error "Module attempts to access a secure API" on Device .

[ Edited ]

Hello Friends,

I am developing one app where i am trying to access PIM contacts . it works properly on simulator, but when i installed it on device with signed build it show me error "Module attempts to access a secure API" on run time .

Developer
Posts: 16,786
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Display Error "Module attempts to access a secure API" on Device .

sign the application
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: Display Error "Module attempts to access a secure API" on Device .

application already signed 

 

Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: Display Error "Module attempts to access a secure API" on Device .

[ Edited ]

Check again.

 

I never say never but every time in the past people have said that the app is signed (and by implication, the device is wrong) have always come back after checking to find that the cod on the device is not the one they thought it was or it was not signed completely.   

 

Check on device, look in Options --> Device --> Application Management, then use the menu to select Modules and from there click on all the modules in your application and make sure the signer ids specified are RBB, RCR and RRT.  Instructions for OS 5.0 and earlier are a little different, try Options-->Advanced-->Applications to get to the list of apps. 

Developer
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: Display Error "Module attempts to access a secure API" on Device .

i checked on device signer id is not present.

but if i sign application it shows "Signing completed:2 files signed"

 

but in other application signin it shows  "Signing completed:3 files signed"

 

how can i solved it?

 

Developer
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: Display Error "Module attempts to access a secure API" on Device .

sign and signature tool working properly with same signin key for other application. 

 

 

Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: Display Error "Module attempts to access a secure API" on Device .

I don't think the number of files signed is actually relevant.  That depends on the size of the application. 

 

If the module on device shows nothing signed, then you probably did not install the same module that you signed using the signing tool. 

Highlighted
Developer
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: Display Error "Module attempts to access a secure API" on Device .

Is there any other way to sign application and check weather application signed properly or not ? 

Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: Display Error "Module attempts to access a secure API" on Device .

I actually don't sign my apps using Eclipse.  I am an old JDE user and with the JDE, it was possible to split out the signing jar and associated files and execute the signing tool independently, which is what I still do.  Unfortunately the tool does not work without signing keys so it is not something that one can give away. 

 

If you search for signing tool you will find a few hits that describe this.

 

I have never tried this:

http://supportforums.blackberry.com/t5/Java-Development/Simple-command-line-tool-code-for-listing-co...

Developer
Posts: 16,786
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Display Error "Module attempts to access a secure API" on Device .

you can assign the sigtool.jar to the cod extension and add it to the PATH variable, this allows you to doubleclick a cod to sign it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter