#include android/system/core/init/log.h ERROR("xxxxxxxxxxx '%s'\n", name); 在 system/core/init/init.c 中打印log ,在open_devnull_stdio();后面的ERROR(“XXX”); 打印不出来,注掉,就好 了。 实际上,就是往"/dev/__kmsg__" 写字符串 ,即__log_buf