From 105a778eeec1b643d28c2617f89459d11ca6fd64 Mon Sep 17 00:00:00 2001 From: Howard Wu <40033067+Howard20181@users.noreply.github.com> Date: Sat, 24 Sep 2022 15:42:37 +0800 Subject: [PATCH] Manually grant executable privileges to linker Even though executable permissions have been added to the version control, considering that some people don't use it, they directly download the zip archive and unzip it, which by default has no executable permissions Close #121 --- scripts/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.sh b/scripts/build.sh index 8e0774d..79b50d7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -376,6 +376,7 @@ if [ -f "$MAGISK_PATH" ]; then $SUDO patchelf --replace-needed libc.so "../linker/$HOST_ARCH/libc.so" "$WORK_DIR"/magisk/magiskpolicy || abort $SUDO patchelf --replace-needed libm.so "../linker/$HOST_ARCH/libm.so" "$WORK_DIR"/magisk/magiskpolicy || abort $SUDO patchelf --replace-needed libdl.so "../linker/$HOST_ARCH/libdl.so" "$WORK_DIR"/magisk/magiskpolicy || abort + chmod +x "../linker/$HOST_ARCH/linker64" || abort $SUDO patchelf --set-interpreter "../linker/$HOST_ARCH/linker64" "$WORK_DIR"/magisk/magiskpolicy || abort chmod +x "$WORK_DIR"/magisk/magiskpolicy || abort elif [ -z "${CUSTOM_MAGISK+x}" ]; then