@@ -194,21 +194,27 @@ runs:
194
194
fi
195
195
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
196
196
197
- if ! grep -qxF '#define CMD_SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS 0x55561' ./include/linux/susfs_def.h; then
198
- curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/hide_sus_mnts_for_all_procs.patch | patch -p1 -F 3
199
- else
200
- echo "Line already present. Skipping SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS Patch."
201
- fi
202
-
203
197
KERNEL_VERSION="${{ inputs.kernel_version }}"
204
198
MIN_VERSION="5.16"
205
199
206
200
if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
207
201
echo "Patching ptrace!"
208
- curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/ptrace .patch | patch -p1 -F 3
202
+ patch -p1 -F 3 < "../../../kernel_patches/gki_ptrace .patch"
209
203
else
210
204
echo "Kernel >= $MIN_VERSION, skipping ptrace patch"
211
205
fi
206
+
207
+ if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
208
+ echo "Patching hmbird!"
209
+ echo 'obj-y += hmbird_patch.o' >> ./drivers/Makefile
210
+ patch -p1 -F 3 < "../../../kernel_patches/oneplus/hmbird/hmbird_kernel_patch.patch"
211
+ echo "Patching hmbird files!"
212
+ cd ./kernel/sched
213
+ rm -rf ext.c ext.h build_policy.c slim.h slim_sysctl.c
214
+ patch -p1 -F 3 < "../../../../../kernel_patches/oneplus/hmbird/hmbird_files_patch.patch"
215
+ else
216
+ echo "Not OPAce5Pro / OP13 , skipping fengchi patch"
217
+ fi
212
218
213
219
- name : Apply KSUN Hooks
214
220
shell : bash
@@ -382,6 +388,11 @@ runs:
382
388
echo "Navigating to AnyKernel3 directory..."
383
389
cd ../AnyKernel3
384
390
391
+ if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
392
+ cp ../kernel_patches/oneplus/hmbird/bins/* ./tools/
393
+ patch -F 3 < ../kernel_patches/oneplus/hmbird/ak3_hmbird_patch.patch
394
+ fi
395
+
385
396
# Zip the files in the AnyKernel3 directory with a new naming convention
386
397
ZIP_NAME="AnyKernel3_${{ inputs.model }}_${{ inputs.android_version }}-${{ inputs.kernel_version }}_Next_${{ env.KSUVER }}_SUSFS_${{ env.SUSVER }}.zip"
387
398
echo "Creating zip file $ZIP_NAME..."
0 commit comments