Mobile/Fennec/Android: Difference between revisions

(--with-android-tools is no longer needed (bug 617074))
Line 431: Line 431:
* Pass command line arguments to Fennec as "args" extras using the --es argument: <tt>adb shell am start -n org.mozilla.fennec/org.mozilla.fennec.App --es args -safe-mode</tt>
* Pass command line arguments to Fennec as "args" extras using the --es argument: <tt>adb shell am start -n org.mozilla.fennec/org.mozilla.fennec.App --es args -safe-mode</tt>
* You can reinstall fennec by using <tt>adb install -r ...</tt>
* You can reinstall fennec by using <tt>adb install -r ...</tt>
=== Signing non-local builds with your local key ===


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:
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:
Line 438: Line 440:
  zipalign -f -v 4 gecko-unsigned-unaligned.apk gecko-signed-aligned.apk
  zipalign -f -v 4 gecko-unsigned-unaligned.apk gecko-signed-aligned.apk
  adb install -r 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:
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


== Passing in environment variables to Fennec ==
== Passing in environment variables to Fennec ==
canmove, Confirmed users
1,584

edits