From 6e4837da27ea2ce0895939147df91405510a24fa Mon Sep 17 00:00:00 2001 From: Aunali321 <48486084+Aunali321@users.noreply.github.com> Date: Thu, 15 Sep 2022 01:42:46 +0530 Subject: [PATCH] fix: should fix picking wrong jni lib. --- android/app/src/main/kotlin/app/revanced/manager/utils/Aapt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/app/revanced/manager/utils/Aapt.kt b/android/app/src/main/kotlin/app/revanced/manager/utils/Aapt.kt index 10c80dea1e..647a0d76ee 100644 --- a/android/app/src/main/kotlin/app/revanced/manager/utils/Aapt.kt +++ b/android/app/src/main/kotlin/app/revanced/manager/utils/Aapt.kt @@ -9,4 +9,4 @@ object Aapt { } } -private fun File.resolveAapt() = resolve(list { _, f -> !File(f).isDirectory }!!.first()) +private fun File.resolveAapt() = resolve(list { _, f -> !File(f).isDirectory && file.contains("aapt") }!!.first()) \ No newline at end of file