blackberrypublishingblackberry-world

Submitted .cod files on BlackBerry app world has error (...attempts to acces a secure API)


We submit a .zip file on Blackberry app world for publishing. But they return it because they said that there is an error: Error starting MyApp: Module 'MyApp' attempts to access a secure API. I searched about this error and it all said that this error will appear if my app is not sign. But we are sure that is is signed because we sign it before building and submitting it to the Testers. What could be wrong? Another thing we use the .jad to install it on the devices, and if we open the .jad we could see all the signing there. Is it possible that the signing just happens on the .jad and not on the .cod files?


Solution

  • It turns out that having large sizes of .cod or the last .cod having 64kb and up in size causes the problem. I found some posts on Blackberry developers forum saying that when you have .cod like this, when you install the app via OTA and you use mobile network, some network truncates the .cod thus removing the signature. The solution for this problem is to add an image(approximately 10kb) on res and rebuild the application so that the an extra cod could be created and the sizes of other cods would be lessen. My cods that I submitted having this problem has 86kb and the last cod is 63kb, I added a 10kb image and rebuild the application. New cod was added and the sizes of other cods lessen. The size of my maximum cod is just 74kb, and the newly created cod is 25kb. This is the set of cods which was published successfully on app world.

    References:

    First link

    Second link

    Third link