Skip to content

Samsung Galaxy S23 Ultra SM-S918B [dm3q] rooting with KernelSU v3.1.0 Patched files crashes Odin #3217

@umit-c

Description

@umit-c

Please check before submitting an issue

  • I have searched the issues and haven't found anything relevant
  • I will upload bugreport file in KernelSU Manager - Settings - Report log
  • I know how to reproduce the issue which may not be specific to my device

Describe the bug

Describe your problem.

I am not sure if this is a bug, if it is, please advise, and I will re-submit this as a bug report.

I have tried to install KernelSU following the instructions in the documentation. When it comes to flashing the boot.img or init_boot.img, Odin just quits, like the process terminates as if you hit the close button on the top right hand corner (on Windows).

Here is an excerpt from a forum post that I posted to provide some details:

  • I tried many different things, but for the sake of brevity, I will only include main points
  • All searches, resources and guides available are based on downloading the Androidboot.img.gz files from the official repository
  • Such download ended with version 2.1.2
  • The guide at https://xdaforums.com/t/100-how-to-...d-pass-safetynet-and-strong-integrty.4699393/ even uses version 1.0.1
  • I tried version 1.0.1 from the guide above, it worked (sort of), but it detects new version of KernelSU and demands that you upgrade the app, I upgrade up to 2.1.2 till which it demands an update. Ok, lets upgrade to 3.* then it breaks and says it is not installed.
  • I follow the instructions at https://kernelsu.org/guide/installation.html I also run in to problems; I tried a lot of things that wasted my time because the stock ROM boot.img is compressed with lz4, and was unable to extract it, so followed every red herring on the net, which none of it worked of course. The I found the lz4 extractor. I extract the boot.img.lz4. Patch it with KernelSU app both in GKI mode and LKM mode. then I package the boot.img file in tar. When I try to flash it, Odin just closes out. I do the exact same process for init_boot.img.lz4. Extract. Decompress. Patch with KernelSU. Pack it in tar. Flash. Odin just quits. Dissapears from the screen. Process in the system just closes out. I tried patched version of Odin as well. Same.

Finally, trying to flash the patched boot.img or patched init_boot.img directly, results in flash failed status response.

I do not know if I am not doing this correctly, though, from what I can see on the documentation, I am following as per instructions.

Edit:

It has been confirmed. The patch by KernelSU indeed crashes Odin.
Upon further investigation, the patched init_boot.img file produced by KernelSU, causes Odin v3.14.1 to crash.

Faulting application name: Odin3 v3.14.1.exe, version: 2019.5.1.0, time stamp: 0x5cef2bf9
Faulting module name: Odin3 v3.14.1.exe, version: 2019.5.1.0, time stamp: 0x5cef2bf9
Exception code: 0xc0000409
Fault offset: 0x001b9d25
Faulting process id: 0x0x3DDC
Faulting application start time: 0x0x1DC9EE5400763B4
Faulting application path: E:_Software\Android\Samsung Root\Odin3-v3.14.1\Odin3 v3.14.1.exe
Faulting module path: E:_Software\Android\Samsung Root\Odin3-v3.14.1\Odin3 v3.14.1.exe

EDIT:
So, it turns out that Odin is not crashing for no reason. It is crashing because there is something wrong with the patched files.

Patched the stock init_boot.img file with LKM method (as opposed to GKI method - which I believe is for boot.img). Flashed TWRP and flashed the init_boot.img to init_boot partition.

Resulted in boot-loop!!!

TO VERIFY:
Boot back in to TWRP.
Reflash stock init_boot.img/boot.img.
Upon reboot back to System, it boots back up, no more boot-loop.

To Reproduce

  1. download an image that matches Android13-5.15
  2. extract init_boot.img.lz4 and boot.img.lz4
  3. patch both of them via KernelSu v3.1.0
  4. tar either patched init_boot.img or patched boot.img
  5. Add tar in to AP field of Odin
  6. Flash to your device
  7. Odin just dies/crashes.

Expected behavior

Expected behaviour is for Odin to flash the image files to the respective partitions.

Screenshots

No response

Logs

No response

Device info

  • Device: S918B
  • OS Version: Android 15
  • KernelSU Version: 3.1.0
  • Kernel Version: Android13-5.15

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions