#!/system/bin/sh rm /data/log_report_logcat ln -s /system/bin/logcat /data/log_report_logcat cur_log_path=$1 mkdir -p $cur_log_path /data/log_report_logcat -v time -b radio -b main -b system > $cur_log_path/logcat-$(date +%Y%m%d-%H%M%S).log & if [ -e /data/anr/traces.txt ];then busybox cp /data/anr/traces.txt $cur_log_path/ fi