tiann / KernelSU

A Kernel based root solution for Android
https://kernelsu.org
GNU General Public License v3.0
10.05k stars 1.63k forks source link

Modules not working #377

Closed reocat closed 1 year ago

reocat commented 1 year ago

Modules not working. It looks like this: IMG_20230412_200750 Also, after reboot there still "update" file in module directory. Even if I unpack it to module dir, it still can't be mounted. Kernel sources: https://github.com/reocat/android_kernel_nokia_sdm660_ksu Device: Nokia 6.1 (2018) Logs: KernelSU_bugreport_2023-04-12_20_05.tar.gz

HuskyDG commented 1 year ago

Overlayfs is not loaded because ksud is not exec-ed

tiann commented 1 year ago
04-15 05:55:29.010     0     0 I init    : starting service 'exec 14 (/data/adb/ksud post-fs-data)'...
04-15 05:55:29.013     0     0 I init    : SVC_EXEC service 'exec 14 (/data/adb/ksud post-fs-data)' pid 850 (uid 0 gid 0+0 context u:r:su:s0) started; waiting...
04-15 05:55:29.014     0     0 E init    : cannot execv('/data/adb/ksud'). See the 'Debugging init' section of init's README.md for tips: Permission denied
04-15 05:55:29.017     0     0 I init    : Service 'exec 14 (/data/adb/ksud post-fs-data)' (pid 850) exited with status 127 waiting took 0.005000 seconds
04-15 05:55:29.017     0     0 I init    : Sending signal 9 to service 'exec 14 (/data/adb/ksud post-fs-data)' (pid 850) process group...
04-15 05:55:29.017     0     0 I libprocessgroup: Successfully killed process cgroup uid 0 pid 850 in 0ms
reocat commented 1 year ago

What should i do firstly? Any advises?

tiann commented 1 year ago

Can use execute /data/adb/ksud -v in adb shell?

reocat commented 1 year ago

error: unexpected argument '-v' found

Can use execute /data/adb/ksud -v in adb shell?

tiann commented 1 year ago

I'm sorry, there is a typo, try this: /data/adb/ksud -V

tiann commented 1 year ago

And can you use the latest ci manager and send log again? we add some extra logs in recent commits.

reocat commented 1 year ago

KernelSU_bugreport_2023-04-18_08_49.tar.gz Also updated ksud to latest CI version. Now says: ksud 0.5.2-30-g550c8ae

tiann commented 1 year ago

Is your ROM boot with SELinux state permissive?

reocat commented 1 year ago

Is your ROM boot with SELinux state permissive?

Yes, 'cause one app can't work while my ROM in enforcing mode

tiann commented 1 year ago

please update the kernelsu source, this commit should fix it: https://github.com/tiann/KernelSU/commit/0c9ecf3abc0992a87b9b5eaa363430b457af2036