Skip to content

Commit 8440a72

Browse files
Added: Export ANDROID__BUILD_VERSION_SDK in shell environment variable for the Android build SDK version
This is also required for `libtermux-exec-*-ld-preload.so` `$LD_PRELOAD` library as well for `termux-exec` version `>= 2.0.0`. - termux/termux-exec-package@db738a11
1 parent 0cdbe98 commit 8440a72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

termux-shared/src/main/java/com/termux/shared/shell/TermuxShellUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public static String[] buildEnvironment(Context currentPackageContext, boolean i
7575
addToEnvIfPresent(environment, "ANDROID_RUNTIME_ROOT");
7676
addToEnvIfPresent(environment, "ANDROID_TZDATA_ROOT");
7777

78+
environment.add("ANDROID__BUILD_VERSION_SDK=" + Build.VERSION.SDK_INT);
79+
7880
if (isFailSafe) {
7981
// Keep the default path so that system binaries can be used in the failsafe session.
8082
environment.add("PATH= " + System.getenv("PATH"));

0 commit comments

Comments
 (0)