fix: zygiskd building NDK version selection

This commit fixes the code that selects which NDK to use.
This commit is contained in:
ThePedroo
2024-10-04 04:09:31 -03:00
parent 6cc01fb548
commit b252056ca0

View File

@@ -14,8 +14,7 @@ fun getLatestNDKPath(): String {
throw Exception("NDK not found at $ndkPath")
}
// get 2nd latest version
val ndkVersion = ndkDir.toFile().listFiles().filter { it.isDirectory }.map { it.name }.sorted().reversed().getOrNull(2)
val ndkVersion = ndkDir.toFile().listFiles().filter { it.isDirectory }.map { it.name }.sorted().last()
return ndkPath + "/" + ndkVersion
}