You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
fix: zygiskd building NDK version selection
This commit fixes the code that selects which NDK to use.
This commit is contained in:
@@ -14,8 +14,7 @@ fun getLatestNDKPath(): String {
|
|||||||
throw Exception("NDK not found at $ndkPath")
|
throw Exception("NDK not found at $ndkPath")
|
||||||
}
|
}
|
||||||
|
|
||||||
// get 2nd latest version
|
val ndkVersion = ndkDir.toFile().listFiles().filter { it.isDirectory }.map { it.name }.sorted().last()
|
||||||
val ndkVersion = ndkDir.toFile().listFiles().filter { it.isDirectory }.map { it.name }.sorted().reversed().getOrNull(2)
|
|
||||||
return ndkPath + "/" + ndkVersion
|
return ndkPath + "/" + ndkVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user