@@ -135,7 +135,7 @@ jobs:
135
135
cp ../../susfs4ksu/kernel_patches/fs/* ./common/fs/
136
136
cp ../../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
137
137
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
139
139
140
140
cd ./KernelSU-Next
141
141
@@ -161,12 +161,6 @@ jobs:
161
161
;;
162
162
esac
163
163
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
170
164
171
165
# Change to common directory and apply SUSFS patch
172
166
cd ../common
@@ -179,7 +173,7 @@ jobs:
179
173
fi
180
174
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
181
175
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
183
177
184
178
grep -C 10 "ANDROID_KABI_RESERVE(6);" ./include/linux/sched.h
185
179
@@ -189,16 +183,16 @@ jobs:
189
183
echo "Line already present. Skipping SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS Patch."
190
184
fi
191
185
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"
195
189
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
202
196
203
197
- name : Apply KSUN Hooks
204
198
run : |
@@ -244,6 +238,7 @@ jobs:
244
238
echo "CONFIG_KSU_SUSFS_SPOOF_CMDLINE_OR_BOOTCONFIG=y" >> ./common/arch/arm64/configs/gki_defconfig
245
239
echo "CONFIG_KSU_SUSFS_OPEN_REDIRECT=y" >> ./common/arch/arm64/configs/gki_defconfig
246
240
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
247
242
248
243
# Add additional tmpfs config setting
249
244
echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
@@ -362,7 +357,7 @@ jobs:
362
357
363
358
echo "Copying Image"
364
359
cp ./out/dist/Image ../AnyKernel3/Image
365
- cp ./out/dist/vmlinux ../AnyKernel3/vmlinux
360
+ # cp ./out/dist/vmlinux ../AnyKernel3/vmlinux
366
361
367
362
echo "Navigating to AnyKernel3 directory..."
368
363
cd ../AnyKernel3
0 commit comments