第一步:先查询 设置的 包名 和界面名
输入命令adb shell dumpsys window windows | findstr mFocusedApp-----------------------一个window 个windows
打印出
mFocusedApp=AppWindowToken{45a0499 token=Token{db88be3 ActivityRecord{2fbb3812 u0 com.android.settings/.Settings t9}}}
第二步:查询启动时间
adb shell am start -W 包名 /界面名
输入命令 adb shell am start -W com.android.settings/.Settings
原文:https://www.cnblogs.com/fanqiusha1988/p/13332284.html