Android adb的Windows源代码在哪里?

r7xajy2e  于 2023-01-14  发布在  Windows
关注(0)|答案(2)|浏览(220)

我试图了解Android adb.exe如何在Windows上工作,我发现了以下源代码分支:
https://android.googlesource.com/platform/system/core/+/master/adb/
然而,基于对adb.cpp文件的快速浏览,这似乎是Linux分支。Windows版本在哪里?(或者我错了?)
PS:关于如何导航android.googlesource.com的信息也将受到赞赏。

ryhaxcpt

ryhaxcpt1#

作为stated由罗曼盖伊:
它位于Android源代码树中:https://android.googlesource.com/platform/system/adb
adb.cpp中,有一些对Windows的引用,如下所示:

// In the past, reading from a pipe before the child process's C Runtime
// started up and called GetFileType() caused a hang: http://blogs.msdn.com/b/oldnewthing/archive/2011/12/02/10243553.aspx#10244216
// This is reportedly fixed in Windows Vista: https://support.microsoft.com/en-us/kb/2009703
// I was unable to reproduce the problem on Windows XP. It sounds like a
// Windows Update may have fixed this: https://www.duckware.com/tech/peeknamedpipe.html

这里解释了如何构建Android SDK或只是Windows的工具(包括adb):https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt

相关问题