From df741213a76f97a145061aed0c1d6a783602973b Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Mon, 16 Feb 2026 12:16:43 +0100 Subject: [PATCH 1/2] Make Android API level configurable --- .../Microsoft.NETCore.Native.Unix.targets | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index e935ae43de5090..480ca262ff8ddb 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -30,6 +30,10 @@ The .NET Foundation licenses this file to you under the MIT license. + + 24 + true true @@ -48,10 +52,10 @@ The .NET Foundation licenses this file to you under the MIT license. armv7 gnu - android21 + android$(CrossCompileAndroidApiLevel) musl gnueabihf - androideabi21 + androideabi$(CrossCompileAndroidApiLevel) musleabihf From 90cc37969e2eff619ad12a0707db11a3adcc7861 Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Mon, 16 Feb 2026 13:20:53 +0100 Subject: [PATCH 2/2] Set the default API level back to 21, to match the rest of the runtime --- .../BuildIntegration/Microsoft.NETCore.Native.Unix.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index 480ca262ff8ddb..5fe5d22299300a 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -32,7 +32,7 @@ The .NET Foundation licenses this file to you under the MIT license. - 24 + 21 true