@@ -194,21 +194,27 @@ runs:
194194 fi
195195 patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
196196
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-
203197 KERNEL_VERSION="${{ inputs.kernel_version }}"
204198 MIN_VERSION="5.16"
205199
206200 if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
207201 echo "Patching ptrace!"
208- curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/ptrace .patch | patch -p1 -F 3
202+ curl -Ls https://raw.githubusercontent.com/WildKernels/kernel_patches/7d6fdf0282851ab2dfcaedfe79503ae255c4ae47/gki_ptrace .patch | patch -p1 -F 3
209203 else
210204 echo "Kernel >= $MIN_VERSION, skipping ptrace patch"
211205 fi
206+
207+ if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
208+ echo "Patching hmdird!"
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
212218
213219 - name : Apply KSUN Hooks
214220 shell : bash
@@ -382,6 +388,11 @@ runs:
382388 echo "Navigating to AnyKernel3 directory..."
383389 cd ../AnyKernel3
384390
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+
385396 # Zip the files in the AnyKernel3 directory with a new naming convention
386397 ZIP_NAME="AnyKernel3_${{ inputs.model }}_${{ inputs.android_version }}-${{ inputs.kernel_version }}_Next_${{ env.KSUVER }}_SUSFS_${{ env.SUSVER }}.zip"
387398 echo "Creating zip file $ZIP_NAME..."
0 commit comments