android 在 windows 上找不到 adb strace

android adb strace not found on windows

我想记录 Android 应用程序的所有系统调用。当我 运行 命令 adb shell strace 我得到 /system/bin/sh: strace: not found 我在 windows 10 并且我已经安装了 Android 平台工具 28.0.1。我尝试在 adb shell 上使用命令 make,但没有找到。

为了使用 strace shell 需要一个带有 x86 系统映像的设备

从该站点下载 strace: http://benno.id.au/blog/2007/11/18/android-runtime-strace (点击超级link"strace for Android")

键入 adb shell 进入 adb shell 使用 /system/xbin/su -c "system/bin/sh -" (进入 root) 然后将文件放在 system/bin(从上面 link 下载),同时在 root 中。 ps 查看进程。 运行 跟踪!

命令:strace -p