Skip to content

Unable to run su command directly in a shell #2647

@Fede2782

Description

@Fede2782

As a workaround you can run exec su or sh -c "su".

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

Unable to use "su" command in adb shell or any other terminal app which doesn't have a wrapper for su.

To Reproduce

  1. Open ADB shell, grant shell root permission via Manager
  2. run 'su'

Expected behavior

"su" command should allow to obtain root access directly. Apps like Material Files are able to get root access properly.

Screenshots

Image

Logs

KernelSU_bugreport_2025-06-21_22_14.tar.gz

Device info

  • Device: a34x SM-A346B
  • OS Version: Android 15
  • KernelSU Version: v1.0.5, LKM mode
  • Kernel Version: 6.6.50-android15-8, kernel image has been rebuilt to remove samsung knox features which interfere with root and KernelSU (UH,KDP,RKP,DEFEX,PROCA,FIVE,GAF)

Additional context

Manager, root access in Apps and Modules all work properly, only root in adb is broken. This also happens without any module installed of course.

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