我正在努力了解Android adb.exe
是如何在Windows上工作的。我发现了以下源代码分支:
https://android.googlesource.com/platform/system/core/+/主/adb/
然而,根据对adb.cpp
文件的快速浏览,这似乎是Linux分支。Windows版本在哪里?(或者我错了?)
附言:关于如何浏览android.googlesource.com的信息也将不胜感激。
正如罗曼·盖伊所说:
它在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
adb
的源代码目录现在似乎已更改为https://android.googlesource.com/platform/packages/modules/adb/
不是https://android.googlesource.com/platform/system/adb