diff --git a/build-tools/xaprepare/xaprepare/ConfigAndData/BuildAndroidPlatforms.cs b/build-tools/xaprepare/xaprepare/ConfigAndData/BuildAndroidPlatforms.cs index d1aa68d2819..3c178fcaffd 100644 --- a/build-tools/xaprepare/xaprepare/ConfigAndData/BuildAndroidPlatforms.cs +++ b/build-tools/xaprepare/xaprepare/ConfigAndData/BuildAndroidPlatforms.cs @@ -5,8 +5,8 @@ namespace Xamarin.Android.Prepare { class BuildAndroidPlatforms { - public const string AndroidNdkVersion = "23b"; - public const string AndroidNdkPkgRevision = "23.1.7779620"; + public const string AndroidNdkVersion = "24"; + public const string AndroidNdkPkgRevision = "24.0.8215888"; public static readonly List AllPlatforms = new List { new AndroidPlatform (apiName: "", apiLevel: 1, platformID: "1"), @@ -51,9 +51,9 @@ class BuildAndroidPlatforms public const string AndroidX86_64_NET6 = AbiNames.TargetJit.AndroidX86_64 + "_NET6"; public static readonly Dictionary NdkMinimumAPI = new Dictionary { - { AbiNames.TargetJit.AndroidArmV7a, 16 }, { AndroidArmV7a_NET6, 21 }, + { AbiNames.TargetJit.AndroidArmV7a, 19 }, { AndroidArmV7a_NET6, 21 }, { AbiNames.TargetJit.AndroidArmV8a, 21 }, { AndroidArmV8a_NET6, 21 }, - { AbiNames.TargetJit.AndroidX86, 16 }, { AndroidX86_NET6, 21 }, + { AbiNames.TargetJit.AndroidX86, 19 }, { AndroidX86_NET6, 21 }, { AbiNames.TargetJit.AndroidX86_64, 21 }, { AndroidX86_64_NET6, 21 }, }; } diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs index b547258b4aa..8bda821084c 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AotTests.cs @@ -207,9 +207,9 @@ public void BuildAotApplicationAndÜmläüts (string supportedAbis, bool enableL // Since we overrode minSdkVersion=16, that means we should use libc.so from android-16. if (ndk22OrNewer) { // NDK r22 or newer store libc in [toolchain]/sysroot/usr/lib/[ARCH]/[API]/libc.so - StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*sysroot.*.usr.lib.*16.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!"); + StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*sysroot.*.usr.lib.*19.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!"); } else { - StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*android-16.arch-.*.usr.lib.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!"); + StringAssertEx.ContainsRegex (@"\s*\[aot-compiler stdout].*android-19.arch-.*.usr.lib.libc\.so", b.LastBuildOutput, "AOT+LLVM should use libc.so from minSdkVersion!"); } } foreach (var abi in supportedAbis.Split (new char [] { ';' })) { diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/MakeBundleTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/MakeBundleTests.cs index bca641176c2..3ddb6596501 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/MakeBundleTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/MakeBundleTests.cs @@ -159,7 +159,7 @@ void CheckBundleForSoname (ZipArchive zip, string bundlePath) string sonameField; if (elfReaderLlvm) { - arguments = "-dynamic-table"; + arguments = "--dynamic-table"; sonameField = "SONAME"; } else { arguments = "-d"; diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/ManifestTest.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/ManifestTest.cs index 9dca861a8a1..6915b40428e 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/ManifestTest.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/ManifestTest.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using NUnit.Framework; using Xamarin.ProjectTools; @@ -440,7 +440,7 @@ public void DirectBootAwareAttribute () /* pattern */ "{abi}{minSDK:00}{versionCode:000}", /* props */ null, /* shouldBuild */ true, - /* expected */ "216012;316012", + /* expected */ "219012;319012", }, new object[] { /* seperateApk */ true, @@ -450,7 +450,7 @@ public void DirectBootAwareAttribute () /* pattern */ "{abi}{minSDK:00}{screen}{versionCode:000}", /* props */ "screen=24", /* shouldBuild */ true, - /* expected */ "21624012;31624012", + /* expected */ "21924012;31924012", }, new object[] { /* seperateApk */ true, @@ -460,7 +460,7 @@ public void DirectBootAwareAttribute () /* pattern */ "{abi}{minSDK:00}{screen}{foo:0}{versionCode:000}", /* props */ "screen=24;foo=$(Foo)", /* shouldBuild */ true, - /* expected */ "216241012;316241012", + /* expected */ "219241012;319241012", }, new object[] { /* seperateApk */ true, @@ -470,7 +470,7 @@ public void DirectBootAwareAttribute () /* pattern */ "{abi}{minSDK:00}{screen}{foo:00}{versionCode:000}", /* props */ "screen=24;foo=$(Foo)", /* shouldBuild */ false, - /* expected */ "2162401012;3162401012", + /* expected */ "2192401012;3192401012", }, }; diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/NdkUtilTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/NdkUtilTests.cs index 08dab3bc073..5d4199800b4 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/NdkUtilTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/NdkUtilTests.cs @@ -42,7 +42,7 @@ public void TestNdkUtil () Assert.IsTrue (ndk.ValidateNdkPlatform (arch, enableLLVM: false)); Assert.AreEqual (0, errors.Count, "NdkTools.ValidateNdkPlatform should not have returned false."); int level = ndk.GetMinimumApiLevelFor (arch); - int expected = 16; + int expected = 19; Assert.AreEqual (expected, level, $"Min Api Level for {arch} should be {expected}."); var compilerNoQuotes = ndk.GetToolPath (NdkToolKind.CompilerC, arch, level); Assert.AreEqual (0, errors.Count, "NdkTools.GetToolPath should not have errored."); diff --git a/tests/Mono.Android-Tests/Properties/AndroidManifest.xml b/tests/Mono.Android-Tests/Properties/AndroidManifest.xml index 3a108a7ade0..014c0497782 100644 --- a/tests/Mono.Android-Tests/Properties/AndroidManifest.xml +++ b/tests/Mono.Android-Tests/Properties/AndroidManifest.xml @@ -1,6 +1,6 @@  - + diff --git a/tests/Mono.Android-Tests/Runtime-AppBundle/Properties/AndroidManifest.xml b/tests/Mono.Android-Tests/Runtime-AppBundle/Properties/AndroidManifest.xml index b4953758066..e9ff9c6650e 100644 --- a/tests/Mono.Android-Tests/Runtime-AppBundle/Properties/AndroidManifest.xml +++ b/tests/Mono.Android-Tests/Runtime-AppBundle/Properties/AndroidManifest.xml @@ -1,6 +1,6 @@  - +