1
edit
No edit summary |
Brayanneves (talk | contribs) No edit summary |
||
| Line 1,019: | Line 1,019: | ||
Avoid those nasty compile times! Use the [https://github.com/thebnich/fennec-bootstrapper Bootstrapper extension]! | Avoid those nasty compile times! Use the [https://github.com/thebnich/fennec-bootstrapper Bootstrapper extension]! | ||
=== Sign a Fennec build === | |||
Nightly builds are available unsigned, so that you can sign them with your local debug key and install them on top of your own debug builds (without uninstalling and losing your profile). To sign and install the unsigned nightly build: | |||
wget http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-r7/gecko-unsigned-unaligned.apk | |||
jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android gecko-unsigned-unaligned.apk androiddebugkey | |||
zipalign -f -v 4 gecko-unsigned-unaligned.apk gecko-signed-aligned.apk | |||
adb install -r gecko-signed-aligned.apk | |||
Or you can also re-sign a signed build. If "fennec.apk" is signed already, this will remove the signature and replace it with your own. The result will be saved as "fennec-resigned.apk": | |||
zip fennec.apk -d META-INF/* | |||
jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android fennec.apk androiddebugkey | |||
zipalign -f -v 4 fennec.apk fennec-resigned.apk | |||
If you get this error when you try to sign a package: | |||
jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 16716 but got 16964 bytes) | |||
You should to follow some steps to complete your task: | |||
* rename the .apk to .zip | |||
* unzip the file in some folder | |||
* remove the METAINF folder | |||
* zip the remaining files | |||
* change the name .zip to .apk | |||
* sign again | |||
To verify if everything is alright use the command | |||
jarsigner -verbose -verify | |||
edit