Explorar el Código

fix(action): add Android 14 6.1 fixes for sublevel check in kernel configuration

Co-authored-by: Copilot <copilot@github.com>
TheWildJames hace 4 meses
padre
commit
7e0d319748
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. 14 0
      .github/actions/susfs/action.yml

+ 14 - 0
.github/actions/susfs/action.yml

@@ -195,3 +195,17 @@ runs:
         EOF
         ) fs/notify/fdinfo.c
         fi
+
+    - name: Apply Android 14 6.1 Fixes
+      if: inputs.android_version == 'android14' && inputs.kernel_version == '6.1'
+      shell: bash
+      working-directory: ${{ github.workspace }}/kernel/common
+      run: |
+        if [ "${{ inputs.sublevel }}" -le "117" ]; then
+        sed -i '/#include "fd.h"/r'<(cat <<'EOF'
+        #ifdef CONFIG_KSU_SUSFS_SUS_MAP
+        #include <linux/susfs_def.h>
+        #endif
+        EOF
+        ) fs/proc/base.c
+        fi