adb命令
StackTraceElement st[] = Thread.currentThread().getStackTrace();
for (int i = 0; i < st.length; i++) {
Log.secD(“slong.liang”, “trace: ” + st[i].toString());
}
linux清屏命令:clear
adb remout
adb shell su -c setenforce 0
adb logcat -b events[radio main(默认)]
adb logcat [-v time] slong.liang[TAG1]:V[优先级] PhoneBookManageSim2[TAG2]:V[优先级] *:s
– adb logcat -v time *:E
也可以通过定义 GREP_COLOR 变量设置颜色
30 black
31 red
32 green
33 yellow
34 blue
35 purple
36 cyan
37 white
GREPCOLOR=32
export GREP_COLOR
adb logcat -b events | grep –color=auto -i [String] #-i 忽略大小写搜索
adb shell am broadcast -a com.samsung.intent.action.PB_SYNC //发广播
adb shell getprop //获取系统属性
C:\Users\Silion>adb shell
root@kleoslte:/ # getprop persist.sys.setupwizard
getprop persist.sys.setupwizard
FINISH
root@kleoslte:/ # setprop persist.sys.setupwizard contacts
setprop persist.sys.setupwizard contacts //获取(设置)某个系统属性
C:\Users\silion>adb logcat -v time slong.liang:V *:s > D:\log.txt
adb shell logcat | findstr xxx