Skip to content

Commit 4ecb4a9

Browse files
committed
Fix release build
1 parent 673eca8 commit 4ecb4a9

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

loader/src/Application.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ APP_STL := none
77

88
ifneq ($(NDK_DEBUG),1)
99
APP_CFLAGS += -Oz -flto
10-
APP_CFLAGS += -Wno-unused -Wno-unused-parameter -Werror
10+
APP_CFLAGS += -Wno-unused -Wno-unused-parameter
1111
APP_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
1212
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
1313
APP_LDFLAGS += -Wl,--exclude-libs,ALL -flto -Wl,--gc-sections -Wl,--strip-all

loader/src/injector/entry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ static void zygisk_cleanup_wait() {
1515
}
1616
}
1717

18-
extern "C" __used void entry(void *handle) {
18+
extern "C" [[gnu::visibility("default")]]
19+
void entry(void *handle) {
1920
LOGD("Load injector successfully");
2021
self_handle = handle;
2122
hook_functions();
@@ -27,4 +28,3 @@ static inline bool should_load_modules(uint32_t flags) {
2728
return (flags & UNMOUNT_MASK) != UNMOUNT_MASK &&
2829
(flags & PROCESS_IS_MAGISK_APP) != PROCESS_IS_MAGISK_APP;
2930
}
30-

loader/src/injector/memory.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <sys/mman.h>
55

66
#pragma clang diagnostic push
7-
#pragma clang diagnostic ignored "-Wdeprecated-builtins"
87
#include <parallel_hashmap/phmap.h>
98
#pragma clang diagnostic pop
109

module/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ androidComponents.onVariants { variant ->
2323
val buildTypeLowered = variant.buildType?.toLowerCase()
2424

2525
val moduleDir = "$buildDir/outputs/module/$variantLowered"
26-
val zipFileName = "$moduleName-$verName-$buildTypeLowered.zip".replace(' ', '-')
26+
val zipFileName = "$moduleName-$verName-$verCode-$buildTypeLowered.zip".replace(' ', '-')
2727

2828
val prepareModuleFilesTask = task<Sync>("prepareModuleFiles$variantCapped") {
2929
group = "module"

0 commit comments

Comments
 (0)