... | ... | @@ -132,11 +132,11 @@ remeber to set the variables to your local setup |
|
|
|
|
|
then open `android-components` in android studio and build it (`Build > Make Project`)
|
|
|
|
|
|
### fenix
|
|
|
### Fenix
|
|
|
|
|
|
edit `fenix/gradle.properties` and add `org.gradle.java.home=/usr/lib/jvm/java-11-openjdk-amd64/` to the bottom (or the proper path for your system)
|
|
|
Edit `fenix/gradle.properties` and add `org.gradle.java.home=/usr/lib/jvm/java-11-openjdk-amd64/` to the bottom (or the proper path for your system).
|
|
|
|
|
|
then open `fenix/local.properties` and fill as follows
|
|
|
Then open `fenix/local.properties` and fill as follows
|
|
|
|
|
|
```
|
|
|
## This file must *NOT* be checked into Version Control Systems,
|
... | ... | @@ -148,14 +148,28 @@ then open `fenix/local.properties` and fill as follows |
|
|
#Tue Jun 27 16:08:20 PDT 2023
|
|
|
|
|
|
sdk.dir=/home/YOU/Android/Sdk
|
|
|
mozilla-central.mozconfig=/FULL/PATH/TO/tor-browser/mozconfig-android-all
|
|
|
dependencySubstitutions.geckoviewTopobjdir=/FULL/PATH/TO/tor-browser/obj-arm-unknown-linux-androideabi
|
|
|
dependencySubstitutions.geckoviewTopsrcdir=/FULL/PATH/TO/tor-browser
|
|
|
autoPublish.android-components.dir=../android-components
|
|
|
```
|
|
|
|
|
|
open `fenix` in android studio and build (`Build > Make Project`)
|
|
|
You will also need the artifacts from `tor-android-service` and `tor-onion-proxy-library`.
|
|
|
If ever ran an Android build with tor-browser-build, you can use the `fenix/tools/tba-fetch-deps.sh` script.
|
|
|
It assumes `tor-browser-build.git` has been checked out at the same level of `firefox-android.git`, but you can also specify another directory with the `TOR_BROWSER_BUILD` environment variable.
|
|
|
|
|
|
Open `fenix` in android studio and build (`Build > Make Project`).
|
|
|
|
|
|
As an alternative, you can also build from the command line:
|
|
|
|
|
|
```
|
|
|
gradle --no-daemon -Dorg.gradle.jvmargs=-Xmx20g assemble$variant
|
|
|
```
|
|
|
|
|
|
where `$variant` must be one of `Release`, `Beta` or `Nightly` (notice the capital letter to make the result camelCase).
|
|
|
|
|
|
## Running
|
|
|
|
|
|
from Android Studio with `fenix` loaded simple select from the menu `Run > Run 'app'` with an appropriate android device with USB debugging enabled plugged in |
|
|
\ No newline at end of file |
|
|
From Android Studio with `fenix` loaded simply select from the menu `Run > Run 'app'` with an appropriate android device with USB debugging enabled plugged in.
|
|
|
|
|
|
Otherwise, you can sign the apks with the same QA key we use for the builds from tor-browser-build with `fenix/tools/tba-sign-devbuilds.sh`.
|
|
|
This binary assumes that you have `tor-browser-build.git` at the same level of `firefox-android.git`, but you can override this with the `TOR_BROWSER_BUILD` environment variable. |
|
|
\ No newline at end of file |