Fix item match when extracting lib from stub

Close #8083.
This commit is contained in:
Wang Han 2024-06-30 13:14:24 +08:00 committed by GitHub
parent cacc60b1ac
commit c194168d9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)