03-20-2014 03:19 AM
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.
03-24-2014 11:20 AM
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
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