UiAutomator Device.executeShellCommand 执行 adb shell dumpsys meminfo 只返回 * daemon started successfully *

傅建生 · July 17, 2018 · Last by 傅建生 replied at July 17, 2018 · 2809 hits

请问下我用 Device.executeShellCommand 执行 adb shell dumpsys meminfo+ 包名,只返回了 * daemon not running. starting it now on port 5038 *
* daemon started successfully *,这是什么原因?

共收到 2 条回复 时间 点赞

daemon started successfully 应该是读取的 stderr 吧?看看 stdout

应该是没执行成功

傅建生 关闭了讨论 17 Jul 11:18
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up