diff --git a/core/jni/android_util_EventLog.cpp b/core/jni/android_util_EventLog.cpp index 6c95b8a5eb9ba..5cb8b2e9e5f47 100644 --- a/core/jni/android_util_EventLog.cpp +++ b/core/jni/android_util_EventLog.cpp @@ -188,6 +188,10 @@ static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz UNUSED, break; } + if (log_msg.id() != LOG_ID_EVENTS) { + continue; + } + int32_t tag = * (int32_t *) log_msg.msg(); int found = 0;