Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Windows source code for Android adb?

I am trying to understand how Android adb.exe works on Windows. I found the following source code branch:

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

However, based on a quick glance within the adb.cpp file, this seems to be the Linux branch. Where is the Windows version? (Or am I wrong?)

PS: Information on how one could navigate android.googlesource.com will also be appreciated.

like image 901
Sabuncu Avatar asked Dec 29 '25 01:12

Sabuncu


1 Answers

As stated by Romain Guy:

It's in the Android source tree: https://android.googlesource.com/platform/system/adb

Inside adb.cpp there are some references to Windows like this one:

// 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

Here is explained how to build Android SDK or just the tools (including adb) for Windows: https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt

like image 192
Mattia Maestrini Avatar answered Jan 01 '26 17:01

Mattia Maestrini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!