no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / mobile / android / docs / fenix.rst
blob46ed2376134275c3bc7b91d3c1cf3b82c624b632
1 Building Firefox for Android
2 ============================
4 First, you'll want to `set up your machine to build Firefox </setup>`_.
5 Follow the instructions there, choosing "GeckoView/Firefox for Android" as
6 the bootstrap option.
8 Once you're set up and have a GeckoView build from the above, please
9 continue with the following steps.
11 1. Clone the repository and initial setup
12 -----------------------------------------
14 .. code-block:: shell
16     git clone https://github.com/mozilla-mobile/firefox-android
17     cd firefox-android/fenix
18     echo dependencySubstitutions.geckoviewTopsrcdir=/path/to/mozilla-central > local.properties
20 replace `/path/to/mozilla-central` with the location of your mozilla-central/mozilla-unified source tree.
22 2. Build
23 --------
25 .. code-block:: shell
27     export JAVA_HOME=$HOME/.mozbuild/jdk/jdk-17.0.6+10
28     export ANDROID_HOME=$HOME/.mozbuild/android-sdk-<os_name>
29     ./gradlew clean app:assembleDebug
31 `<os_name>` is either `linux`, `macosx` or `windows` depending on the OS you're building from.
34 For more details, check out the `more complete documentation <https://github.com/mozilla-mobile/firefox-android/tree/main/fenix>`_.
36 3. Run
37 ------
39 From the gecko working directory:
41 .. code-block:: shell
43     ./mach android-emulator
46 From the firefox-android working directory:
48 .. code-block:: shell
50    ./gradlew :app:installFenixDebug
51    "$ANDROID_HOME/platform-tools/adb" shell am start -n org.mozilla.fenix.debug/org.mozilla.fenix.debug.App