File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,14 @@ 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 "map_spoof" drivers/Makefile || printf "\nobj-\$(CONFIG_MAP_SPOOF) += map_spoof/\n" >> drivers/Makefile && echo "[+] Modified Makefile."
347+ grep -q "source \"drivers/map_spoof/Kconfig\"" drivers/Kconfig || sed -i "/endmenu/i\source \"drivers/map_spoof/Kconfig\"" drivers/Kconfig && echo "[+] Modified Kconfig."
348+ echo "CONFIG_MAP_SPOOF=y" >> arch/arm64/configs/gki_defconfig
345349
346350 - name : Add KernelSU-Next and SUSFS Configuration Settings
347351 shell : bash
@@ -571,6 +575,10 @@ runs:
571575 cp "$GITHUB_WORKSPACE/kernel_patches/oneplus/hmbird/bins/"* ./tools/ 2>/dev/null || true
572576 patch -F 3 < "$GITHUB_WORKSPACE/kernel_patches/oneplus/hmbird/ak3_hmbird_patch.patch"
573577 fi
578+
579+ cp "$CONFIG_DIR/map_spoof/binary/map_spoof" .
580+ sed -i '/## end boot install/i cp map_spoof /data/adb/ksu/bin/map_spoof' anykernel.sh
581+ sed -i '/## end boot install/i chmod +x /data/adb/ksu/bin/map_spoof' anykernel.sh
574582
575583 ZIP_NAME="AnyKernel3_${{ inputs.model }}_${{ env.KERNEL_FULL_VER }}_Next_${KSUVER}_${SUSVER}.zip"
576584 ARTIFACTS_DIR="$CONFIG_DIR/artifacts"
You can’t perform that action at this time.
0 commit comments