Skip to content

ksud_magic not found when patching Pixel 9 Pro with WIldKSU_LKM #355

@TonyApuzzo

Description

@TonyApuzzo

Prerequisites

  • I have searched existing issues to make sure this bug has not been reported before
  • I have searched the XDA Forums to make sure this bug has not been reported before
  • I have read the README documentation

Is this issue about reporting a virus or trojan detection?

No

What happened?

ksud_magic not found when attempting to patch with WildKSU_LKM. Subsequent attempt on exact same phone and session witih SukiSU_LKM did work (see attached support zip).

Device state before issue

unrooted stock Full 20260305 OTA flashed and freshly rebooted.

Steps to reproduce

Reproduction steps

  1. Launch PixelFlasher 8.15.2.0 on Windows.
  2. Connect a Google Pixel 9 Pro (caiman) in adb mode.
  3. Device state:
    • Build: CP1A.260305.018
    • Bootloader: unlocked
    • Not currently rooted
    • init_boot partition present
  4. Load the OTA / boot image for the same build:
    • caiman-ota-cp1a.260305.018-334690e5.zip
    • PixelFlasher selects init_boot.img
  5. Ensure Wild_KSU app v3.0.1:33179 is installed on the phone (com.twj.wksu).
  6. In PixelFlasher, choose:
    • Patch boot
    • Wild_KSU LKM
    • Recommended image: Use init_boot.img
  7. When prompted for dynamic module mount, choose MagicMount.
  8. Let PixelFlasher generate and run the patch script on-device.

Actual result

The patch fails because the generated script tries to execute ksud_magic, but that file is not extracted from the installed Wild_KSU APK.

Relevant log output:

Copying [../lib/arm64-v8a/libandroidx.graphics.path.so] to [androidx.graphics.path]
Copying [../lib/arm64-v8a/libkernelsu.so] to [kernelsu]
Copying [../lib/arm64-v8a/libksud.so] to [ksud]
Copying [../lib/arm64-v8a/libmagiskboot.so] to [magiskboot]

/data/local/tmp/pf_patch.sh[25]: /data/local/tmp/pf/assets/ksud_magic: inaccessible or not found
...
/data/local/tmp/pf_patch.sh[31]: ./ksud_magic: inaccessible or not found
OUTPUT_FILE: []
ERROR: No new file is created. Patching failed!

### Is your device rooted?

No

### If rooted, have you granted shell root access?

N/A (device not rooted)

### Are you using a custom ROM or kernel?

No, I'm using stock ROM and kernel

### If using custom ROM/kernel, please confirm

- [ ] I have checked the custom ROM/kernel developer's documentation related to this issue
- [ ] I have checked if this issue has been reported to the ROM/kernel developer

### PixelFlasher Version

8.15.2.0

### OS Platform

Windows 11 

### Device Model

Pixel 9 Pro

### Support File Status

I have attached the encrypted support file generated by PixelFlasher (required naming format: Support_YYYY-MM-DD_hh-mm-ss.zip)

### Support File Attachment (REQUIRED)

[support_2026-03-21_14-18-09.zip](https://github.com/user-attachments/files/26161562/support_2026-03-21_14-18-09.zip)

### Additional Notes

(Reproduction instructions generated with ChatGPT from actual log then manually reviewed for accuracy.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions