summaryrefstree
path: root/system/bin/log_report.sh
blob: 006d27d7e8bf2778a86ff038a19ff7a53d6916c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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