File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,12 @@ runs:
338338 shell : bash
339339 run : |
340340 set -euo pipefail
341- cd "$CONFIG/kernel_platform/common"
342- patch -p1 --forward < "../../../kernel_patches/maps/xx_maps_sus_kernel.patch"
343- cd "../KernelSU-Next"
344- patch -p1 --forward < "../../../kernel_patches/maps/xx_maps_ksu.patch"
341+ cd "$CONFIG"
342+ git clone https://github.com/fatalcoder524/map_spoof.git
343+ cd "kernel_platform/common"
344+ patch -p1 --forward < "../../map_spoof/sus_kernel.diff"
345+ cp -r "../../map_spoof/map_spoof" drivers
346+ grep -q "source \"drivers/map_spoof/Kconfig\"" drivers/Kconfig || sed -i "/endmenu/i\source \"drivers/map_spoof/Kconfig\"" drivers/Kconfig && echo "[+] Modified Kconfig."
345347
346348 - name : Add KernelSU-Next and SUSFS Configuration Settings
347349 shell : bash
@@ -571,6 +573,9 @@ runs:
571573 cp "$GITHUB_WORKSPACE/kernel_patches/oneplus/hmbird/bins/"* ./tools/ 2>/dev/null || true
572574 patch -F 3 < "$GITHUB_WORKSPACE/kernel_patches/oneplus/hmbird/ak3_hmbird_patch.patch"
573575 fi
576+
577+ cp "$CONFIG_DIR/map_spoof/binary/map_spoof" .
578+ sed -i '/## end boot install/i cp map_spoof /data/adb/ksu/bin/map_spoof' anykernel.sh
574579
575580 ZIP_NAME="AnyKernel3_${{ inputs.model }}_${{ env.KERNEL_FULL_VER }}_Next_${KSUVER}_${SUSVER}.zip"
576581 ARTIFACTS_DIR="$CONFIG_DIR/artifacts"
You can’t perform that action at this time.
0 commit comments