2015-11-08 106 views

回答

4

由於stated通過羅曼蓋伊:

這是在Android源代碼樹: https://github.com/android/platform_system_core/tree/master/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或者僅僅是工具(包括a db)for Windows: https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt

+0

謝謝。你發佈的how-to-build鏈接爲這個難題提供了缺失的部分。它說:「爲了構建適用於Windows的Android SDK,您需要使用* Linux *框。」**因此,似乎代碼是針對所有三種操作系統以便攜方式編寫的。 – Sabuncu