Skip to content

Commit 658148a

Browse files
committed
Add HMBIRD support for OnePlus 13 and Ace 5 Pro and update Release body
1 parent 8c078e9 commit 658148a

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

.github/actions/action.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
patch -p1 -F 3 < "../../../kernel_patches/gki_ptrace.patch"
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 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
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..."

.github/workflows/build-kernel-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ jobs:
277277
REPO_OWNER: ${{ github.repository_owner }}
278278
REPO_NAME: ${{ github.event.repository.name }}
279279
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
280-
RELEASE_NAME: "*TEST BUILD* OnePlus Kernels With KernelSU Next & SUSFS v1.5.7 *TEST BUILD*"
280+
RELEASE_NAME: "*TEST BUILD* OnePlus Kernels With KernelSU Next & SUSFS v1.5.8 *TEST BUILD*"
281281
RELEASE_NOTES: |
282-
This release contains KernelSU Next and SUSFS v1.5.7
282+
This release contains KernelSU Next and SUSFS v1.5.8
283283
284284
Module:
285285
-> https://github.com/sidex15/ksu_module_susfs
@@ -289,24 +289,24 @@ jobs:
289289
290290
Features:
291291
[+] KernelSU-Next
292-
[+] SUSFS v1.5.7
292+
[+] SUSFS v1.5.8
293293
[+] Wireguard Support
294294
[+] Maphide LineageOS Detections
295295
[+] Futile Maphide for jit-zygote-cache Detections
296296
[+] Magic Mount Support
297297
[+] Ptrace message leak fix for kernels < 5.16
298-
[+] CMD_SUSFS_HIDE_SUS_MNTS_FOR_ALL_PROCS Support for all kernels.
299298
[+] Manual Hooks [scope_min_manual_hooks_v1.4]
300299
[+] CONFIG_TMPFS_XATTR Support [Mountify Support]
301300
[+] BBR v1 Support.
301+
[+] HMBIRD scx support for OnePlus 13 & OnePlus Ace 5 Pro.
302302
303303
steps:
304304
- name: Checkout code
305305
uses: actions/checkout@v3
306306

307307
- name: Generate and Create New Tag
308308
run: |
309-
BASE_TAG="v1.5.7-r0"
309+
BASE_TAG="v1.5.8-r0"
310310
LATEST_TAG=$(gh api repos/$REPO_OWNER/$REPO_NAME/tags --jq '.[0].name')
311311
if [ -z "$LATEST_TAG" ]; then
312312
LATEST_TAG="$BASE_TAG"

0 commit comments

Comments
 (0)