Android 常用命令

2019-12-17  本文已影响0人  gaoqi03

查看当前APP包名

adb shell "dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'" | cut -d'/' -f1 | rev | cut -d' ' -f1 | rev | head -1

查看当前APP Activity

adb shell "dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'"

查看当前APP Fragment

adb shell dumpsys activity `adb shell "dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'" | cut -d'/' -f1 | rev | cut -d' ' -f1 | rev | head -1`| grep '#0' | head -1

adb shell dumpsys window com.xiaomi.account | grep "com.xiaomi.account*" |grep "Window*" | grep -v "mToken*" 

上一篇 下一篇

猜你喜欢

热点阅读