Go to file
Spencer Low d62bce8040 adb: win32: fix key files reading/writing
The issue is that adb uses fopen() with "e" (presumably to open the file
with O_CLOEXEC), but that flag causes MSVCRT.DLL to return an error. So
when adb_auth_host.cpp goes to read or write the adbkey files, it fails.

The quick fix is to not use the "e" option on adb host code since it
isn't necessary there, compared to adbd.

An alternative fix would be to have a fopen() wrapper on Windows that
filters out the "e" option.

Bug: http://b/21806456
Bug: https://code.google.com/p/android/issues/detail?id=175077
Change-Id: I7d8ba2847dab0ed558ffe156e79093251eb253c9
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
(cherry picked from commit 9b9603148b)
2015-06-12 11:02:37 -07:00
adb adb: win32: fix key files reading/writing 2015-06-12 11:02:37 -07:00
adf libadf: enable -Werror 2015-03-10 15:14:38 -07:00
base Fix comparison between signed and unsigned error on darwin 2015-06-09 12:44:41 -07:00
cpio makebootfs: use libcutils shared libraries 2015-04-15 10:32:19 -07:00
debuggerd Change the 64 bit map address format. 2015-06-03 12:12:31 -07:00
fastboot Add a working Windows tmpfile(3) to fastboot. 2015-06-05 13:28:44 -07:00
fingerprintd Fingerprint: Use integral types for remove() 2015-06-10 14:29:17 -07:00
fs_mgr DO NOT MERGE Securely encrypt the master key 2015-05-29 17:39:16 +00:00
gatekeeperd Merge "[gatekeeperd] track gk failure record changes" into mnc-dev 2015-06-04 01:27:34 +00:00
gpttool gpttool: turn on -Werror 2014-05-05 10:30:04 -07:00
healthd resolved conflicts for merge of 6e9b28b2 to master 2015-04-15 12:15:00 -07:00
include Camera: Add new set video format/dataspace command 2015-06-08 13:21:27 -07:00
init New "selinux.restorecon" control property. 2015-06-09 13:39:17 -07:00
libbacktrace Modify the code to avoid potential deadlocks. 2015-06-01 14:10:17 -07:00
libcutils Don't use TEMP_FAILURE_RETRY on close in system/core. 2015-05-27 13:27:06 -07:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion am 8d2cd035: am 2ddb9cb1: am ed43be39: Merge "Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it\'s not needed." 2015-04-02 22:07:16 +00:00
liblog liblog: logcat: Add printable format modifier 2015-06-04 08:37:14 -07:00
libmemtrack Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libmincrypt Enable clang compilation. 2015-05-15 16:13:19 -07:00
libnativebridge LibNativeBridge: Version 2 2015-05-31 16:58:24 -07:00
libnetutils am f91c0664: am 421d01c8: am d4196ef8: Merge "Add a command to call libnetutils\' do_dhcp." 2015-04-22 03:32:13 +00:00
libpixelflinger pixelflinger: make self-contained 2015-03-19 12:34:35 -07:00
libprocessgroup Remove uses of libcxx.mk. 2015-03-27 11:24:04 -07:00
libsparse libsparse: move_chunks_up_to_len() does not account skip chunks 2015-04-08 10:10:17 +02:00
libsuspend Add TEMP_FAILURE_RETRY to libsuspend. 2015-05-18 15:53:56 -07:00
libsync Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed. 2015-04-02 14:31:07 -07:00
libsysutils Give SocketListener some FD_CLOEXEC. 2015-04-01 22:31:40 -07:00
libusbhost libusbhost: Add usb_device_get_version() 2015-04-29 13:04:10 -07:00
libutils Merge "Work around spurious epoll notifications." into mnc-dev 2015-05-30 00:43:10 +00:00
libziparchive libziparchive: fix fallocate failures 2015-06-04 13:26:29 -07:00
lmkd Lmkd: Fix unused variables 2014-11-24 20:32:42 -08:00
logcat Lower the priority of the threads in logd/logcat. 2015-06-09 12:36:45 -07:00
logd Merge "Lower the priority of the threads in logd/logcat." into mnc-dev 2015-06-09 19:42:45 +00:00
logwrapper Put in line breaks when logging to klog 2015-02-03 17:06:33 +00:00
mkbootimg Merge changes Iac33dbaa,I18fcd37d into mnc-dev 2015-05-08 15:00:14 +00:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir Merge "Move crypt commands to a different listener in vold" into mnc-dev 2015-06-04 21:32:44 +00:00
run-as Extend run-as with optional --user argument. 2015-06-10 12:09:10 -07:00
sdcard am 3d671000: am 28693983: am 1a39a994: Merge "Correct magic number on umount2" 2015-04-24 04:01:13 +00:00
toolbox Revert "Switch to toybox ls." 2015-05-15 23:31:08 -07:00
tzdatacheck Executable to run on boot that removes old tzdata if needed 2015-04-13 11:38:32 +01:00
.gitignore Don't compile abort_socket.c for host targets. It is only intended to run on Linux targets. 2009-05-26 13:23:23 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add a CleanSpec for grep/toolbox. 2015-03-22 18:04:54 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00