|
|
@@ -59,11 +59,6 @@ runs:
|
|
|
SUSFS_VERSION="v2.1.0"
|
|
|
echo "SUSFS_VERSION=$SUSFS_VERSION" >> $GITHUB_ENV
|
|
|
|
|
|
- cd susfs4ksu
|
|
|
- if [ ${{ inputs.android_version }} == "android14" && [ ${{ inputs.kernel_version }} == "6.1" ]; then
|
|
|
- git checkout 971cc4e770b7f344a4df35ce92d7a859e6a1e0fd
|
|
|
- fi
|
|
|
-
|
|
|
- name: Enable KernelSU SUSFS Config
|
|
|
shell: bash
|
|
|
working-directory: ${{ github.workspace }}/kernel
|
|
|
@@ -92,24 +87,3 @@ runs:
|
|
|
cp ${{ github.workspace }}/susfs4ksu/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch ./
|
|
|
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
|
|
|
|
|
|
- - name: Apply KSU SUSFS Patches
|
|
|
- shell: bash
|
|
|
- working-directory: ${{ github.workspace }}/kernel/KernelSU-Next
|
|
|
- run: |
|
|
|
- set -e
|
|
|
- echo "Applying SUSFS patches for version: $SUSFS_VERSION"
|
|
|
- cp "${{ github.workspace }}/susfs4ksu/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch" "${{ github.workspace }}/kernel/KernelSU-Next"
|
|
|
- patch -p1 --forward < "10_enable_susfs_for_ksu.patch" || true
|
|
|
- echo "Patching remaining files..."
|
|
|
- for file in $(find ./kernel -maxdepth 2 -name "*.rej" -exec basename {} .rej \;); do
|
|
|
- cp "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/$SUSFS_VERSION/fix_${file}.patch" "${{ github.workspace }}/kernel/KernelSU-Next"
|
|
|
- patch -p1 --forward < "fix_${file}.patch" || true
|
|
|
- done
|
|
|
- echo "Patching remaining files 2..."
|
|
|
-
|
|
|
- cp "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/$SUSFS_VERSION/overwrite_hook_mode.patch" "${{ github.workspace }}/kernel/KernelSU-Next"
|
|
|
- patch -p1 --forward < "overwrite_hook_mode.patch"
|
|
|
-
|
|
|
- cp "${{ github.workspace }}/kernel_patches/next/susfs_fix_patches/$SUSFS_VERSION/ksu_toolkit.patch" "${{ github.workspace }}/kernel/KernelSU-Next"
|
|
|
- patch -p1 --forward < "ksu_toolkit.patch"
|
|
|
-
|