@@ -135,7 +135,7 @@ jobs:
135135 cp ../../susfs4ksu/kernel_patches/fs/* ./common/fs/
136136 cp ../../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
137137
138- curl -o ./common/fs/susfs.c -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/susfs_test/susfs_debug.c
138+ # curl -o ./common/fs/susfs.c -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/susfs_test/susfs_debug.c
139139
140140 cd ./KernelSU-Next
141141
@@ -161,12 +161,6 @@ jobs:
161161 ;;
162162 esac
163163 patch -p1 --forward < ksun_susfs_latest.patch || true
164- # # [PATCH] hunt from start_stack
165- # echo "[PATCH] hunt from start_stack"
166- # curl -Ls https://github.com/backslashxx/KernelSU/commit/939f0fb1398355e18280a685f5944aad8052a372.patch | patch -p1 -F 3 --verbose
167- # # add counter
168- # echo "[PATCH] hunt from start_stack - Add Counter"
169- # curl -Ls https://github.com/backslashxx/KernelSU/commit/e306700b29332e9e3e8046c81cc0b3690ef3e59d.patch | patch -p1 -F 3 --verbose
170164
171165 # Change to common directory and apply SUSFS patch
172166 cd ../common
@@ -179,7 +173,7 @@ jobs:
179173 fi
180174 patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
181175
182- curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/susfs_test/test_kabi_5.patch | patch -p1 -F 3
176+ # curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/susfs_test/test_kabi_5.patch | patch -p1 -F 3
183177
184178 grep -C 10 "ANDROID_KABI_RESERVE(6);" ./include/linux/sched.h
185179
@@ -189,16 +183,16 @@ jobs:
189183 echo "Line already present. Skipping SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS Patch."
190184 fi
191185
192- curl -Ls https://github.com/ximi-libra-test/android_kernel_xiaomi_libra/commit/aa52855d8658cbee7f2a2e1cdb2d646efbaded59.patch | patch -p1 -F 3
193- # KERNEL_VERSION="${{ inputs.kernel_version }}"
194- # MIN_VERSION="5.16"
186+ # curl -Ls https://github.com/ximi-libra-test/android_kernel_xiaomi_libra/commit/aa52855d8658cbee7f2a2e1cdb2d646efbaded59.patch | patch -p1 -F 3
187+ KERNEL_VERSION="${{ inputs.kernel_version }}"
188+ MIN_VERSION="5.16"
195189
196- # if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
197- # echo "Patching ptrace!"
198- # curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/ptrace.patch | patch -p1 -F 3
199- # else
200- # echo "Kernel >= $MIN_VERSION, skipping ptrace patch"
201- # fi
190+ if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
191+ echo "Patching ptrace!"
192+ curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/ptrace.patch | patch -p1 -F 3
193+ else
194+ echo "Kernel >= $MIN_VERSION, skipping ptrace patch"
195+ fi
202196
203197 - name : Apply KSUN Hooks
204198 run : |
@@ -244,6 +238,7 @@ jobs:
244238 echo "CONFIG_KSU_SUSFS_SPOOF_CMDLINE_OR_BOOTCONFIG=y" >> ./common/arch/arm64/configs/gki_defconfig
245239 echo "CONFIG_KSU_SUSFS_OPEN_REDIRECT=y" >> ./common/arch/arm64/configs/gki_defconfig
246240 echo "CONFIG_KSU_SUSFS_SUS_SU=n" >> ./common/arch/arm64/configs/gki_defconfig
241+ echo "CONFIG_KSU_SUSFS_HIDE_KSU_SUSFS_SYMBOLS=n" >> ./common/arch/arm64/configs/gki_defconfig
247242
248243 # Add additional tmpfs config setting
249244 echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
@@ -362,7 +357,7 @@ jobs:
362357
363358 echo "Copying Image"
364359 cp ./out/dist/Image ../AnyKernel3/Image
365- cp ./out/dist/vmlinux ../AnyKernel3/vmlinux
360+ # cp ./out/dist/vmlinux ../AnyKernel3/vmlinux
366361
367362 echo "Navigating to AnyKernel3 directory..."
368363 cd ../AnyKernel3
0 commit comments