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


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: 2
Registered: ‎03-26-2012
My Device: PlayBook
My Carrier: none

Problem with Package ID (changing programming language)

[ Edited ]

Hello!

I've got a Playbook and I import a simple Android app to the market.

Now I want to "remake" the app in other language (HTML5) but when I try to upload the new version in the new language I get an error message:

"File bundle (xxxxxxxxx.bar) has been rejected. Package ID is required for all .bar file. If this is an upgrade, Package ID must match Package ID in original file bundle."

This is because I used a different signing key that is necessary for the language. I think I can't use the same signing key as an android app.

Any suggestion?
thanks!

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Problem with Package ID (changing programming language)

You should be able to re-use the signing key with any of the SDKs, as far as I know.

You may have to arrange to force the package id to be the same. If the tool in question (e.g. bbwp) doesn't allow that directly, this could still be done by unzipping the .bar, hand-modifying the MANIFEST.MF file, and rezipping it. A script could easily be written that would do that automatically too.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Highlighted
New Contributor
Posts: 2
Registered: ‎03-26-2012
My Device: PlayBook
My Carrier: none

Re: Problem with Package ID (changing programming language)

If I hand-modifying the MANIFEST.MF it reports me another error when I upload the app "invalid signature file"
I will try to repackage with the old signing key.
Thanks.
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Problem with Package ID (changing programming language)

I'm guessing you tried modifying it after you signed it. That wouldn't work... you'd need to modify the package id, then sign it. If you'd already signed it, you'd need to modify the version numbers inside as well (since you can't re-sign any one version), which gets more complicated but is also possible.

Basically signing must be the very last thing you do. The whole point of signing is so the system can detect that it has not been modified.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!