log

将Android的系统日志输出到文件

首先,在产品目录的init.XXX.rc文件中,添加相应的service, #start log service start logd on property:service.logcat.enable=1 start logcat_service on property:service.logcat.enable=0 stop logcat_service #log services service logcat_service /system/bin/logcat -b system -b events -b main -b radio -k -n 10 -v threadtime -r5000 -f