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

BlackBerry® World™ Development

Reply
New Developer
Posts: 31
Registered: ‎03-17-2009
My Device: Not Specified
Accepted Solution

Unable to install app from the app world

Hello,
I have published application to the app world some days ago.
But It seems that some users can't install it.


ERROR: "module attempts to access secure API."

 

I'm sure that my application was signed. Also it was approved by RIM.
I have the same situation as
http://supportforums.blackberry.com/t5/Java-Development/ERROR-module-attemps-to-access-secure-API-BU...

http://supportforums.blackberry.com/t5/Java-Development/error-quot-module-attemps-to-access-secure-A...

 

 

What is the best way to fix it? Is it official Blackberry bug?

 

Thanks.

 

 

 

Developer
Posts: 1,452
Registered: ‎11-06-2009
My Device: Torch 9810
My Carrier: WiFi

Re: Unable to install app from the app world

If your app size is close to 65KB just add some 10-12KB picture (you don't need to use it), recompile and sign the app again.



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry
New Developer
Posts: 31
Registered: ‎03-17-2009
My Device: Not Specified

Re: Unable to install app from the app world

No, my app size is more then 1MB

Developer
Posts: 1,452
Registered: ‎11-06-2009
My Device: Torch 9810
My Carrier: WiFi

Re: Unable to install app from the app world

Then the app consists of several sibling COD files each about 64KB. Can you check the size of the last one? You can extract the sibling files with WinRAR/WinZip from the original big COD file



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry
New Developer
Posts: 31
Registered: ‎03-17-2009
My Device: Not Specified

Re: Unable to install app from the app world

The last one code file(<appname>-27) is 64.296KB

Developer
Posts: 1,452
Registered: ‎11-06-2009
My Device: Torch 9810
My Carrier: WiFi

Re: Unable to install app from the app world

You can try the trick with adding extra image, the goal is to have the last COD file size not so close to 64 KB (adding extra image will probably produce another COD-file <appname>-28). Once you achieve it, send the installation to the user, who encounter the error, hopefully this time the installation will run OK.



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry
New Developer
Posts: 31
Registered: ‎03-17-2009
My Device: Not Specified

Re: Unable to install app from the app world

So, what size should the last file has?

More then 70Kb or just less then 60-50Kb?

 

I can't send file directly to the user because this problem appears only when user tries to download it from the app world.

Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: Unable to install app from the app world

You don't want the size of any individual .cod files to be close to 64. Adding an image to the build should force the file to be split into a number of smaller .cod files


Read my thoughts on BlackBerry Development at news.ebscer.com
New Developer
Posts: 31
Registered: ‎03-17-2009
My Device: Not Specified

Re: Unable to install app from the app world

I have added small image (less then 13Kb) to the project and <appname-28>.cod have appeared.

<appname-27> is 58.60Kb now, 

but <appname-28>.cod has size 63.90

 

Olso <appname-5>.cod is very close to 64Kb.

What should I do in this case?

 

 

Developer
Posts: 1,452
Registered: ‎11-06-2009
My Device: Torch 9810
My Carrier: WiFi

Re: Unable to install app from the app world

If the file size is less than 64KB after signing you are safe IMO.

 

Some details about - the splitting of COD file into sibling files is kind of legasy approach, it was introduced at the time when mobile traffic speed was low in order to avoid corrupted installations. So the device is downloading small COD files one after another. If you noticed during the signing process every single sibling COD file is signed. However the signing info (it is about 200 bytes I think) is appended at the the end of COD-file. So if the COD file is greater than 64 KB the network transport (it probably depends on the carrier) could cut off the last 200 bytes. This way you will still have valid COD file (not corrupted) but without signing.

 

It is in fact a rare situation and happens from time to time and as I mentioned above it may be carrier dependent.



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry