【问题标题】:Capturing logcat on android x86在 android x86 上捕获 logcat
【发布时间】:2010-09-24 05:55:49
【问题描述】:

我在基于 x-86 的 PC 上运行 android 2.2 (froyo)。如何在终端控制台上捕获 logcat 并将其保存到 android 中的任何特定位置,比如记事本?它的键盘命令是什么?

android x-86 的其他通用键盘快捷键是什么?

【问题讨论】:

    标签: android keyboard-shortcuts x86 logcat


    【解决方案1】:
    adb logcat > logcat.txt
    

    如果你有一个模拟器和一个设备,并且你想从设备中提取 logcat,那么:

    adb -d logcat > logcat.txt
    

    键入 adb help 以获取命令列表。

    【讨论】:

    • 没用,Android x-86终端屏幕上的logcat一直亮着就自动停止了
    • x-86 是指标准 PC,对吗? “adb logcat”有效吗? "> logcat.txt" 只是将结果转储到创建为“logcat.txt”的新文件中。如果 adb logcat 有效而 ">" 部分无效,请谷歌了解如何将 shell 结果转储到系统上的文件中。在 Unix 和 Windows XP 中,“大于”符号有效。
    • '-d' 必须放在'logcat' 之后,例如:"adb logcat -d"
    • @dapper 是 x-86 表示标准 PC。无需编写 adb 他们简单的 logcat cmd 工作,如果你想将 logcat 保存到内存中的某个空间,那么它必须在 /data/ 中。
    【解决方案2】:

    adb 工具不适用于 android x86

    【讨论】:

    • 这取决于实际构建。我使用的大多数 android x86 版本都存在 ADB。
    • @ZoltanF 但在使用 android x-86 标准 PC 时无需编写 adb 某些 shell cmd 直接工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-30
    • 1970-01-01
    • 2019-01-04
    • 1970-01-01
    • 1970-01-01
    • 2018-02-24
    相关资源
    最近更新 更多