From 804fc6d0d8fb0d368a3383b6e1bc0a16258a4225 Mon Sep 17 00:00:00 2001 From: wlt233 <1486185683@qq.com> Date: Fri, 1 Sep 2023 10:44:18 +0800 Subject: [PATCH] fix native lib --- app/src/main/jni/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/jni/main.cpp b/app/src/main/jni/main.cpp index c7c0d59..810077e 100644 --- a/app/src/main/jni/main.cpp +++ b/app/src/main/jni/main.cpp @@ -38,7 +38,7 @@ void *new_func(u_int8_t a1, u_int8_t *a2, int a3) { for (int j = 0; j < 8; ++j) sprintf(pmm_str + j * 3, "%02x ", *(char *)(a2 + i + 2 + j)); __android_log_print(6, "AICEmu-pmmtool", "[1] new PMm: %s", pmm_str); - __system_property_set("tmp.AICEmu.pmmtool", "1"); + //__system_property_set("tmp.AICEmu.pmmtool", "1"); } } @@ -60,7 +60,7 @@ void *new_func(u_int8_t a1, u_int8_t *a2, int a3) { for (int j = 0; j < 8; ++j) sprintf(pmm_str + j * 3, "%02x ", *(char *)(a2 + i + j)); __android_log_print(6, "AICEmu-pmmtool", "[2] new PMm: %s", pmm_str); - __system_property_set("tmp.AICEmu.pmmtool", "1"); + //__system_property_set("tmp.AICEmu.pmmtool", "1"); } } //} @@ -72,7 +72,7 @@ void *new_func(u_int8_t a1, u_int8_t *a2, int a3) { jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { __android_log_print(6, "AICEmu-pmmtool", "Inside JNI_OnLoad"); - __system_property_set("tmp.AICEmu.pmmtool", "0"); + //__system_property_set("tmp.AICEmu.pmmtool", "0"); JNIEnv *env = nullptr; if (vm->GetEnv((void **) &env, JNI_VERSION_1_6) == JNI_OK) { //void *func_addr = DobbySymbolResolver("libnfc-nci.so", "_Z23nfa_dm_check_set_confighPhb");