Skip to content

Commit 48b1ef7

Browse files
fix,scripts: builds for termux-am with AppArmor hardening
termux-am tries to use newer build tools version 33.0.3, so install it Also it needs android-33 platform We need them installed or else it'll fail to build due to AppArmor hardening locking ~/lib/ directory as read only.
1 parent 78b858a commit 48b1ef7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/properties.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ TERMUX_SCRIPTDIR="${TERMUX_SCRIPTDIR:-TERMUX_PKGS__BUILD__REPO_ROOT_DIR}" # Depr
300300

301301

302302
TERMUX_SDK_REVISION=9123335
303-
TERMUX_ANDROID_BUILD_TOOLS_VERSION=33.0.1
303+
TERMUX_ANDROID_BUILD_TOOLS_VERSION=33.0.3
304304
# when changing the above:
305305
# change TERMUX_PKG_VERSION (and remove TERMUX_PKG_REVISION if necessary) in:
306306
# apksigner, d8

scripts/setup-android-sdk.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ yes | $SDK_MANAGER --sdk_root="$ANDROID_HOME" --licenses
7272
yes | $SDK_MANAGER --sdk_root="$ANDROID_HOME" \
7373
"platform-tools" \
7474
"build-tools;${TERMUX_ANDROID_BUILD_TOOLS_VERSION}" \
75-
"platforms;android-35" \
75+
# Needed by termux-am or else it fails to build with AppArmor hardening
76+
"platforms;android-33" \
7677
"platforms;android-28" \
7778
"platforms;android-24"

0 commit comments

Comments
 (0)