Skip to content

Commit 9ad4a5c

Browse files
committed
Backend: work around KernelSU not processing modules on initial install
- KernelSU currently requires the Manager app be run after first rooted to dump /data/adb/ksud, and then it will process any pending modules_update.img on the next reboot - the above is problematic since some custom kernels providing KernelSU support will require a working module system to overlay .ko kernel modules needed for feature support and sometimes the ROM won't boot without these matching - work around this KernelSU behavior by dumping ksud ourselves as-needed during the AK3 helper module installation, allowing seamless initial KernelSU kernel support installation with AK3 helper module .ko support
1 parent 32afd2e commit 9ad4a5c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

META-INF/com/google/android/update-binary

+4
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ do_modules() {
430430
# this may be the initial KernelSU install or first module so setup as needed
431431
if [ -f $AKHOME/kernelsu_patched ]; then
432432
umask 077;
433+
if [ ! -f /data/adb/ksud ]; then
434+
cp -f /data/app/*/me.weishu.kernelsu*/lib/*/libksud.so /data/adb/ksud;
435+
chmod 755 /data/adb/ksud;
436+
fi;
433437
if [ ! -d /data/adb/modules ]; then
434438
mkdir -p /data/adb/modules;
435439
chmod 777 /data/adb/modules;

META-INF/com/google/android/updater-script

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
44
#
55
#
6-
# AK_BASE_VERSION=20230910
6+
# AK_BASE_VERSION=20230913

0 commit comments

Comments
 (0)