Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG committed Feb 2, 2023
1 parent 673eca8 commit 4ecb4a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion loader/src/Application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ APP_STL := none

ifneq ($(NDK_DEBUG),1)
APP_CFLAGS += -Oz -flto
APP_CFLAGS += -Wno-unused -Wno-unused-parameter -Werror
APP_CFLAGS += -Wno-unused -Wno-unused-parameter
APP_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
APP_LDFLAGS += -Wl,--exclude-libs,ALL -flto -Wl,--gc-sections -Wl,--strip-all
Expand Down
4 changes: 2 additions & 2 deletions loader/src/injector/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ static void zygisk_cleanup_wait() {
}
}

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

1 change: 0 additions & 1 deletion loader/src/injector/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <sys/mman.h>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-builtins"
#include <parallel_hashmap/phmap.h>
#pragma clang diagnostic pop

Expand Down
2 changes: 1 addition & 1 deletion module/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ androidComponents.onVariants { variant ->
val buildTypeLowered = variant.buildType?.toLowerCase()

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

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

0 comments on commit 4ecb4a9

Please sign in to comment.