system/core/liblog/logger_write.c
int log_filter( const char* tag )
{
if( strcmp(tag, "xxxtag") == 0 ){
return 0x00;
}
return 0x01;
}
static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr) {
struct android_log_transport_write* node;
......
if (!__android_log_is_loggable_len(prio, tag, len - 1, ANDROID_LOG_VERBOSE)) {
errno = save_errno;
return -EPERM;
}
if( log_filter(tag) == 0x00 ){
return 0x00;
}
mmm system/core/liblog/ -j8
adb push \out\target\product\xxxx\system\lib\liblog.so /system/lib/