|
|
@@ -142,7 +142,7 @@ jobs:
|
|
|
cd "$CONFIG"
|
|
|
|
|
|
echo "Adding KernelSU..."
|
|
|
- curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
|
|
|
+ curl -LSs "https://raw.githubusercontent.com/rifsxd/KernelSU-Next/next/kernel/setup.sh" | bash -
|
|
|
|
|
|
- name: Apply SUSFS Patches
|
|
|
run: |
|
|
|
@@ -152,19 +152,32 @@ jobs:
|
|
|
echo "Applying SUSFS patches..."
|
|
|
|
|
|
# Copy SUSFS patches
|
|
|
- cp ../susfs4ksu/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch ./KernelSU/
|
|
|
+ cp ../susfs4ksu/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch ./KernelSU-Next/
|
|
|
cp ../susfs4ksu/kernel_patches/50_add_susfs_in_gki-${{ matrix.android_version }}-${{ matrix.kernel_version }}.patch ./common/
|
|
|
cp ../susfs4ksu/kernel_patches/fs/* ./common/fs/
|
|
|
cp ../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
|
|
|
|
|
|
- cd ./KernelSU
|
|
|
+ cd ./KernelSU-Next
|
|
|
|
|
|
# Apply SUSFS patch for KernelSU
|
|
|
- patch -p1 --forward < 10_enable_susfs_for_ksu.patch
|
|
|
+ patch -p1 --forward < 10_enable_susfs_for_ksu.patch || true
|
|
|
|
|
|
# Change to common directory and apply SUSFS patch
|
|
|
cd ../common
|
|
|
- patch -p1 < 50_add_susfs_in_gki-${{ matrix.android_version }}-${{ matrix.kernel_version }}.patch
|
|
|
+ patch -p1 < 50_add_susfs_in_gki-${{ matrix.android_version }}-${{ matrix.kernel_version }}.patch || true
|
|
|
+
|
|
|
+ - name: Apply Next-SUSFS Patches
|
|
|
+ run: |
|
|
|
+ echo "Changing to configuration directory: $CONFIG..."
|
|
|
+ cd "$CONFIG"
|
|
|
+
|
|
|
+ echo "Applying next SUSFS patches..."
|
|
|
+ cp ../kernel_patches/apk_sign.c_fix.patch ./
|
|
|
+ patch -p1 -F 3 < apk_sign.c_fix.patch
|
|
|
+ cp ../kernel_patches/core_hook.c_fix.patch ./
|
|
|
+ patch -p1 --fuzz=3 < core_hook.c_fix.patch
|
|
|
+ cp ../kernel_patches/selinux.c_fix.patch ./
|
|
|
+ patch -p1 -F 3 < selinux.c_fix.patch
|
|
|
|
|
|
- name: Apply Hide Stuff Patches
|
|
|
run: |
|
|
|
@@ -172,7 +185,7 @@ jobs:
|
|
|
cd "$CONFIG/common"
|
|
|
# Apply additional patch
|
|
|
cp ../../kernel_patches/69_hide_stuff.patch ./
|
|
|
- patch -p1 -F 3 < 69_hide_stuff.patch
|
|
|
+ patch -p1 -F 3 < 69_hide_stuff.patch || true
|
|
|
|
|
|
- name: Add SUSFS Configuration Settings
|
|
|
run: |
|