adb shell <command />不会打印到stdout

时间:2015-12-11 16:36:19

标签: android shell adb

死的简单问题。我的程序运行12秒,然后打印到stdout。使用adb shell命令启动它时,它甚至不会启动...

$ adb shell
# /data/myprogram
CPU time: 12682.4 ms

$ adb shell /data/myprogram
<nothing>
$

我的程序运行12秒,日志是stdout中的std :: cout C ++打印。我使用adb-v1.0.32。我的开发板运行android-5.0.2,具有root访问权限。尝试使用adb shell执行它时,它会快速返回提示。我检查了程序是否在busybox ps的后台运行,但没有。

我缺少什么?

0 个答案:

没有答案