Elliott Hughes
53daee6a2b
Fix the Windows adb build.
...
It looks like we can't use clang on Windows yet because libc++ isn't ready.
So move back to GCC for the Windows host clang. Work around the mingw
printf format string problems that made us want to switch to clang in the
first place, and #include "sysdeps.h" in adb_utils.cpp to work around the
absence of lstat(2) on Windows.
Change-Id: Icd0797a8c0c2d1d326bdd704ba6bcafcbaeb742f
2015-04-19 13:17:01 -07:00
Elliott Hughes
623aa1c47a
Merge "Use escape_arg in "adb backup"."
2015-04-18 03:37:14 +00:00
Elliott Hughes
6c34bbaa68
Use escape_arg in "adb backup".
...
This doesn't fix the injection vulnerability, but it makes "adb backup"
no worse than the other commands, and lets me fix them all at once.
Bug: 20323053
Change-Id: I39843c065d9d738b6b7943b2ffd660e4a031cc36
2015-04-17 20:30:09 -07:00
Elliott Hughes
81fa3039fa
Merge "Remove yet more fixed-length buffers (and their overruns)."
2015-04-18 01:03:14 +00:00
Elliott Hughes
a7090b94c1
Remove yet more fixed-length buffers (and their overruns).
...
Bug: 20317724
Change-Id: If137fc96f5f23576ccecd388ac87afefa47337c6
2015-04-17 17:58:35 -07:00
Elliott Hughes
340e62f05e
Merge "Fix comment typo."
2015-04-18 00:17:34 +00:00
Elliott Hughes
1daf86aa20
Fix comment typo.
...
Change-Id: I2d7082c44123e90d74b2669ab29d787b9aa64863
2015-04-17 17:08:16 -07:00
Elliott Hughes
8d2abbea76
Merge "Switch adb over to clang."
2015-04-17 22:42:36 +00:00
Elliott Hughes
2083fa6b01
Switch adb over to clang.
...
Change-Id: Ib5511dcba56e80ffce6bc293d99251ccfd61c330
2015-04-17 15:27:13 -07:00
Elliott Hughes
61a004c05f
Merge "Fix more buffer overruns."
2015-04-17 22:24:27 +00:00
Elliott Hughes
5830577bd8
Fix more buffer overruns.
...
Also add some tests.
Bug: 20323050
Change-Id: I9eaf3dc04efd85206663c4cca4f8c1208620a89a
2015-04-17 15:23:31 -07:00
Elliott Hughes
adc4a8b8ce
Merge "Use PRI* macros to fix the Windows build."
2015-04-17 21:10:28 +00:00
Elliott Hughes
2940ccff86
Use PRI* macros to fix the Windows build.
...
Change-Id: Icd400be05c2bc726265832875b5a05dba7966847
2015-04-17 14:07:52 -07:00
Elliott Hughes
3538b40942
Merge "Remove various fixed-length buffers (and their overflows)."
2015-04-17 19:42:29 +00:00
Elliott Hughes
2baae3a876
Remove various fixed-length buffers (and their overflows).
...
Bug: 20323052
Bug: 20323051
Bug: 20317728
Bug: 20317727
Bug: 20317726
Bug: 20317725
Change-Id: I57a5e30a5b7867715f55cee7429aa36d7ce21484
2015-04-17 10:59:34 -07:00
Elliott Hughes
0b8ecb3290
Merge "Remove extern "C" barriers to using C++."
2015-04-17 17:31:51 +00:00
Elliott Hughes
9a22039be8
Merge "Show $ADB_VENDOR_KEYS if authentication fails."
2015-04-17 17:23:44 +00:00
Elliott Hughes
2d4121c0dc
Remove extern "C" barriers to using C++.
...
Change-Id: Ic046d6aa540738cb46b54531bc59ba3b47b0136d
2015-04-17 09:47:42 -07:00
Elliott Hughes
7be29c819b
Show $ADB_VENDOR_KEYS if authentication fails.
...
Incorrectly set $ADB_VENDOR_KEYS is the most likely cause of failed
adb connections. Make it easier to debug such problems by including
the value in use in the error message.
Bug: 20165551
Change-Id: I64c1d98ae6d3fb40eea9e1f0ddcfcf4f2d9d7318
2015-04-16 22:54:44 -07:00
Dan Albert
a4802ca08b
Merge "Move usb_osx to C++."
2015-04-17 04:37:47 +00:00
Dan Albert
c4f8fa7b36
Merge "Link libraries needed for Darwin adb tests."
2015-04-17 04:37:41 +00:00
Elliott Hughes
d393e71f39
Merge "Move sysdeps_win32 to C++."
2015-04-17 03:04:43 +00:00
Dan Albert
7447dd05bd
Move usb_osx to C++.
...
Change-Id: I21673211a702cc4f31d4311c36e2a4b22e55fac8
2015-04-16 19:20:40 -07:00
Dan Albert
f8d6b9b1ef
Link libraries needed for Darwin adb tests.
...
Change-Id: I1c3c3a7bbd3824f5f3a37ee80c24d1c2a9b98748
2015-04-16 19:13:58 -07:00
Elliott Hughes
2cba9405f9
Merge "[MIPS] Fast android_memset for Mips64, Mipsr6"
2015-04-17 02:07:32 +00:00
Duane Sand
1ef9ccd772
[MIPS] Fast android_memset for Mips64, Mipsr6
...
Fix broken mips64 build by replacing mips32r2-only android_memset.S.
Use HW-bonded pairs of 64-bit stores to fill 128 bits/cycle.
Rely on HW automatic cache prefetch optimizations.
Software cache prefetching is counterproductive on next mips cores.
New method is coded in C, and also works okay on non-Mips architectures.
Change-Id: Id7153a8fe11538fe25287e101375661b0e99e2a2
2015-04-16 18:26:22 -07:00
Elliott Hughes
a2f2e56796
Move sysdeps_win32 to C++.
...
Change-Id: I27ca41b64d62bb3611b3a39a5c3bb4377d0773bc
2015-04-16 16:47:02 -07:00
Elliott Hughes
34d68c2b57
Merge "Switch usb_linux_client to C++."
2015-04-16 21:39:31 +00:00
Elliott Hughes
2acec9153e
Switch usb_linux_client to C++.
...
Change-Id: I8172e81e6c4665aa16e9e8e0c33b048dbb9ad848
2015-04-16 14:38:37 -07:00
Greg Hackmann
0e2d6015bc
Merge "Revert "cutils: add OS-independent endian.h""
2015-04-16 21:29:44 +00:00
Greg Hackmann
bf7f28a415
Revert "cutils: add OS-independent endian.h"
...
This reverts commit c3bac8b671 .
2015-04-16 14:28:58 -07:00
Elliott Hughes
55f6bbf06a
Merge "Move get_my_path_darwin to C++."
2015-04-16 20:31:25 +00:00
Elliott Hughes
1a4d85a5e8
Move get_my_path_darwin to C++.
...
As long as we have C in here, we can't use C++ in our headers.
Change-Id: Ibccaa77a5af506dc504aa9c39c8dca5dcdbeccab
2015-04-16 13:24:58 -07:00
Greg Hackmann
88e03449de
Merge "cutils: add OS-independent endian.h"
2015-04-16 20:06:40 +00:00
Elliott Hughes
710fd65e5f
Merge "Don't try to read /system/default.prop."
2015-04-16 19:57:35 +00:00
Yabin Cui
51e32b52a3
Merge "Move trace.h to stdatomic."
2015-04-16 18:35:43 +00:00
Mark Salyzyn
bb643ccb5d
Merge "logd: propagate ::log status"
2015-04-16 18:22:58 +00:00
Greg Hackmann
c3bac8b671
cutils: add OS-independent endian.h
...
cutils/endian.h provides the helpers defined in endian(3), either by
pulling in the OS's built-in endian.h (where available) or recreating
them using GCC builtins.
Change-Id: Ic8965f67e1efdc03f884dbe6b7fe0276f840e4fc
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-04-16 11:12:02 -07:00
Yabin Cui
a8ac32c781
Move trace.h to stdatomic.
...
Bug: 20262261
Change-Id: Idaf984786804eb76c285f38b11abbbc0d3706509
2015-04-16 10:41:16 -07:00
Mark Salyzyn
96647a6880
Merge "libcutils: fs_config must use O_BINARY"
2015-04-16 17:05:35 +00:00
Mark Salyzyn
4232b378e7
libcutils: fs_config must use O_BINARY
...
Bug: 19908228
Change-Id: I3273cf99b320941f9530a015c9e582af72469acb
2015-04-16 08:44:33 -07:00
Mark Salyzyn
93e16dca64
Merge "libcutils: fs_config: winsdk_tools build fix"
2015-04-16 15:36:28 +00:00
Mark Salyzyn
fd5b425b6e
libcutils: fs_config: winsdk_tools build fix
...
Bug: 19908228
Change-Id: Ia725d20ca4f8a87deec63b6c661f6a09c8671231
2015-04-16 08:32:25 -07:00
Mark Salyzyn
202e153f94
logd: propagate ::log status
...
Add a return value for the ::log() methods, this allows
us to optimize the wakeup for the readers to only occur
when the log message is actually placed.
This is for a future where we may dedupe identical log
messages, filter out log messages, and certainly if we
filter the messages out with an internal logd check of
__android_log_is_loggable().
Change-Id: I763b2a7c29502ab7fa0a5d5022c7b60244fcfde4
2015-04-15 19:43:28 -07:00
Mark Salyzyn
c47b0d5278
Merge "libcutils: drop use of mmap"
2015-04-16 02:35:10 +00:00
Mark Salyzyn
7977cc63b1
libcutils: drop use of mmap
...
- Causes a build break for MAC and Windows
Bug: 19908228
Change-Id: I9d69967aa988c9ca202805593fa846cb670101cf
2015-04-15 19:28:36 -07:00
Elliott Hughes
95f709a9f5
Don't try to read /system/default.prop.
...
It doesn't exist. We use /system/build.prop.
Change-Id: Ie635f9b3cc65de807f128339199b853db5a8eb2f
2015-04-15 17:05:23 -07:00
Colin Cross
d4dc1951e6
Merge "libsparse: move_chunks_up_to_len() does not account skip chunks"
2015-04-16 00:04:41 +00:00
Mark Salyzyn
48257704b9
Merge "libcutils: add fs_config_generate"
2015-04-15 23:50:23 +00:00
Mark Salyzyn
0a9f6c8c65
Merge "libcutils: fs_config read from file"
2015-04-15 23:49:11 +00:00