summaryrefslogtreecommitdiffstats
path: root/host
Commit message (Collapse)AuthorAgeFilesLines
* Stop checking HOST_OSDan Willemsen2015-08-281-21/+0
| | | | | | | LOCAL_MODULE_HOST_OS is now enforced, so these can always be defined. Bug: 23566667 Change-Id: I098aaa5e4d346ef346afff3fa641106870aab363
* Remove USE_MINGW, whitelist modules for windowsDan Willemsen2015-08-281-0/+3
| | | | | Bug: 23566667 Change-Id: I944f48aea13abef0efa157c82ef7c91a63429eb5
* AdbWinUsbApi.dll: fix race condition crash in WinUsb.dllSpencer Low2015-08-1218-190/+758
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a race condition in AdbWinUsbApi.dll where AdbCloseHandle() of an interface would clobber the WinUsb handles, causing a concurrent Adb{Read,Write}EndpointSync() to crash. The fix is to make AdbCloseHandle(endpoint) set a flag to prevent future IOs from starting up, abort any pending IOs, and wait for the pending IOs to abort. Adb{Read,Write}EndpointSync() participates in this scheme. There is still a race condition if the caller calls AdbCloseHandle(interface) before calling AdbCloseHandle(endpoint). No AOSP code does this and assuming that this never happens simplifies the fix. This fix also ignores Adb{Read,Write}EndpointAsync() (the async APIs) since those APIs are unused by AOSP. This fix should not affect devices whose vendor supplies Windows USB drivers that use a 'legacy kernel driver'. This causes AdbWinApi.dll to call a 'legacy kernel driver' instead of AdbWinUsbApi.dll (which uses WinUsb.dll which uses a kernel driver included with Windows). The source code for the 'legacy kernel driver' was deleted from AOSP over 4 years ago, so it is probably deprecated (I don't know the official status of it). Even so, I wouldn't be surprised if some modern 3rd party devices were still using the legacy driver or a similar driver derived from the original source code. Also in this change: - Added a test case to adb_winapi_test that reproduces the race condition and verifies the fix. - adb_winapi_test misc: more strictly check return values and error codes, symbolize some dumped data to make things more readable, disable old test code that looked for specific hardware, test AdbGetInterfaceName() the same way adb uses it, fix dumping of initial "handshake". - Increased AdbWinUsbApi.dll file version info from 2.0.0.0 to 2.0.0.1. - Update AdbWinUsbApi.dll in prebuilt tree. - Include AdbWinUsbApi.pdb (debugging symbols) so the DLL can be debugged in the future (or at least so crash addresses can be manually symbolized). - Update AdbWinApi.dll, AdbWinUsbApi.dll, adb_winapi_test.exe build environments to WDK 7.1.0, which seems to be the publicly available closest version to what built the last version of these files. This entailed modifying SOURCES files to use USE_NATIVE_EH=1 instead of USER_C_FLAGS=/EHsc, removing /Wp64, manually setting DLL base addresses to the old address, using DEBUG_CRTS=1 to pickup the debug ATL for checked builds. - Update BUILDME.TXT files with up-to-date instructions. - For source files that are already majority CRLF, make the whole file CRLF. - Update SOURCES to explicitly set Windows Vista as the target. This means that future rebuilders don't need to worry as much about their build environment. Bug: https://code.google.com/p/android/issues/detail?id=161890 Change-Id: I30a4e2ff3919929001c2319c4bb80354f7bcfda0 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
* Use the right variable for evaluating 'windows'.Dan Albert2015-05-041-1/+1
| | | | | | HOST_PREBUILT_TAG is for the building OS, not the target OS. Change-Id: If97a826548a28dcb268a3836c925529730c45642
* Make adb_api.h safe to include first.Dan Albert2015-02-241-0/+3
| | | | Change-Id: I0fd2e3c52c69f67d7cd2b24ffcfa764613817b6f
* Android SDK Windows USB driver: Project Tango pidSiva Velusamy2014-09-101-1/+15
| | | | Change-Id: Id4a366755390338d9b8add35ad2df66eda9f2324
* Android USB driver: support 4EE7 (Nexus adb only).Raphael Moll2014-06-061-1/+3
| | | | | Bug: b/14988808 Change-Id: Ib855f063c949649c059da09483f782d09fbf3d2c
* Host multilib build.Ying Wang2014-05-201-19/+23
| | | | | Bug: 13751317 Change-Id: I05ad98c1f3f55e3288fbcc169311a7685b872fd9
* Android SDK Windows USB driver: Glass PID.Raphael Moll2014-01-291-1/+10
| | | | Change-Id: Id190e9e83c48bf6b3df08707efdbf154720c3a78
* SDK: Windows USB driver rev 8.Raphael Moll2013-07-101-15/+3
| | | | | | | | Fixes for Nexus 7 and generic PIDs. SDK Bugs: b/6494263, b/9322844 Change-Id: I40ea1d1abdb557dd7c67873ac592cbc2320754d5
* Windows USB Driver for generic, rev 7Raphael Moll2012-08-281-1/+5
| | | | Change-Id: Ie646d5709108ffa69d9729cfe6e5674a47e1d4ff
* Windows USB Driver for generic + Q, rev 7.Raphael Moll2012-08-272-8/+30
| | | | Change-Id: I6a6bf4b89405ebd51c72685c85a1b894de0e6897
* Update SDK Windows USB driver definition.Raphael Moll2012-06-221-1/+14
| | | | Change-Id: Ia4ad0453599476eea72fcd90f7c200ec57490d3f
* SDK: updating android Windows USB Driver.Raphael2011-10-271-25/+16
| | | | | | This makes it match Change I5508492c. Change-Id: I191e77e2704efcecf509469f03d60eb395ecad2d
* USB driver: update to public rev 4Raphael2010-12-061-52/+9
| | | | Change-Id: Icecde3b08876a939db3f170ba9a4b23260df336f
* am a279716d: am 0e5e7996: Merge from open-source masterJean-Baptiste Queru2010-12-0235-5276/+0
|\ | | | | | | | | * commit 'a279716dd7610b1702d8302824ca6c2a0326db6a': Remove obsolete USB Driver "legacy" sources & files.
| * Remove obsolete USB Driver "legacy" sources & files.Raphael Moll2010-12-0135-5276/+0
| | | | | | | | Change-Id: I4357c1417e6472395b803b799f43aae18f845be9
* | Merge commit '4e75b80a' into mergeRaphael2010-11-081-0/+3
|\| | | | | | | | | | | | | Conflicts: host/windows/usb/android_winusb.inf Change-Id: I64a3be958e85302d0a6213d1c46ff9e7214ef352
| * Fix DOS end-of-lines in winusb INF file.Raphael Moll2010-11-051-11/+11
| | | | | | | | | | | | | | | | The file has a mix of unix and DOS-mode end-of-lines. This CL just fixes the end-of-line to make it a consistent DOS-mode. There is no change to the actualy content. Change-Id: I6635ec87907f68e1d34c807f712723804eb0e698
* | Add Samsung VID/PID to android_winusb.inf fixing bug 2687489Vladimir Chtchetkine2010-05-181-11/+45
|/ | | | Change-Id: I31baae3400ef8ef04270fd17352ee81cd244d779
* Add new N1 PID to Windows USB driver INF.Raphael2010-02-041-0/+2
| | | | | | SDK Bug: 2418399 Change-Id: I76c25a61bc67e07ebf82209c8172dcfe93eff2eb
* Add Dell Mini5 to the USB driver.Xavier Ducrohet2010-01-211-0/+6
| | | | Change-Id: If0758e6dc43541fd2877e7d00ff3abf9d354a299
* Fixedvchtchetkine2009-12-111-6/+12
|
* Add sholes to Windows USB Driver in Eclair.Raphael2009-10-081-5/+19
| | | | | | SDK BUG 2132512 Change-Id: I935c71f2fb689ed8e493e3375ad676f6f66a3f76
* Reformat .inf file for better reading and remove redundanciesvchtchetkine2009-08-121-38/+37
|
* BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDKRaphael2009-08-111-1/+2
|
* Complete AdbWinApi split: submit prebuild binaries.vchtchetkine2009-08-102-0/+0
| | | | | | | | As the result of the split, now we have two DLLs that deal with USB driver connection on Windows. AdbWinApi.dll deals with legacy driver and LoadLibrary AdbWinUsbApi.dll on condition that WINUSB.DLL is installed on user's machine. When both DLLs must be installed in the same location in SDK. BUG 2033924
* Update ignore file to include new ignoring patternsvchtchetkine2009-08-101-1/+4
|
* Split AdbWinApi.dll into two dlls to remove dependency on WINUSB.DLLvchtchetkine2009-08-0725-24/+700
| | | | | | | | | Move all WINUSB-dependent functionality into AdbWinUsbApi.dll in order to enable ADB on condition that WINUSB has not been installed. In this patch set new file (adb_winusb_api.h) has been added where I moved typedef that broke the build. Aso, adb_api.cpp and AdbWinApi.cpp were changed to include that new header file. BUG 2033924
* Revert "Split AdbWinApi.dll into two dlls to remove dependency on WINUSB.DLL"Raphael2009-08-0624-674/+24
| | | | | | which breaks the Windows SDK on Donut. This reverts commit f855c4e8469e31114fccca4c28aeb01a806a9a48.
* Split AdbWinApi.dll into two dlls to remove dependency on WINUSB.DLLvchtchetkine2009-08-0524-24/+674
| | | | | Move all WINUSB-dependent functionality into AdbWinUsbApi.dll in order to enable ADB on condition that WINUSB has not been installed.
* Move legacy driver binaries to the legacy driver directoryvchtchetkine2009-07-308-0/+0
|
* Add .inf file needed for WinUsb framework installationvchtchetkine2009-07-303-0/+346
|
* Bump up AdbWinApi.dll version and submit prebuilt AdbWinApi.dllvchtchetkine2009-07-302-6/+6
|
* Make changes to enable driver build in new locationvchtchetkine2009-07-292-4/+8
|
* Copy legacy driver source code as a sample for custom USB driversvchtchetkine2009-07-2927-0/+5020
| | | | | | | | The primary usage for this code is to provide vendors / customers who for some reasons are not satisfied with WinUsb, with a sample custom driver code that is compliant with our AdbWinApi.dll. So vendors / customers can build their own custom USB driver that can be recognized by AdbWinApi, and can be accessible from adb.exe
* Add classes encapsulatinglegacy USB APIvchtchetkine2009-07-2810-27/+1006
| | | | Added implementation for endpoints and overlapped I/O support for legacy API support.
* Fix SDK build break caused by including legacy support header into main API ↵vchtchetkine2009-07-282-2/+1
| | | | | | | | header usb_windows.c doesn't build with adb_legacy_api.h included into adb_api.h Since adb_legacy_api.h is not used anywhere outside AdbWinApi.dll project, the simplest fix would be to remove its inclusion from adb_api.h
* Refactor API classes to support both, WinUsb and Legacy APIvchtchetkine2009-07-2520-687/+1578
| | | | | | | | To support both, WinUsb and Legacy driver APIs we need to abstract classes that depend on driver API details and then implement two sets of the actual classes: one for WinUsb, and another for the Legacy drivers, so we can choose in runtime which objects should be instantiated, depending on what type of driver we have underneath this API.
* Add test applicationvchtchetkine2009-07-237-2/+602
|
* Add build instructions, ignore list and remove obsolete .sln filevchtchetkine2009-07-233-53/+26
|
* Delete files irrelevant for the new driver modelvchtchetkine2009-07-2351-9882/+0
| | | | :x
* Refactor ADB API dll to support WinUsbvchtchetkine2009-07-2230-4433/+4032
|
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-0/+0
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0395-0/+14679
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0395-14679/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-106-5/+17
|
* auto import from //branches/cupcake/...@127436The Android Open Source Project2009-01-222-0/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-202-0/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-1517-397/+673
|