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


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
New Contributor
Posts: 7
Registered: ‎11-02-2012
My Device: Developer
My Carrier: Developer
Accepted Solution

Code Signing and OTA distribution

I am developing an application that uses API's that require code signing. I have recieved my keys, installed and used the code signing tool within the eclipse plugin to sign my application.  I can install the application via the Desktop tools and I recieve a prompt "Do you want to grant xxx trusted application status" when I launch the application.  Everything is fine after that.  Now the issue, I want to distribute the app over the web within my company.  I have other applications set up this way, so distribution works, however when I run the app I get the error "xxx uses a secure API", indicating it hasn't been code signed.  I copy my .cod files,  .jad files, etc to the server from /deliverables/web/ within my eclipse solution.  Is the web output not signed?  Is there are way to force the eclipse plugin to sign the web output or can you do it manually?  Any other reason this would not work?

BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Code Signing and OTA distribution

[ Edited ]

Both the standard and web cod files are signed at the same time.  You can open the cod files in SignatureTool to verify their signatures.

 

How are the JAD/COD files being installed?  If you are using the browser, what services are active on the device (WiFi, BIS, BES and/or WAP)?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 7
Registered: ‎11-02-2012
My Device: Developer
My Carrier: Developer

Re: Code Signing and OTA distribution

I have primarily been connecting over wifi.  It seems to download and install fine, however it gives the error message "xxx uses a protected API" when i execute the application.

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

Re: Code Signing and OTA distribution

in 99% of the cases the used file is not signed properly, for example because you copied the wrong file, signed the wrong file etc.

i would suggest that you make a new build, sign the file and upload it, all with extra care, and see if it works.
----------------------------------------------------------
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
New Contributor
Posts: 7
Registered: ‎11-02-2012
My Device: Developer
My Carrier: Developer

Re: Code Signing and OTA distribution

That's kinda what I thought too, but I have repeated the process about a dozen times. Thanks for the suggestion, though.    


simon_hain wrote:
in 99% of the cases the used file is not signed properly, for example because you copied the wrong file, signed the wrong file etc.

i would suggest that you make a new build, sign the file and upload it, all with extra care, and see if it works.

 

BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Code Signing and OTA distribution

Open the COD files in SignatureTool.  Does it show them signed by RBB, RRT and RCR?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 7
Registered: ‎11-02-2012
My Device: Developer
My Carrier: Developer

Re: Code Signing and OTA distribution

As it turns out our webserver was actually serving up old versions of files that were not properly signed.  We were storing the .cod files in a database and someone wrote the wrong query, basically.

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

Re: Code Signing and OTA distribution

welcome to the 99% Smiley Happy
----------------------------------------------------------
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