测试环境
设备: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}
卸载应用
# 通过adb uninstall卸载adb uninstall com.android.browser# 卸载失败# Failure [DELETE_FAILED_INTERNAL_ERROR]adb shell pm uninstall com.android.browser# 卸载失败# Failure [DELETE_FAILED_INTERNAL_ERROR]adb shell pm uninstall -k --user 0 com.android.browser# 卸载成功# Success