mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-06-11 01:34:46 -04:00
ironfox-oss/IronFox!85 ____ ## Changes - Enabled [display of built-in add-ons at the `Extensions` fragment](2f382311f9) *(As a result, users can now easily see/control built-in extensions, and disable them if desired)*. - Ensured that [Android's `Credential Manager` API is always prioritized over Google Play Services/microG on supported devices](9c6bd05707). - [Exposed `about:translations` at `about:about`](94b73a9ffc). - [Implemented enterprise policies](304c4e088c) to control various features/functionality in Gecko. - Rebased onto Firefox [`143.0.3`](https://firefox.com/firefox/android/143.0.3/releasenotes/). - Removed [the `Mozilla Ad Routing Service` *(`MARS`)* library](b88a4db302). - Removed [privileged add-on signing status from external Mozilla add-ons](76a6e95f32). - Updated the default Rust version to [`1.90.0`](https://doc.rust-lang.org/stable/releases.html#version-190-2025-09-18). - [Updated the setting to enable/disable installation of add-ons](4dc340b4aa) to leverage policies - making it more effective/comprehensive, and improved UX by displaying a pop-up when a user attempts to install an add-on while the setting is disabled. - [Other minor tweaks and adjustments](https://gitlab.com/ironfox-oss/IronFox/-/merge_requests/85/diffs). MR-author: celenity <celenity@celenity.dev> Co-authored-by: Weblate <hosted@weblate.org> Co-authored-by: Akash Yadav <itsaky01@gmail.com> Approved-by: Akash Yadav <itsaky01@gmail.com> Merged-by: celenity <celenity@celenity.dev>
67 lines
2.1 KiB
Bash
Executable File
67 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
PLATFORM_VERSION="36"
|
|
BUILDTOOLS_VERSION="36.0.0"
|
|
NDK_REVISION="28.2.13676358"
|
|
SDK_REVISION="13114758"
|
|
|
|
if [[ "${ANDROID_HOME+x}" == "" ]]; then
|
|
export ANDROID_HOME=$HOME/android-sdk
|
|
fi
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
PLATFORM=mac
|
|
else
|
|
PLATFORM=linux
|
|
fi
|
|
|
|
ANDROID_SDK_FILE=commandlinetools-${PLATFORM}-${SDK_REVISION}_latest.zip
|
|
|
|
export ANDROID_SDK_ROOT="$ANDROID_HOME"
|
|
|
|
if [ ! -d "$ANDROID_HOME" ]; then
|
|
mkdir -vp "$ANDROID_HOME"
|
|
cd "$ANDROID_HOME/.." || exit 1
|
|
rm -Rf "$(basename "$ANDROID_HOME")"
|
|
|
|
# https://developer.android.com/studio/index.html#command-tools
|
|
echo "Downloading Android SDK..."
|
|
wget --https-only --no-cache --secure-protocol=TLSv1_3 --show-progress --verbose https://dl.google.com/android/repository/${ANDROID_SDK_FILE} -O tools-$SDK_REVISION.zip
|
|
rm -Rf "$ANDROID_HOME"
|
|
mkdir -vp "$ANDROID_HOME/cmdline-tools"
|
|
unzip -q tools-$SDK_REVISION.zip -d "$ANDROID_HOME/cmdline-tools"
|
|
mv -v "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/latest"
|
|
rm -vf tools-$SDK_REVISION.zip
|
|
fi
|
|
|
|
if [ -x "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" ]; then
|
|
SDK_MANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
|
|
elif [ -x "$ANDROID_HOME/cmdline-tools/bin/sdkmanager" ]; then
|
|
SDK_MANAGER="$ANDROID_HOME/cmdline-tools/bin/sdkmanager"
|
|
else
|
|
echo "ERROR: no usable sdkmanager found in $ANDROID_HOME" >&2
|
|
echo "Checking other possible paths: (empty if not found)" >&2
|
|
find "$ANDROID_HOME" -type f -name sdkmanager >&2
|
|
return
|
|
fi
|
|
|
|
PATH=$PATH:$(dirname "$SDK_MANAGER")
|
|
export PATH
|
|
|
|
# Accept licenses
|
|
{ yes || true; } | sdkmanager --sdk_root="$ANDROID_HOME" --licenses
|
|
|
|
$SDK_MANAGER "build-tools;$BUILDTOOLS_VERSION" # for GeckoView
|
|
$SDK_MANAGER "platforms;android-$PLATFORM_VERSION" # for GeckoView
|
|
$SDK_MANAGER "ndk;$NDK_REVISION" # for mozbuild; application-services
|
|
$SDK_MANAGER "ndk;28.1.13356709" # for Glean
|
|
|
|
export ANDROID_NDK="$ANDROID_HOME/ndk/$NDK_REVISION"
|
|
[ -d "$ANDROID_NDK" ] || {
|
|
echo "$ANDROID_NDK does not exist."
|
|
return
|
|
}
|
|
|
|
echo "INFO: Using sdkmanager ... $SDK_MANAGER"
|
|
echo "INFO: Using NDK ... $ANDROID_NDK"
|