一、串口打印logcat
+++ b/common/rootdir/root/init.sc8830.rc
+service logcat /system/bin/logcat -f /dev/kmsg *:w
+ class main
+ user root
+ group log
+ oneshot
+
3). disabble SElinux
/system/core/init/init.cpp
static bool selinux_is_enforcing(void)函数开头return false; 或者comandline 添加androidboot.selinux=permissive";