-
Notifications
You must be signed in to change notification settings - Fork 9
/
init.log.rc
109 lines (96 loc) · 4.37 KB
/
init.log.rc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
on boot
# setup permissions for logging
chown system system /sys/class/bcm_log/bcm_log/log
chown system system /sys/class/bcm_log/bcm_log/log_lock
chown system system /sys/class/bcm_log/bcm_log/cp_crash
chown system system /sys/class/bcm_log/bcm_log/cp_crash_lock
chown system system /sys/class/bcm_log/bcm_log/ap_crash
chown system system /sys/class/bcm_log/bcm_log/ap_crash_lock
chown system system /sys/class/bcm_log/bcm_log/file_max
chown system system /sys/class/bcm_log/bcm_log/file_base
chmod 0664 /sys/class/bcm_log/bcm_log/log
chmod 0664 /sys/class/bcm_log/bcm_log/log_lock
chmod 0664 /sys/class/bcm_log/bcm_log/cp_crash
chmod 0664 /sys/class/bcm_log/bcm_log/cp_crash_lock
chmod 0664 /sys/class/bcm_log/bcm_log/ap_crash
chmod 0664 /sys/class/bcm_log/bcm_log/ap_crash_lock
chmod 0664 /sys/class/bcm_log/bcm_log/file_max
chmod 0664 /sys/class/bcm_log/bcm_log/file_base
# Setup Logging persistent data
on property:persist.brcm.log=auto
write /sys/class/bcm_log/bcm_log/log_lock 0
on property:persist.brcm.log=sdcard
write /sys/class/bcm_log/bcm_log/log_lock 0
write /sys/class/bcm_log/bcm_log/log sdcard
write /sys/class/bcm_log/bcm_log/log_lock 1
on property:persist.brcm.log=uart
write /sys/class/bcm_log/bcm_log/log_lock 0
write /sys/class/bcm_log/bcm_log/log uart
write /sys/class/bcm_log/bcm_log/log_lock 1
on property:persist.brcm.log=stm
write /sys/class/bcm_log/bcm_log/log_lock 0
write /sys/class/bcm_log/bcm_log/log stm
write /sys/class/bcm_log/bcm_log/log_lock 1
on property:persist.brcm.log=rndis
write /sys/class/bcm_log/bcm_log/log_lock 0
write /sys/class/bcm_log/bcm_log/log rndis
write /sys/class/bcm_log/bcm_log/log_lock 1
on property:persist.brcm.log=acm
write /sys/class/bcm_log/bcm_log/log_lock 0
write /sys/class/bcm_log/bcm_log/log acm
write /sys/class/bcm_log/bcm_log/log_lock 1
on property:persist.brcm.cp_crash=auto
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
on property:persist.brcm.cp_crash=sdcard
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
write /sys/class/bcm_log/bcm_log/cp_crash sdcard
write /sys/class/bcm_log/bcm_log/cp_crash_lock 1
on property:persist.brcm.cp_crash=uart
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
write /sys/class/bcm_log/bcm_log/cp_crash uart
write /sys/class/bcm_log/bcm_log/cp_crash_lock 1
on property:persist.brcm.cp_crash=stm
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
write /sys/class/bcm_log/bcm_log/cp_crash stm
write /sys/class/bcm_log/bcm_log/cp_crash_lock 1
on property:persist.brcm.cp_crash=rndis
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
write /sys/class/bcm_log/bcm_log/cp_crash rndis
write /sys/class/bcm_log/bcm_log/cp_crash_lock 1
on property:persist.brcm.cp_crash=acm
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
write /sys/class/bcm_log/bcm_log/cp_crash acm
write /sys/class/bcm_log/bcm_log/cp_crash_lock 1
on property:persist.brcm.cp_crash=panic
write /sys/class/bcm_log/bcm_log/cp_crash_lock 0
write /sys/class/bcm_log/bcm_log/cp_crash panic
write /sys/class/bcm_log/bcm_log/cp_crash_lock 1
on property:persist.brcm.ap_crash=auto
write /sys/class/bcm_log/bcm_log/ap_crash_lock 0
on property:persist.brcm.ap_crash=stm
write /sys/class/bcm_log/bcm_log/ap_crash_lock 0
write /sys/class/bcm_log/bcm_log/ap_crash stm
write /sys/class/bcm_log/bcm_log/ap_crash_lock 1
on property:persist.brcm.ap_crash=panic
write /sys/class/bcm_log/bcm_log/ap_crash_lock 0
write /sys/class/bcm_log/bcm_log/ap_crash panic
write /sys/class/bcm_log/bcm_log/ap_crash_lock 1
on property:persist.brcm.ap_crash=sdcard
write /sys/class/bcm_log/bcm_log/ap_crash_lock 0
write /sys/class/bcm_log/bcm_log/ap_crash sdcard
write /sys/class/bcm_log/bcm_log/ap_crash_lock 1
#Setup Broadcom brcm.ase.xxx handling for ASE
on property:brcm.ase.log=*
write /sys/class/bcm_log/bcm_log/log $brcm.ase.log
on property:brcm.ase.cp_crash=*
write /sys/class/bcm_log/bcm_log/cp_crash $brcm.ase.cp_crash
on property:brcm.ase.ap_crash=*
write /sys/class/bcm_log/bcm_log/ap_crash $brcm.ase.ap_crash
on property:brcm.ase.log_save=1
setprop persist.brcm.log $brcm.ase.log
on property:brcm.ase.file_max=*
write /sys/class/bcm_log/bcm_log/file_max $brcm.ase.file_max
on property:brcm.ase.file_max_save=1
setprop persist.brcm.log_file_max $brcm.ase.file_max
on property:persist.brcm.log_file_max=*
write /sys/class/bcm_log/bcm_log/file_max $persist.brcm.log_file_max