From c194168d9bf01afb1ad3556e9d0d8f1c08bb2a7a Mon Sep 17 00:00:00 2001 From: Wang Han <1701210638@pku.edu.cn> Date: Sun, 30 Jun 2024 13:14:24 +0800 Subject: [PATCH] Fix item match when extracting lib from stub Close #8083. --- .../java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt index 62a7dd92b..b149320ac 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt @@ -124,7 +124,7 @@ abstract class MagiskInstallImpl protected constructor( if (isRunningAsStub) { ZipFile.builder().setFile(StubApk.current(context)).get().use { zf -> zf.entries.asSequence().filter { - !it.isDirectory && it.name.startsWith("/lib/${Const.CPU_ABI}/") + !it.isDirectory && it.name.startsWith("lib/${Const.CPU_ABI}/") }.forEach { val n = it.name.substring(it.name.lastIndexOf('/') + 1) val name = n.substring(3, n.length - 3)