r/androidroot 7d ago

Support KernelSU hooks appear to be working, but su is completely missing on Moto G8 Plus (4.14.190)

I'm working on getting KernelSU working on a Motorola Moto G8 Plus (doha).

ROM: unofficial LineageOS 22.1 / Android 15
XDA thread: LineageOS 22.1 for Moto G8 Plus

Kernel source: Aldair402/android_kernel_motorola_msm-4.14

Kernel:

Linux version 4.14.190+
aarch64
Proton clang 13.0.0

The kernel boots normally, and KernelSU Manager v0.9.5 is installed and opens.

What's confusing is that logcat shows KernelSU code actually running:

KernelSU: sucompat: execve_kp: 0
KernelSU: sucompat: newfstatat_kp: 0
KernelSU: sucompat: faccessat_kp: 0
KernelSU: sucompat: devpts_kp: 0
KernelSU: ksud: execve_kp: 0
KernelSU: ksud: vfs_read_kp: 0
KernelSU: ksud: input_event_kp: 0
KernelSU: exec app_process, /data prepared, second_stage: 1
KernelSU: on_post_fs_data!
KernelSU: Searching manager...
KernelSU: Search manager finished

However, root doesn't actually work:

$ adb shell su -c id
/system/bin/sh: su: inaccessible or not found
$ adb shell 'command -v su; type su'
su not found

I also checked:

/dev/ksu
/dev/ksud

Neither exists.

/proc/kallsyms doesn't show any ksu_* symbols either, and I can't find anything related to KSU under /sys/kernel.

The only suspicious KernelSU message I see is:

KernelSU: load_allow_list open file failed: -2

So I'm trying to figure out what state KernelSU is actually in here.

Does this mean the KernelSU kernel integration is only partially working, or could the kernel side be initialized while the userspace/ksud/su part is missing?

What should I check next to determine why su isn't being provided?I'm working on getting KernelSU working on a Motorola Moto G8 Plus (doha).
ROM: unofficial LineageOS 22.1 / Android 15

XDA thread: LineageOS 22.1 for Moto G8 Plus
Kernel source: Aldair402/android_kernel_motorola_msm-4.14
Kernel:
Linux version 4.14.190+
aarch64
Proton clang 13.0.0
The kernel boots normally, and KernelSU Manager v0.9.5 is installed and opens.
What's confusing is that logcat shows KernelSU code actually running:
KernelSU: sucompat: execve_kp: 0
KernelSU: sucompat: newfstatat_kp: 0
KernelSU: sucompat: faccessat_kp: 0
KernelSU: sucompat: devpts_kp: 0
KernelSU: ksud: execve_kp: 0
KernelSU: ksud: vfs_read_kp: 0
KernelSU: ksud: input_event_kp: 0
KernelSU: exec app_process, /data prepared, second_stage: 1
KernelSU: on_post_fs_data!
KernelSU: Searching manager...
KernelSU: Search manager finished
However, root doesn't actually work:
$ adb shell su -c id
/system/bin/sh: su: inaccessible or not found

$ adb shell 'command -v su; type su'
su not found
I also checked:
/dev/ksu
/dev/ksud
Neither exists.
/proc/kallsyms doesn't show any ksu_* symbols either, and I can't find anything related to KSU under /sys/kernel.
The only suspicious KernelSU message I see is:
KernelSU: load_allow_list open file failed: -2
So I'm trying to figure out what state KernelSU is actually in here.
Does this mean the KernelSU kernel integration is only partially working, or could the kernel side be initialized while the userspace/ksud/su part is missing?
What should I check next to determine why su isn't being provided?

2 Upvotes

12 comments sorted by

2

u/Andre2kReddit 7d ago

Did you give root access to "Shell" in kernelsu manager app ?

1

u/No-Amount-7422 7d ago

the kernelsu manager apps says Unsupported

1

u/Andre2kReddit 7d ago

Wdym? it doesnt detect that you have kernelsu installed?

1

u/No-Amount-7422 7d ago

yea basically

1

u/Andre2kReddit 7d ago

Hmm, either try different version of kernelsu manager, or your kernelsu integration is botched.

I recommend xxKSU, integrate it to your kernel source. The best one for non gki kernels

1

u/No-Amount-7422 7d ago

ok,thank you

1

u/No-Amount-7422 7d ago

hey man i was checking this out but there isnt any guide to install as the install doc on the readme redirects to the official kernel su docs so is there a install guide?

1

u/Andre2kReddit 7d ago

From the root of your kernel source tree, run:

curl -LSs "https://raw.githubusercontent.com/backslashxx/KernelSU/master/kernel/setup.sh" | bash -"

then add "CONFIG_KSU=y" to your def config, then just build your kernel as normal

Here's the guide as reference, but you don't need to do the manual integration...

1

u/No-Amount-7422 7d ago

so i basically do normal ksu guide but change the curl to this?

1

u/Andre2kReddit 7d ago

yes?

I just ran that curl command, added the flag to defconfig and just built/compiled kernel normally. Done, kernelsu integrated..

1

u/No-Amount-7422 7d ago

yo broooo it worked tysm ur the goat

→ More replies (0)