【问题标题】:adb shell am set-idle returns unknown command when testing app standby测试应用待机时 adb shell am set-idle 返回未知命令
【发布时间】:2015-07-06 16:43:43
【问题描述】:

运行时

adb shell am set-idle package_name true

按照here的建议,它返回

错误:未知命令“设置空闲”

我错过了什么?

【问题讨论】:

    标签: adb android-6.0-marshmallow


    【解决方案1】:

    哈!找到答案了here

    文档页面中有错误。 正确的命令应该是

    adb shell am set-inactive package_name true

    【讨论】:

    • 嗨,我在模拟器上使用相同的命令,但它永远挂起。执行需要很长时间吗?
    猜你喜欢
    • 1970-01-01
    • 2015-03-14
    • 1970-01-01
    • 2022-10-15
    • 2021-11-06
    • 2021-12-15
    • 2019-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多