Android adb 的 Windows 源代码在哪里?

Sab*_*ncu 3 windows android adb

我正在尝试了解 Android 如何adb.exe在 Windows 上运行。我找到了以下源代码分支:

https://android.googlesource.com/platform/system/core/+/master/adb/

然而,快速浏览一下该adb.cpp文件,这似乎是 Linux 分支。Windows 版本在哪里?(还是我错了?)

PS:有关如何浏览android.googlesource.com 的信息也将受到赞赏。

Mat*_*ini 7

正如罗曼·盖伊所说

它位于 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
Run Code Online (Sandbox Code Playgroud)

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