@@ -89,11 +89,11 @@ jobs:
89
89
90
90
ANYKERNEL_BRANCH="gki-2.0"
91
91
SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
92
-
92
+
93
93
# Debug print the branches
94
94
echo "Using branch for AnyKernel3: $ANYKERNEL_BRANCH"
95
95
echo "Using branch for SUSFS: $SUSFS_BRANCH"
96
-
96
+
97
97
# Clone repositories using the branch names
98
98
git clone https://github.com/TheWildJames/AnyKernel3.git -b "$ANYKERNEL_BRANCH"
99
99
git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
@@ -107,7 +107,7 @@ jobs:
107
107
108
108
# Initialize and sync kernel source
109
109
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
111
111
112
112
# Sync repo and apply patches
113
113
$REPO --version
@@ -174,7 +174,7 @@ jobs:
174
174
cd "$CONFIG/kernel_platform"
175
175
176
176
echo "Adding configuration settings to gki_defconfig..."
177
-
177
+
178
178
# Add KSU configuration settings
179
179
echo "CONFIG_KSU=y" >> ./common/arch/arm64/configs/gki_defconfig
180
180
echo "CONFIG_KSU_WITH_KPROBES=n" >> ./common/arch/arm64/configs/gki_defconfig
@@ -200,29 +200,98 @@ jobs:
200
200
# Add additional tmpfs config setting
201
201
echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
202
202
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
203
272
204
273
- name : Run sed and perl Commands
205
274
run : |
206
275
echo "Changing to configuration directory: $CONFIG..."
207
276
cd "$CONFIG/kernel_platform"
208
277
209
278
echo "Running sed commands..."
210
-
279
+
211
280
sed -i 's/CONFIG_LTO=n/CONFIG_LTO=y/' "./common/arch/arm64/configs/gki_defconfig"
212
281
sed -i 's/CONFIG_LTO_CLANG_FULL=y/CONFIG_LTO_CLANG_THIN=y/' "./common/arch/arm64/configs/gki_defconfig"
213
282
sed -i 's/CONFIG_LTO_CLANG_NONE=y/CONFIG_LTO_CLANG_THIN=y/' "./common/arch/arm64/configs/gki_defconfig"
214
283
215
284
# Run sed commands for modifications
216
285
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
220
289
sed -i "/stable_scmversion_cmd/s/-maybe-dirty//g" ./build/kernel/kleaf/impl/stamp.bzl || echo "No stamp.bzl!"
221
290
sed -i 's/-dirty//' ./common/scripts/setlocalversion
222
291
sed -i 's/-dirty//' ./msm-kernel/scripts/setlocalversion
223
292
sed -i 's/-dirty//' ./external/dtc/scripts/setlocalversion
224
293
sed -i 's/-dirty//' ./build/kernel/kleaf/workspace_status_stamp.py || echo "No workspace_status_stamp.py!"
225
-
294
+
226
295
sed -i '/echo "LTO $LTO "/i export LTO=thin' ./oplus/build/oplus_setup.sh
227
296
sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
228
297
@@ -277,15 +346,33 @@ jobs:
277
346
run : |
278
347
echo "Changing to configuration directory: $CONFIG..."
279
348
cd "$CONFIG"
280
-
349
+
281
350
echo "Copying Image"
282
351
cp ./out/dist/Image ../AnyKernel3/Image
283
352
284
353
- name : Create ZIP Files for Different Formats
285
354
run : |
286
355
echo "Navigating to AnyKernel3 directory..."
287
356
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
+
289
376
# Zip the files in the AnyKernel3 directory with a new naming convention
290
377
ZIP_NAME="${{ inputs.model }}_${{ inputs.android_version }}_${{ inputs.kernel_version }}_Next_SUSFS_AnyKernel3.zip"
291
378
echo "Creating zip file $ZIP_NAME..."
0 commit comments