Updating zakosign binary script builds

This commit is contained in:
ShirkNeko
2025-08-12 19:37:27 +08:00
parent ecb2dae743
commit 57fcf86579
4 changed files with 5 additions and 5 deletions

View File

@@ -15,11 +15,11 @@ add_library(zako
find_library(log-lib log) find_library(log-lib log)
if(ANDROID_ABI STREQUAL "arm64-v8a") if(ANDROID_ABI STREQUAL "arm64-v8a")
set(zakosign-lib ${CMAKE_SOURCE_DIR}/libs/arm64-v8a/libzakosign.so) set(zakosign-lib ${CMAKE_SOURCE_DIR}/../jniLibs/arm64-v8a/libzakosign.so)
endif() endif()
if(ANDROID_ABI STREQUAL "arm64-v8a") if(ANDROID_ABI STREQUAL "arm64-v8a")
target_link_libraries(zako ${log-lib} ${zakosign-lib}) target_link_libraries(zako ${log-lib} ${zakosign-lib})
else () else()
target_link_libraries(zako ${log-lib}) target_link_libraries(zako ${log-lib})
endif () endif()

View File

@@ -15,7 +15,7 @@
// Zako extern declarations // Zako extern declarations
#define ZAKO_ESV_IMPORTANT_ERROR 1 << 31 #define ZAKO_ESV_IMPORTANT_ERROR 1 << 31
extern int zako_file_open_rw(const char* path); extern int zako_sys_file_open(const char* path);
extern uint32_t zako_file_verify_esig(int fd, uint32_t flags); extern uint32_t zako_file_verify_esig(int fd, uint32_t flags);
extern const char* zako_esign_verrcidx2str(uint8_t index); extern const char* zako_esign_verrcidx2str(uint8_t index);
@@ -201,7 +201,7 @@ bool verify_module_signature(const char* input) {
return false; return false;
} }
int fd = zako_file_open_rw(input); int fd = zako_sys_file_open(input);
if (fd < 0) { if (fd < 0) {
LogDebug("verify_module_signature: failed to open file: %s", input); LogDebug("verify_module_signature: failed to open file: %s", input);
return false; return false;