@@ -89,11 +89,11 @@ jobs:
8989
9090 ANYKERNEL_BRANCH="gki-2.0"
9191 SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
92-
92+
9393 # Debug print the branches
9494 echo "Using branch for AnyKernel3: $ANYKERNEL_BRANCH"
9595 echo "Using branch for SUSFS: $SUSFS_BRANCH"
96-
96+
9797 # Clone repositories using the branch names
9898 git clone https://github.com/TheWildJames/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
9999 git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
@@ -107,7 +107,7 @@ jobs:
107107
108108 # Initialize and sync kernel source
109109 echo "Initializing and syncing kernel source..."
110- $REPO init -u https://github.com/OnePlusOSS/kernel_manifest .git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1 --no-clone-bundle --no-tags
110+ $REPO init -u https://github.com/fatalcoder524/OnePlus_kernel_manifest .git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1 --no-clone-bundle --no-tags
111111
112112 # Sync repo and apply patches
113113 $REPO --version
@@ -174,7 +174,7 @@ jobs:
174174 cd "$CONFIG/kernel_platform"
175175
176176 echo "Adding configuration settings to gki_defconfig..."
177-
177+
178178 # Add KSU configuration settings
179179 echo "CONFIG_KSU=y" >> ./common/arch/arm64/configs/gki_defconfig
180180 echo "CONFIG_KSU_WITH_KPROBES=n" >> ./common/arch/arm64/configs/gki_defconfig
@@ -200,29 +200,98 @@ jobs:
200200 # Add additional tmpfs config setting
201201 echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
202202 echo "CONFIG_TMPFS_POSIX_ACL=y" >> ./common/arch/arm64/configs/gki_defconfig
203+
204+ # Add additional tmpfs config setting
205+ echo "CONFIG_IP_NF_TARGET_TTL=y" >> ./common/arch/arm64/configs/gki_defconfig
206+ echo "CONFIG_IP6_NF_TARGET_HL=y" >> ./common/arch/arm64/configs/gki_defconfig
207+ echo "CONFIG_IP6_NF_MATCH_HL=y" >> ./common/arch/arm64/configs/gki_defconfig
208+
209+ # Add additional tcp_bbr config setting
210+ # Enable BBR
211+ echo "CONFIG_TCP_CONG_ADVANCED=y" >> ./common/arch/arm64/configs/gki_defconfig
212+ echo "CONFIG_TCP_CONG_BBR=y" >> ./common/arch/arm64/configs/gki_defconfig
213+
214+ # Optional: Keep Reno/Cubic as alternatives
215+ echo "CONFIG_TCP_CONG_CUBIC=y" >> ./common/arch/arm64/configs/gki_defconfig
216+ echo "CONFIG_TCP_CONG_RENO=y" >> ./common/arch/arm64/configs/gki_defconfig
217+ echo "CONFIG_DEFAULT_CUBIC=y" >> ./common/arch/arm64/configs/gki_defconfig
218+ echo 'CONFIG_DEFAULT_TCP_CONG="cubic"' >> ./common/arch/arm64/configs/gki_defconfig
219+
220+ # Disable Unnecessary TCP Congestion Algorithms
221+ echo "# CONFIG_TCP_CONG_BIC is not set" >> ./common/arch/arm64/configs/gki_defconfig
222+ echo "# CONFIG_TCP_CONG_WESTWOOD is not set" >> ./common/arch/arm64/configs/gki_defconfig
223+ echo "# CONFIG_TCP_CONG_HTCP is not set" >> ./common/arch/arm64/configs/gki_defconfig
224+ echo "# CONFIG_TCP_CONG_HSTCP is not set" >> ./common/arch/arm64/configs/gki_defconfig
225+ echo "# CONFIG_TCP_CONG_HYBLA is not set" >> ./common/arch/arm64/configs/gki_defconfig
226+ echo "# CONFIG_TCP_CONG_VEGAS is not set" >> ./common/arch/arm64/configs/gki_defconfig
227+ echo "# CONFIG_TCP_CONG_NV is not set" >> ./common/arch/arm64/configs/gki_defconfig
228+ echo "# CONFIG_TCP_CONG_SCALABLE is not set" >> ./common/arch/arm64/configs/gki_defconfig
229+ echo "# CONFIG_TCP_CONG_LP is not set" >> ./common/arch/arm64/configs/gki_defconfig
230+ echo "# CONFIG_TCP_CONG_VENO is not set" >> ./common/arch/arm64/configs/gki_defconfig
231+ echo "# CONFIG_TCP_CONG_YEAH is not set" >> ./common/arch/arm64/configs/gki_defconfig
232+ echo "# CONFIG_TCP_CONG_ILLINOIS is not set" >> ./common/arch/arm64/configs/gki_defconfig
233+ echo "# CONFIG_TCP_CONG_DCTCP is not set" >> ./common/arch/arm64/configs/gki_defconfig
234+ echo "# CONFIG_TCP_CONG_CDG is not set" >> ./common/arch/arm64/configs/gki_defconfig
235+
236+ # Enable FQ-CoDel and FQ for Queue Management
237+ echo "CONFIG_NET_SCH_FQ=y" >> ./common/arch/arm64/configs/gki_defconfig
238+ echo "CONFIG_NET_SCH_FQ_CODEL=y" >> ./common/arch/arm64/configs/gki_defconfig
239+ echo "CONFIG_NET_SCH_DEFAULT=y" >> ./common/arch/arm64/configs/gki_defconfig
240+ echo "CONFIG_DEFAULT_FQ=y" >> ./common/arch/arm64/configs/gki_defconfig
241+ echo 'CONFIG_DEFAULT_NET_SCH="fq"' >> ./common/arch/arm64/configs/gki_defconfig
242+
243+ # Disable Other Queuing Disciplines
244+ echo "# CONFIG_NET_SCH_CBQ is not set" >> ./common/arch/arm64/configs/gki_defconfig
245+ echo "# CONFIG_NET_SCH_HTB is not set" >> ./common/arch/arm64/configs/gki_defconfig
246+ echo "# CONFIG_NET_SCH_HFSC is not set" >> ./common/arch/arm64/configs/gki_defconfig
247+ echo "# CONFIG_NET_SCH_ATM is not set" >> ./common/arch/arm64/configs/gki_defconfig
248+ echo "# CONFIG_NET_SCH_PRIO is not set" >> ./common/arch/arm64/configs/gki_defconfig
249+ echo "# CONFIG_NET_SCH_MULTIQ is not set" >> ./common/arch/arm64/configs/gki_defconfig
250+ echo "# CONFIG_NET_SCH_RED is not set" >> ./common/arch/arm64/configs/gki_defconfig
251+ echo "# CONFIG_NET_SCH_SFB is not set" >> ./common/arch/arm64/configs/gki_defconfig
252+ echo "# CONFIG_NET_SCH_SFQ is not set" >> ./common/arch/arm64/configs/gki_defconfig
253+ echo "# CONFIG_NET_SCH_TEQL is not set" >> ./common/arch/arm64/configs/gki_defconfig
254+ echo "# CONFIG_NET_SCH_TBF is not set" >> ./common/arch/arm64/configs/gki_defconfig
255+ echo "# CONFIG_NET_SCH_CBS is not set" >> ./common/arch/arm64/configs/gki_defconfig
256+ echo "# CONFIG_NET_SCH_ETF is not set" >> ./common/arch/arm64/configs/gki_defconfig
257+ echo "# CONFIG_NET_SCH_TAPRIO is not set" >> ./common/arch/arm64/configs/gki_defconfig
258+ echo "# CONFIG_NET_SCH_GRED is not set" >> ./common/arch/arm64/configs/gki_defconfig
259+ echo "# CONFIG_NET_SCH_DSMARK is not set" >> ./common/arch/arm64/configs/gki_defconfig
260+ echo "# CONFIG_NET_SCH_NETEM is not set" >> ./common/arch/arm64/configs/gki_defconfig
261+ echo "# CONFIG_NET_SCH_DRR is not set" >> ./common/arch/arm64/configs/gki_defconfig
262+ echo "# CONFIG_NET_SCH_MQPRIO is not set" >> ./common/arch/arm64/configs/gki_defconfig
263+ echo "# CONFIG_NET_SCH_SKBPRIO is not set" >> ./common/arch/arm64/configs/gki_defconfig
264+ echo "# CONFIG_NET_SCH_CHOKE is not set" >> ./common/arch/arm64/configs/gki_defconfig
265+ echo "# CONFIG_NET_SCH_QFQ is not set" >> ./common/arch/arm64/configs/gki_defconfig
266+ echo "# CONFIG_NET_SCH_CODEL is not set" >> ./common/arch/arm64/configs/gki_defconfig
267+ echo "# CONFIG_NET_SCH_CAKE is not set" >> ./common/arch/arm64/configs/gki_defconfig
268+ echo "# CONFIG_NET_SCH_HHF is not set" >> ./common/arch/arm64/configs/gki_defconfig
269+ echo "# CONFIG_NET_SCH_PIE is not set" >> ./common/arch/arm64/configs/gki_defconfig
270+ echo "# CONFIG_NET_SCH_FQ_PIE is not set" >> ./common/arch/arm64/configs/gki_defconfig
271+ echo "# CONFIG_NET_SCH_INGRESS is not set" >> ./common/arch/arm64/configs/gki_defconfig
203272
204273 - name : Run sed and perl Commands
205274 run : |
206275 echo "Changing to configuration directory: $CONFIG..."
207276 cd "$CONFIG/kernel_platform"
208277
209278 echo "Running sed commands..."
210-
279+
211280 sed -i 's/CONFIG_LTO=n/CONFIG_LTO=y/' "./common/arch/arm64/configs/gki_defconfig"
212281 sed -i 's/CONFIG_LTO_CLANG_FULL=y/CONFIG_LTO_CLANG_THIN=y/' "./common/arch/arm64/configs/gki_defconfig"
213282 sed -i 's/CONFIG_LTO_CLANG_NONE=y/CONFIG_LTO_CLANG_THIN=y/' "./common/arch/arm64/configs/gki_defconfig"
214283
215284 # Run sed commands for modifications
216285 sed -i 's/check_defconfig//' ./common/build.config.gki
217- sed -i '$s|echo "\$res"|echo "\$res-Wild+ "|' ./common/scripts/setlocalversion
218- sed -i '$s|echo "\$res"|echo "\$res-Wild+ "|' ./msm-kernel/scripts/setlocalversion
219- sed -i '$s|echo "\$res"|echo "\$res-Wild+ "|' ./external/dtc/scripts/setlocalversion
286+ sed -i '$s|echo "\$res"|echo "\$res-fatalcoder524 "|' ./common/scripts/setlocalversion
287+ sed -i '$s|echo "\$res"|echo "\$res-fatalcoder524 "|' ./msm-kernel/scripts/setlocalversion
288+ sed -i '$s|echo "\$res"|echo "\$res-fatalcoder524 "|' ./external/dtc/scripts/setlocalversion
220289 sed -i "/stable_scmversion_cmd/s/-maybe-dirty//g" ./build/kernel/kleaf/impl/stamp.bzl || echo "No stamp.bzl!"
221290 sed -i 's/-dirty//' ./common/scripts/setlocalversion
222291 sed -i 's/-dirty//' ./msm-kernel/scripts/setlocalversion
223292 sed -i 's/-dirty//' ./external/dtc/scripts/setlocalversion
224293 sed -i 's/-dirty//' ./build/kernel/kleaf/workspace_status_stamp.py || echo "No workspace_status_stamp.py!"
225-
294+
226295 sed -i '/echo "LTO $LTO "/i export LTO=thin' ./oplus/build/oplus_setup.sh
227296 sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
228297
@@ -277,15 +346,33 @@ jobs:
277346 run : |
278347 echo "Changing to configuration directory: $CONFIG..."
279348 cd "$CONFIG"
280-
349+
281350 echo "Copying Image"
282351 cp ./out/dist/Image ../AnyKernel3/Image
283352
284353 - name : Create ZIP Files for Different Formats
285354 run : |
286355 echo "Navigating to AnyKernel3 directory..."
287356 cd ./AnyKernel3
288-
357+
358+ sed -i 's|^kernel\.string=.*|kernel.string=OnePlus 11 KSUN + SUSFS Kernel by fatalcoder524|' anykernel.sh
359+ sed -i 's|^do\.devicecheck=.*|do.devicecheck=1|' anykernel.sh
360+ sed -i 's|^device\.name1=.*|device.name1=CPH2447|' anykernel.sh
361+ sed -i 's|^device\.name2=.*|device.name2=CPH2449|' anykernel.sh
362+ sed -i 's|^device\.name3=.*|device.name3=CPH2451|' anykernel.sh
363+ sed -i 's|^device\.name4=.*|device.name4=PHB110|' anykernel.sh
364+ sed -i '/ui_print " " " -> ksu_supported: $ksu_supported"/i \
365+ ui_print "Features:"\
366+ ui_print "-> KernelSU-Next-Official v1.0.6 (12490) "\
367+ ui_print "-> SUSFS ඞ v1.5.5"\
368+ ui_print "-> Manual Hooks for Better Hiding"\
369+ ui_print "-> Wireguard Support"\
370+ ui_print "-> Simple Maphide for LineageOS Detections"\
371+ ui_print "-> Futile Maphide for jit-zygote-cache Detections"\
372+ ui_print "-> Magic Mount Support"\
373+ ui_print "-> CONFIG_TMPFS_XATTR Support for Mountify"\
374+ ui_print "-> TCP Congestion Algorithm: BBR enabled"' anykernel.sh
375+
289376 # Zip the files in the AnyKernel3 directory with a new naming convention
290377 ZIP_NAME="${{ inputs.model }}_${{ inputs.android_version }}_${{ inputs.kernel_version }}_Next_SUSFS_AnyKernel3.zip"
291378 echo "Creating zip file $ZIP_NAME..."
0 commit comments