topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
49.03k stars 12.61k forks source link

RCA Voyager III -- Magisk crashes installing an module #8452

Closed Lost-Entrepreneur439 closed 1 month ago

Lost-Entrepreneur439 commented 1 month ago

Trying to install any module causes Magisk to crash on "Copying zip to temporary directory". Magisk was installed via patching boot.img and flashing the patched img with Fastboot. Device is on SDK 24 (Android 7.0).

Attached txt is the logcat when trying to install a module. logcat.txt

Device: RCA Voyager III Android version: 7.0 Magisk version name: v28.0 Magisk version code: 28001

vvb2060 commented 1 month ago
0-11 05:10:36.864  4726  4726 E Ty      : java.lang.NoSuchMethodError: No virtual method getLastAccessTime()Ljava/nio/file/attribute/FileTime; in class La/iy; or its super classes (declaration of 'a.iy' appears in /data/app/com.topjohnwu.magisk-1/base.apk)

https://issuetracker.google.com/issues/354109777

Lost-Entrepreneur439 commented 1 month ago

I decided to test, and have also verified this issue isn't present in 27.0, I can install modules fine in 27.

Traviscott990 commented 1 month ago

Yes, I also faced the same problem with the latest version of Magisk 28 as the Magisk application closes immediately when trying to install any module... and the only way to install the module is to flash it through twrp.!

aviraxp commented 1 month ago

Post FULL LOG with DEBUG version magisk

aviraxp commented 1 month ago
java.lang.NoSuchMethodError: No virtual method getLastAccessTime()Ljava/nio/file/attribute/FileTime; in class Lorg/apache/commons/compress/archivers/zip/ZipArchiveEntry; or its super classes (declaration of 'org.apache.commons.compress.archivers.zip.ZipArchiveEntry' appears in /data/app/com.topjohnwu.magisk-1/base.apk:classes16.dex)
    at org.apache.commons.compress.archivers.zip.ZipArchiveEntry$$ExternalSyntheticAPIConversion1.m(D8$$SyntheticClass:0)
    at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.requiresExtraTimeFields(ZipArchiveEntry.java:1158)
    at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setExtraTimeFields(ZipArchiveEntry.java:1309)
    at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setTime(ZipArchiveEntry.java:1472)
    at org.apache.commons.compress.archivers.zip.ZipFile.readCentralDirectoryEntry(ZipFile.java:1430)
    at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:1286)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:865)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:89)
    at org.apache.commons.compress.archivers.zip.ZipFile$Builder.get(ZipFile.java:163)
    at com.topjohnwu.magisk.core.utils.ZipUtilsKt.unzip(ZipUtils.kt:13)
    at com.topjohnwu.magisk.core.tasks.FlashZip.flash(FlashZip.kt:51)
    at com.topjohnwu.magisk.core.tasks.FlashZip.access$flash(FlashZip.kt:19)
    at com.topjohnwu.magisk.core.tasks.FlashZip$exec$2.invokeSuspend(FlashZip.kt:72)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ba20a5d, Dispatchers.Main.immediate]