File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,22 @@ function saveLogcat() {
9898 fi
9999}
100100
101+ function saveKernelLogcat(){
102+ # $1 is device serial number
103+ # $2 is filename
104+ # $return -
105+ if [ $# -lt 2 ]; then
106+ writeToLogsFile " @@ No 2 argument passed to ${FUNCNAME[0]} () in ${BASH_SOURCE} called from $( basename ${0} ) "
107+ exit 1
108+ else
109+ adb -s " $1 " logcat -v threadtime -b kernel | tee ` echo ${myLogs} /` ${2} -logcat_kernel.${logcatExtension}
110+ fi
111+ }
112+
101113function clearLogcat() {
102114# $1 is device serial number
103115# $2 is filename
104- # $return -
116+ # $return -
105117 if [ $# -lt 1 ]; then
106118 writeToLogsFile " @@ No 2 argument passed to ${FUNCNAME[0]} () in ${BASH_SOURCE} called from $( basename ${0} ) "
107119 exit 1
You can’t perform that action at this time.
0 commit comments