... | ... | @@ -184,4 +184,28 @@ where `$variant` must be one of `Release`, `Beta` or `Nightly` (notice the capit |
|
|
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 |
|
|
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.
|
|
|
|
|
|
### For MacOS:
|
|
|
|
|
|
For quickly building, aligning, signing, and installing (to an emulator or device plugged in) the following is useful. (replace the values for variant and Variant with the variant of your choice)
|
|
|
```
|
|
|
export Variant=Beta && export variant=beta
|
|
|
./gradlew clean --no-daemon -Dorg.gradle.jvmargs=-Xmx20g assemble$Variant
|
|
|
cd app/build/outputs/apk/fenix/$variant
|
|
|
zipalign -v -p 4 app-fenix-arm64-v8a-$variant-unsigned.apk app-fenix-arm64-v8a-$variant-unsigned-aligned.apk
|
|
|
apksigner sign -ks ~/../../../../../../my-release-key.jks --out app-fenix-arm64-v8a-$variant.apk app-fenix-arm64-v8a-$variant-unsigned-aligned.apk
|
|
|
adb install app-fenix-arm64-v8a-$variant.apk
|
|
|
cd ../../../../../..
|
|
|
```
|
|
|
|
|
|
An example section for `~/.zshrc` to get it to run
|
|
|
```
|
|
|
export JAVA_HOME=/opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home/ # or your equilivent
|
|
|
export ANDROID_HOME=$HOME/Library/Android/sdk
|
|
|
export PATH=$PATH:$ANDROID_HOME/platform-tools/
|
|
|
export PATH=$PATH:$ANDROID_HOME/build-tools/34.0.0/
|
|
|
```
|
|
|
|
|
|
The last line assumes "Android SDK Build-Tools 34" is installed
|
|
|
![Screenshot_2023-11-09_at_15.18.22](uploads/759156213ed8d7ef392845d4aa88fb7d/Screenshot_2023-11-09_at_15.18.22.png) |