TheWildJames 4 месяцев назад
Родитель
Сommit
b4d6975dca
1 измененных файлов с 15 добавлено и 2 удалено
  1. 15 2
      .github/actions/susfs/action.yml

+ 15 - 2
.github/actions/susfs/action.yml

@@ -77,7 +77,7 @@ runs:
         CONFIG_KSU_SUSFS_SUS_MAP=y
         EOF
     
-    - name: Apply Base SUSFS Patches
+    - name: Apply Kernel SUSFS Patches
       shell: bash
       working-directory: ${{ github.workspace }}/kernel/common
       run: |
@@ -85,4 +85,17 @@ runs:
         cp "${{ github.workspace }}/susfs4ksu/kernel_patches/fs/"* "${{ github.workspace }}/kernel/common/fs/"
         cp "${{ github.workspace }}/susfs4ksu/kernel_patches/include/linux/"* "${{ github.workspace }}/kernel/common/include/linux/"
         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
+        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/common/KernelSU-Next
+      run: |
+         for file in $(find ./kernel -maxdepth 2 -name "*.rej" -exec basename {} .rej ;); do
+                echo "Patching file: $file with fix_$file.patch"
+                patch -p1 --forward < "@GITHUB_WORKSPACE/kernel_patches/next/susfs_fix_patches/2.1.0/fix_$file.patch"
+              done
+              patch -p1 --forward < "@GITHUB_WORKSPACE/kernel_patches/next/susfs_fix_patches/2.1.0/overwrite_hook_mode.patch"
+              patch -p1 --forward < "@GITHUB_WORKSPACE/kernel_patches/next/susfs_fix_patches/2.1.0/ksu_toolkit.patch"
+              patch -p1 --forward < "@GITHUB_WORKSPACE/kernel_patches/next/susfs_fix_patches/2.1.0/multi_manager.patch"
+              patch -p1 --forward < "@GITHUB_WORKSPACE/kernel_patches/next/susfs_fix_patches/2.1.0/multi_sepolicy_fix.patch"