-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct Install failed: Unable to patch ramdisk
#8013
Comments
Can you try the latest CI build and see if the issue is resolved? https://github.com/topjohnwu/Magisk/actions/runs/8855504814 |
@canyie The App was crashed right after I tap 04-28 15:48:56.393 19567 19567 E App : kotlin.UninitializedPropertyAccessException: lateinit property installDir has not been initialized
04-28 15:48:56.393 19567 19567 E App : at com.topjohnwu.magisk.core.tasks.MagiskInstallImpl.getInstallDir(MagiskInstaller.kt:58)
04-28 15:48:56.393 19567 19567 E App : at com.topjohnwu.magisk.core.tasks.MagiskInstaller.exec$suspendImpl(MagiskInstaller.kt:576)
04-28 15:48:56.393 19567 19567 E App : at com.topjohnwu.magisk.core.tasks.MagiskInstaller$exec$1.invokeSuspend(MagiskInstaller.kt)
04-28 15:48:56.393 19567 19567 E App : at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
04-28 15:48:56.393 19567 19567 E App : at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
04-28 15:48:56.393 19567 19567 E App : at android.os.Handler.handleCallback(Handler.java)
04-28 15:48:56.393 19567 19567 E App : at android.os.Handler.dispatchMessage(Handler.java)
04-28 15:48:56.393 19567 19567 E App : at android.os.Looper.loop(Looper.java)
04-28 15:48:56.393 19567 19567 E App : at android.app.ActivityThread.main(ActivityThread.java)
04-28 15:48:56.393 19567 19567 E App : at java.lang.reflect.Method.invoke(Native Method)
04-28 15:48:56.393 19567 19567 E App : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-28 15:48:56.393 19567 19567 E App : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-28 15:48:56.393 19567 19567 E App : Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@906538d, Dispatchers.Main.immediate] |
I tried locally patching the provided boot image, and it works just fine here, with both arm64-v8a and armeabi-v7a ABIs. 🤔
|
33b7b8b (27002)Does the local one magisk_install_log_2024-05-03T03.27.28.log
I was able to do root things like I've tried the new build of logcat_Magisk_27002_4dc1c59_app-debug_2024-05-03T06.41.10.217000.txt 05-03 06:41:11.813 3385 7582 E ActivityTrigger: activityStartTrigger: not whiteListedcom.topjohnwu.magisk/com.topjohnwu.magisk.ui.MainActivity/27002 I could click the save button, and here's the log: 81658d4 (27002)If I rollback the App to the magisk_install_log_2024-05-03T03.43.33.log- Device platform: armeabi-v7a
- Installing: 81658d45 (27002)
- Copying image to cache
- Unpacking boot image
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
HEADER_VER [0]
KERNEL_SZ [4820240]
RAMDISK_SZ [3080446]
SECOND_SZ [0]
EXTRA_SZ [1099776]
OS_VERSION [7.1.1]
OS_PATCH_LEVEL [2019-01]
PAGESIZE [2048]
NAME [SYSMAGIC000KU]
CMDLINE [buildvariant=userdebug]
CHECKSUM [293d6aa103784032660708f460290ca0ea8eb751000000000000000000000000]
! Could not find zImage gzip piggy, keeping raw kernel
KERNEL_FMT [zimage]
RAMDISK_FMT [gzip]
EXTRA_FMT [raw]
SAMSUNG_SEANDROID
[boot/sign.rs:242] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [19] (primitive)
- Checking ramdisk status
- Stock boot image detected
- Patching ramdisk
resetprop: get prop [ro.crypto.state]: [unencrypted]
preinit device: USERDATA
- Pre-init storage partition: USERDATA
[boot/cpio.rs:406] Value too large for defined data type (os error 75)
[boot/cpio.rs:634] Failed to process cpio
! Unable to patch ramdisk
! Installation failed So it seems like there's a different bug in the latest CI build that should be opened in a new issue? |
@eduardomoguel what? |
Based on https://github.com/topjohnwu/Magisk/actions/workflows/build.yml?page=2&query=event%3Apush Spoiler (click to expand)
|
Device: Samsung Galaxy Note 4 SM-N910H
Android version: 7.1.1 Nougat (API 25)
Magisk version name: debug
Magisk version code: 27002 (81658d45) [Download]
I've already direct installed with
27001 (3d91a561)
.It was fine to direct install in the previous version, but now it is not.
I was able to update the App to
27002 (81658d45)
, but not when direct install the Magisk.System:
Boot:
magisk_install_log_2024-04-28T11.16.17.log
The text was updated successfully, but these errors were encountered: