Skip to content

Commit 947279b

Browse files
committed
Fix MKSU susfs patch: Use additional patch
1 parent d67282c commit 947279b

13 files changed

Lines changed: 49 additions & 36 deletions

.github/workflows/fastbuild_6.6.30.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ jobs:
307307
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
308308
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
309309
cd ./KernelSU
310-
#为MKSU修正susfs 2.0.0补丁
311-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
312-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
313310
patch -p1 < 10_enable_susfs_for_ksu.patch || true
311+
#为MKSU修正susfs 2.0.0补丁
312+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
313+
patch -p1 < mksu_supercalls.patch || true
314314
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
315315
patch -p1 < fix_umount.patch || true
316316
cd ../common

.github/workflows/fastbuild_6.6.50.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ jobs:
307307
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
308308
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
309309
cd ./KernelSU
310-
#为MKSU修正susfs 2.0.0补丁
311-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
312-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
313310
patch -p1 < 10_enable_susfs_for_ksu.patch || true
311+
#为MKSU修正susfs 2.0.0补丁
312+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
313+
patch -p1 < mksu_supercalls.patch || true
314314
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
315315
patch -p1 < fix_umount.patch || true
316316
cd ../common

.github/workflows/fastbuild_6.6.56.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ jobs:
307307
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
308308
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
309309
cd ./KernelSU
310-
#为MKSU修正susfs 2.0.0补丁
311-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
312-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
313310
patch -p1 < 10_enable_susfs_for_ksu.patch || true
311+
#为MKSU修正susfs 2.0.0补丁
312+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
313+
patch -p1 < mksu_supercalls.patch || true
314314
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
315315
patch -p1 < fix_umount.patch || true
316316
cd ../common

.github/workflows/fastbuild_6.6.57.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ jobs:
307307
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
308308
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
309309
cd ./KernelSU
310-
#为MKSU修正susfs 2.0.0补丁
311-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
312-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
313310
patch -p1 < 10_enable_susfs_for_ksu.patch || true
311+
#为MKSU修正susfs 2.0.0补丁
312+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
313+
patch -p1 < mksu_supercalls.patch || true
314314
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
315315
patch -p1 < fix_umount.patch || true
316316
cd ../common

.github/workflows/fastbuild_6.6.66.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ jobs:
303303
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
304304
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
305305
cd ./KernelSU
306-
#为MKSU修正susfs 2.0.0补丁
307-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
308-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
309306
patch -p1 < 10_enable_susfs_for_ksu.patch || true
307+
#为MKSU修正susfs 2.0.0补丁
308+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
309+
patch -p1 < mksu_supercalls.patch || true
310310
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
311311
patch -p1 < fix_umount.patch || true
312312
cd ../common

.github/workflows/fastbuild_6.6.89.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ jobs:
303303
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
304304
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
305305
cd ./KernelSU
306-
#为MKSU修正susfs 2.0.0补丁
307-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
308-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
309306
patch -p1 < 10_enable_susfs_for_ksu.patch || true
307+
#为MKSU修正susfs 2.0.0补丁
308+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
309+
patch -p1 < mksu_supercalls.patch || true
310310
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
311311
patch -p1 < fix_umount.patch || true
312312
cd ../common

local/builder_6.6.30.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ elif [[ "$KSU_BRANCH" == "m" || "$KSU_BRANCH" == "M" ]]; then
170170
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
171171
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
172172
cd ./KernelSU
173-
#为MKSU修正susfs 2.0.0补丁
174-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
175-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
176173
patch -p1 < 10_enable_susfs_for_ksu.patch || true
174+
#为MKSU修正susfs 2.0.0补丁
175+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
176+
patch -p1 < mksu_supercalls.patch || true
177177
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
178178
patch -p1 < fix_umount.patch || true
179179
cd ../common

local/builder_6.6.50.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ elif [[ "$KSU_BRANCH" == "m" || "$KSU_BRANCH" == "M" ]]; then
170170
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
171171
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
172172
cd ./KernelSU
173-
#为MKSU修正susfs 2.0.0补丁
174-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
175-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
176173
patch -p1 < 10_enable_susfs_for_ksu.patch || true
174+
#为MKSU修正susfs 2.0.0补丁
175+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
176+
patch -p1 < mksu_supercalls.patch || true
177177
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
178178
patch -p1 < fix_umount.patch || true
179179
cd ../common

local/builder_6.6.56.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ elif [[ "$KSU_BRANCH" == "m" || "$KSU_BRANCH" == "M" ]]; then
170170
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
171171
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
172172
cd ./KernelSU
173-
#为MKSU修正susfs 2.0.0补丁
174-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
175-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
176173
patch -p1 < 10_enable_susfs_for_ksu.patch || true
174+
#为MKSU修正susfs 2.0.0补丁
175+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
176+
patch -p1 < mksu_supercalls.patch || true
177177
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
178178
patch -p1 < fix_umount.patch || true
179179
cd ../common

local/builder_6.6.57.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ elif [[ "$KSU_BRANCH" == "m" || "$KSU_BRANCH" == "M" ]]; then
170170
cp ./susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
171171
cp ./SukiSU_patch/69_hide_stuff.patch ./common/
172172
cd ./KernelSU
173-
#为MKSU修正susfs 2.0.0补丁
174-
perl -i -pe 'if (/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/) { $line_cache = $_; $n2=$2; $n4=$4; $_ = <>; if ($_ eq " #include <linux/task_work.h>\n") { $n2++; $n4++; $line_cache =~ s/^(@@ -[0-9]+,)([0-9]+)( \+[0-9]+,)([0-9]+)( @@)/$1$n2$3$n4$5/; } print $line_cache; }' 10_enable_susfs_for_ksu.patch
175-
sed -i '/ #include <linux\/uaccess\.h>/ { N; s| #include <linux/uaccess\.h>\n #include <linux/version\.h>|&\n #include <linux/pid.h>| }' 10_enable_susfs_for_ksu.patch
176173
patch -p1 < 10_enable_susfs_for_ksu.patch || true
174+
#为MKSU修正susfs 2.0.0补丁
175+
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/mksu_supercalls.patch
176+
patch -p1 < mksu_supercalls.patch || true
177177
wget https://github.com/cctv18/oppo_oplus_realme_sm8750/raw/refs/heads/main/other_patch/fix_umount.patch
178178
patch -p1 < fix_umount.patch || true
179179
cd ../common

0 commit comments

Comments
 (0)