gpt4 book ai didi

android - Android adb 的 Windows 源代码在哪里?

转载 作者:太空宇宙 更新时间:2023-11-03 13:52:24 28 4
gpt4 key购买 nike

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

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

但是,根据 adb.cpp 文件的快速浏览,这似乎是 Linux 分支。 Windows版本在哪里? (或者我错了吗?)

PS:关于如何导航的信息android.googlesource.com也将不胜感激。

最佳答案

作为stated罗曼·盖伊:

It's in the Android source tree: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

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

关于android - Android adb 的 Windows 源代码在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33595114/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com