测试环境
- 设备:Redmi
- 系统应用:浏览器(com.android.browser)
获取应用包名
- 通过 adb shell pm package 获取
- 打开待测app,通过adb shell dumpsys window | findstr “mCurrentFocus” 获取
PS F:\> adb shell dumpsys window | findstr "mCurrentFocus"
mCurrentFocus=Window{
e3db63d u0 com.android.browser/com.android.browser.BrowserActivity}