blob: d00f9efe29786afc7ad79c7269604aa5a2fb63a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#!bin/sh
function logcmd()
{
echo -e "\n"
echo "$@"
date
}
function exe_cmd()
{
logcmd "$@";
eval $@;
}
echo phoneinfo start
exe_cmd "cat /proc/cmdline"
exe_cmd "cat /proc/version"
exe_cmd "cat /proc/meminfo"
exe_cmd "cat /proc/slabinfo"
exe_cmd "cat /proc/mounts"
exe_cmd "cat /proc/diskstats"
exe_cmd "cat /proc/modules"
exe_cmd "cat /proc/cpuinfo"
exe_cmd "getprop"
exe_cmd "ylogctl q"
sleep 60s
echo phoneinfo end
echo poweron start
fwc=$(getprop sys.debug.fwc)
fwce="1"
date
exe_cmd "uptime"
retVal=$(/system/bin/ylogctl file)
logcmd "the log file is $retVal"
while true;do
if [ -d "/data/ylog/ap/" ]; then
break
fi
sleep 1s
done
exe_cmd "getprop>/data/ylog/phone.info"
exe_cmd "chmod 0777 /data/ylog/phone.info"
if [ "$fwc" = "$fwce" ];then
exe_cmd "echo 'dummy'>/data/ylog/fwcrash.info"
exe_cmd "chmod 0777 /data/ylog/fwcrash.info"
fi
sleep 1024h
echo poweron end
|