adb工具獲取appPackage和appActivity 1,手機連接電腦,打開手機調試功能,並運行待測試APP,終端執行: adb shell 2,接着,執行: 直接查看輸出結果中mFocusedApp的值,比 ...