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

Android™ Development

Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Hand made manifest file. How to create and use it?

Hi all


I am using blackberry-apkpackager to package an Android app. 

The manifest file of the Android application is untouched.


Q1) Can anyone point me to the documentation for the custom manifest file?

Q2) Using -m switch overrides android manifest with the BB one, not replace it, right? Where do I place the .mf then?


In short, I want to specify any additional BB10 manifest detail via blackberry-apkpackager tool but cannot find any documentation on the subject.



"Listen carefully, I shall say this only once"
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Hand made manifest file. How to create and use it?

Hey myraddin,


Q1: There isn't any documentation for a custom manifest file because there isn't any reason to create one

Q2: Using the -m switch instructs the packaging tool to use that manifest instead of generating one from your AndroidManifest.xml. It doesn't replace the AndroidManfiest.xml itself.


Note*: There is very little that you can actually modify successfully, because the items in this file are cryptographically protected.


Anyway, if you'd like to do it:


1: Repackage to a BAR at least once

blackberry-apkpackager YourApp.apk


2: Open the BAR and extract the MANIFEST.MF from META-INF

3: Make any modifications you need to to the extracted MANIFEST.MF file

4: Repackage the APK again and specifiy the modified MANIFEST


blackberry-apkpackager YourApp.apk -m YourCustomManifest.MF

Justin Jasmann | Android Application Development Consultant
Developer Relations