Skip to content

Commit bc3a4a2

Browse files
committed
Android logcat revert
1 parent 5d5fb8e commit bc3a4a2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

subs/cpp_native/src/main/cpp/cpp_native.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <jni.h>
22
#include <string>
3-
//#include "androidlog.h"
3+
#include "androidlog.h"
44
#include "bspatch.h"
55

66
using namespace std;
@@ -10,7 +10,7 @@ JNIEXPORT jstring
1010

1111
JNICALL
1212
Java_com_example_cpp_1native_internal_NativeHouse_getNativeMessage(JNIEnv *env, jobject thiz) {
13-
// LOGE("native method getNativeMessage called");
13+
LOGE("native method getNativeMessage called");
1414
string result = "this is from c++";
1515
return env->NewStringUTF(result.c_str());
1616
}
@@ -27,9 +27,9 @@ Java_com_example_cpp_1native_internal_PatchUtil_patchAPK(JNIEnv *env, jclass cla
2727
argv[2] = (char *) (env->GetStringUTFChars(new_apk_file, nullptr));
2828
argv[3] = (char *) (env->GetStringUTFChars(patch_file, nullptr));
2929

30-
// LOGD("argv[1] = %s", argv[1]);
31-
// LOGD("argv[2] = %s", argv[2]);
32-
// LOGD("argv[3] = %s", argv[3]);
30+
LOGD("argv[1] = %s", argv[1]);
31+
LOGD("argv[2] = %s", argv[2]);
32+
LOGD("argv[3] = %s", argv[3]);
3333

3434
main(argc, argv);
3535

subs/cpp_native/src/main/cpp/p/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ add_library(
5858
# can link multiple libraries, such as libraries you define in this
5959
# build script, prebuilt third-party libraries, or system libraries.
6060

61-
#target_link_libraries( # Specifies the target library.
62-
# cpp_native
63-
# # Links the target library to the log library
64-
# # included in the NDK.
65-
# ${log-lib})
61+
target_link_libraries( # Specifies the target library.
62+
cpp_native
63+
# Links the target library to the log library
64+
# included in the NDK.
65+
${log-lib})

0 commit comments

Comments
 (0)