@@ -870,9 +870,9 @@ runs:
870870 echo "Adding KernelSU Next..."
871871 KSU_INPUT="${{ inputs.ksu_branch_or_hash }}"
872872 if [ -z "$KSU_INPUT" ]; then
873- curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next /kernel/setup.sh" | bash -
873+ curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/pratikkabra143/KurisuNext/dev /kernel/setup.sh" | bash -
874874 else
875- curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next /kernel/setup.sh" | bash -s "$KSU_INPUT"
875+ curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/pratikkabra143/KurisuNext/dev /kernel/setup.sh" | bash -s "$KSU_INPUT"
876876 fi
877877 git submodule update --init --recursive
878878 cd KernelSU-Next/kernel
@@ -890,7 +890,6 @@ runs:
890890 sed -i "s/DKSU_VERSION=11998/DKSU_VERSION=${KSU_VERSION}/" Makefile 2>/dev/null || true
891891
892892 # Legacy: ksu.c was renamed to core/init.c in newer KSUN versions
893-
894893 if [ -f ksu.c ]; then
895894 sed -i 's/#if defined(CONFIG_STACKPROTECTOR) && (defined(CONFIG_ARM64) && !defined(CONFIG_STACKPROTECTOR_PER_TASK))/#if 0/' ksu.c
896895 fi
@@ -935,9 +934,9 @@ runs:
935934 echo "Adding KernelSU..."
936935 KSU_INPUT="${{ inputs.ksu_branch_or_hash }}"
937936 if [ -z "$KSU_INPUT" ]; then
938- curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/tiann /KernelSU/main/kernel/setup.sh" | bash -
937+ curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/pratikkabra143 /KernelSU/main/kernel/setup.sh" | bash -
939938 else
940- curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/tiann /KernelSU/main/kernel/setup.sh" | bash -s "$KSU_INPUT"
939+ curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/pratikkabra143 /KernelSU/main/kernel/setup.sh" | bash -s "$KSU_INPUT"
941940 fi
942941 git submodule update --init --recursive
943942 cd KernelSU/kernel
@@ -1013,7 +1012,7 @@ runs:
10131012 patch -p1 --forward --fuzz=3 < "$SUSFS_FOLDER/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch"
10141013 fi
10151014 ;;
1016- "v1.5.9"|"v1.5.10"|"v1.5.11"|"v1.5.12")
1015+ "v1.5.9"|"v1.5.10"|"v1.5.11"|"v1.5.12")
10171016 if [ "${{ inputs.ksu_type }}" = "KSUN" ]; then
10181017 cd "$KSUN_FOLDER"
10191018 patch -p1 --forward < "$SUSFS_FOLDER/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch" || true
@@ -1031,7 +1030,8 @@ runs:
10311030 if [ "${{ inputs.ksu_type }}" = "KSUN" ]; then
10321031 cd "$KSUN_FOLDER"
10331032 patch -p1 --forward < "$SUSFS_FOLDER/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch" || true
1034-
1033+
1034+ # Apply all fix patches directly
10351035 for patch_file in "$KERNEL_PATCHES_FOLDER/next/susfs_fix_patches/$susfs_version"/*.patch; do
10361036 if [ -f "$patch_file" ]; then
10371037 echo "Applying fix patch: $(basename "$patch_file")"
@@ -1047,7 +1047,8 @@ runs:
10471047 if [ "${{ inputs.ksu_type }}" = "KSUN" ]; then
10481048 cd "$KSUN_FOLDER"
10491049 patch -p1 --forward < "$SUSFS_FOLDER/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch" || true
1050-
1050+
1051+ # Apply all fix patches directly
10511052 for patch_file in "$KERNEL_PATCHES_FOLDER/next/susfs_fix_patches/$susfs_version"/*.patch; do
10521053 if [ -f "$patch_file" ]; then
10531054 echo "Applying fix patch: $(basename "$patch_file")"
@@ -1072,13 +1073,15 @@ runs:
10721073 fi
10731074 fi
10741075
1076+ # Fake kernel patch to fix failures
10751077 fake_patched=0
10761078 if [ "${{ env.ANDROID_VER }}" = "android15" ] && [ "${{ env.KERNEL_VER }}" = "6.6" ]; then
10771079 if ! grep -qxF $'\tunsigned int nr_subpages = __PAGE_SIZE / PAGE_SIZE;' ./fs/proc/task_mmu.c; then
10781080 echo "nr_subpages Line not found. Fake Patching!"
10791081 sed -i -e '/int ret = 0, copied = 0;/a \\tunsigned int nr_subpages \= __PAGE_SIZE \/ PAGE_SIZE;' -e '/int ret = 0, copied = 0;/a \\tpagemap_entry_t \*res = NULL;' ./fs/proc/task_mmu.c
10801082 fake_patched=1
10811083 fi
1084+
10821085 if ! grep -qxF '#include <linux/dma-buf.h>' ./fs/proc/base.c; then
10831086 echo "#include <linux/dma-buf.h> Line not found. Adding missing header"
10841087 sed -i '/#include <linux\/cpufreq_times.h>/a #include <linux\/dma-buf.h>' ./fs/proc/base.c
@@ -1111,6 +1114,7 @@ runs:
11111114
11121115 patch -p1 --forward < "$SUSFS_FOLDER/kernel_patches/50_add_susfs_in_${{ env.SUSFS_KERNEL_BRANCH }}.patch"
11131116
1117+ # Revert Fake kernel patch
11141118 if [ "$fake_patched" = 1 ]; then
11151119 if [ "${{ env.ANDROID_VER }}" = "android15" ] && [ "${{ env.KERNEL_VER }}" = "6.6" ]; then
11161120 if grep -qxF $'\tunsigned int nr_subpages = __PAGE_SIZE / PAGE_SIZE;' ./fs/proc/task_mmu.c; then
@@ -1213,6 +1217,7 @@ runs:
12131217 patch -p1 --forward < "$KERNEL_PATCHES_FOLDER/common/optimized_mem_operations.patch"
12141218 patch -p1 --forward < "$KERNEL_PATCHES_FOLDER/common/file_struct_8bytes_align.patch"
12151219 patch -p1 --forward < "$KERNEL_PATCHES_FOLDER/common/reduce_cache_pressure.patch"
1220+
12161221 patch -p1 --forward < "$KERNEL_PATCHES_FOLDER/common/mem_opt_prefetch.patch"
12171222
12181223 if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | tail -n1)" = "$KERNEL_VERSION" ]; then
@@ -1236,6 +1241,7 @@ runs:
12361241 cat "$KERNEL_PATCHES_FOLDER/common/clear_page_16bytes_align.patch" | sed -e 's/SYM_FUNC_START_PI(clear_page)/SYM_FUNC_START_PI(__pi_clear_page)/' | patch -p1 -F3 --forward
12371242 fi
12381243
1244+
12391245 echo "Patching add_limitation_scaling_min_freq.patch"
12401246 patch -p1 -F3 --forward < "$KERNEL_PATCHES_FOLDER/common/add_limitation_scaling_min_freq.patch"
12411247 echo "Patching re_write_limitation_scaling_min_freq.patch"
@@ -1976,9 +1982,9 @@ runs:
19761982
19771983 if [ "$KSU_SHA" != "unknown" ]; then
19781984 if [ "${{ inputs.ksu_type }}" = "KSUN" ]; then
1979- echo "| **KSUN Commit** | [\`${KSU_SHA:0:8}\`](https://github.com/KernelSU-Next/KernelSU-Next /commit/$KSU_SHA) |"
1985+ echo "| **KSUN Commit** | [\`${KSU_SHA:0:8}\`](https://github.com/pratikkabra143/KurisuNext /commit/$KSU_SHA) |"
19801986 else
1981- echo "| **KSU Commit** | [\`${KSU_SHA:0:8}\`](https://github.com/tiann /KernelSU/commit/$KSU_SHA) |"
1987+ echo "| **KSU Commit** | [\`${KSU_SHA:0:8}\`](https://github.com/pratikkabra143 /KernelSU/commit/$KSU_SHA) |"
19821988 fi
19831989 else
19841990 echo "| **KSU Commit** | unknown |"
0 commit comments