B2gdroid: Difference between revisions
Jump to navigation
Jump to search
(→Building: These aren't env vars, they're mozconfig things and are expected in a certain place by default.) |
(Update) |
||
Line 9: | Line 9: | ||
<li>In the Mozilla source tree, run `./mach bootstrap` and select build "Firefox for Android". This will install the necessary Android SDKs and the Android NDK.</li> | <li>In the Mozilla source tree, run `./mach bootstrap` and select build "Firefox for Android". This will install the necessary Android SDKs and the Android NDK.</li> | ||
<pre> | <pre> | ||
Line 23: | Line 21: | ||
<li>Manually install version 22.0.1 of the Android SDK Support package. See https://mobile.etherpad.mozilla.org/109 for details.</li> | <li>Manually install version 22.0.1 of the Android SDK Support package. See https://mobile.etherpad.mozilla.org/109 for details.</li> | ||
<li>Clone the repository containing the fonts used in FirefoxOS from https://github.com/mozilla-b2g/moztt somewhere and create a symlink or move it to `$topsrcdir/moz-tt` where m`$topsrcdir` is the Mozilla source tree clone.</li> | <li>Clone the repository containing the fonts used in FirefoxOS from https://github.com/mozilla-b2g/moztt somewhere and create a symlink or move it to `$topsrcdir/moz-tt` where m`$topsrcdir` is the Mozilla source tree clone.</li> | ||
<li>Clone the Gaia repository from https://github.com/mozilla-b2g/gaia.git and create a symlink or move it to `$topsrcdir/gaia` where `$topsrcdir` is the Mozilla source tree clone.</li> | <li>Clone the Gaia repository from https://github.com/mozilla-b2g/gaia.git and create a symlink or move it to `$topsrcdir/gaia` where `$topsrcdir` is the Mozilla source tree clone.</li> | ||
<li>Run `mach build` then `mach package` and finally, with an Android device attached, `mach install` to install the APK to the device.</li> | |||
</ol> | </ol> | ||
Revision as of 14:21, 1 October 2015
Presentation
B2GDroid is an Android homescreen that provides the same user experience as Firefox OS. It's a GeckoView consumer with Gaia pre-packaged, and as many b2g APIs as possible.
Building
- Clone the Mozilla source tree
- In the Mozilla source tree, run `./mach bootstrap` and select build "Firefox for Android". This will install the necessary Android SDKs and the Android NDK.
- Manually install version 22.0.1 of the Android SDK Support package. See https://mobile.etherpad.mozilla.org/109 for details.
- Clone the repository containing the fonts used in FirefoxOS from https://github.com/mozilla-b2g/moztt somewhere and create a symlink or move it to `$topsrcdir/moz-tt` where m`$topsrcdir` is the Mozilla source tree clone.
- Clone the Gaia repository from https://github.com/mozilla-b2g/gaia.git and create a symlink or move it to `$topsrcdir/gaia` where `$topsrcdir` is the Mozilla source tree clone.
- Run `mach build` then `mach package` and finally, with an Android device attached, `mach install` to install the APK to the device.
$ hg clone https://hg.mozilla.org/mozilla-central
$ cd mozilla-central $ ./mach bootstrap Please choose the version of Firefox you want to build: 1. Firefox for Desktop 2. Firefox for Android Your choice: 2