Android Stumbler for Mozilla
Clone or download
Pull request Compare This branch is 24 commits ahead, 1764 commits behind mozilla:dev.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

MozStumbler Build Status


./gradlew build
./gradlew installRelease


In order to sign the APK, you will want to create a '' file. The content should look like the following except it should contain your key signing information:

StoreFile=<path to file>
KeyAlias=<key alias>
TileServerURL=<OSM Tile Server>

For the OSM (OpenStreetMap) Tile Server, you have several options:

  • MapBox (easy, secure) is a hosted OSM solution, allowing users to easily create beautiful maps and featuring full SSL. To use MapBox:

    1. Visit and sign up
    2. From the MapBox Dashboad click the big blue "New Project" button
    3. Customize your map as you please. The only requirement is that you allow public API access. To do this click on the gear in the white box at the top, select the "Advanced" option at the bottom, and uncheck the "Hide project from public API" box. Be sure to hit the save button after doing this.
    4. Obtain the API key for your map (visible from the dashboard under Projects and Data, or in the URL of the editor)
    5. Set TileServerURL in the gradle.propeties file to<API key>/. Do not miss the tailing slash, it will break things if you do.i

    Note that, for historical reasons, you can simply specify the API key in the file and not the full URL, using the MapAPIKey key

  • Another hosted solution (difficulty varies, as does security). There are many OSM tile servers available. This is a nice list of some.

  • Run your own Tile Server (advanced, as secure as you want) You can, of course, run your own tileserver. Switch2OSM has several excellent guides on the subject and is a good place to get started

To generate a signing key, search the internet for details. This command is probably what you want:

keytool -genkey -v -keystore my-release-key.keystore -alias mozstumbler -keyalg RSA -keysize 2048 -validity 10000

To verify the apk has been signed, you can run this command:

jarsigner -verify -verbose -certs build/apk/MozStumbler*


This release process ought to be automated.

  2. git checkout -b v$MOZSTUMBLER_VERSION
  4. Increment android:versionCode and android:versionName in the file.
  5. git commit -m "MozStumbler v$MOZSTUMBLER_VERSION" VERSION
  6. Push the new version branch to GitHub and file a new pull requests so Travis can start building it.
  7. ./gradlew build
  8. mv build/apk/MozStumbler-release.apk build/apk/MozStumbler-v$MOZSTUMBLER_VERSION.apk
  9. Browse to
  10. "Draft a new release" with the release title "MozStumbler v$MOZSTUMBLER_VERSION" and tag version "v$MOZSTUMBLER_VERSION".
  11. Add some release notes and give @credit to contributors!
  12. Drag and drop the new MozStumbler-v$MOZSTUMBLER_VERSION.apk to the "Attach binaries for this release by dropping them here." box.
  13. Check "This is a pre-release" because perpetual beta.
  14. Save draft. Do not "Publish release" yet because master does not have the new VERSION file!
  15. Merge the new version pull request. NB: There is a race condition between steps 13 and 14! It is mostly harmless, but be quick about it.
  16. Now go back to the draft release and Publish release.
  17. Email a release announcment to the dev-geolocation mailing list with release notes giving @credit to contributors and a link to the release's page$MOZSTUMBLER_VERSION.
  18. Good work! Pat yourself on your back.