【问题标题】:how access current and focused window in android adb如何在android adb中访问当前和焦点窗口
【发布时间】:2020-12-22 05:24:21
【问题描述】:

我正在使用 Android API 30 adb

adb shell dumpsys window windows

但它没有显示 mCurrentFocused 和 mFocused 应用程序

请帮帮我

【问题讨论】:

    标签: adb dumpsys


    【解决方案1】:

    我想你可以试试这个:

    dumpsys 窗口 | grep -E "mCurrentFocus

    【讨论】:

    • print(device.shell('dumpsys window | grep -E "mCurrentFocus"'))
    • 最好将附加信息添加到您的原始答案中,而不是在 cmets 中。许多用户在没有阅读 cmets 的情况下专注于答案,可能会错过其他信息。
    猜你喜欢
    • 2018-05-03
    • 2012-02-12
    • 1970-01-01
    • 2011-09-23
    • 1970-01-01
    • 2018-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多