Commit graph

11348 commits

Author SHA1 Message Date
Dan Albert
5d8a5ade62 Merge "Add a pre-C++11 constexpr compatibility macro." 2014-11-20 20:13:20 +00:00
Dan Albert
e4c649c9fc Add a pre-C++11 constexpr compatibility macro.
Needed for cases where something should be constexpr if possible, but
not being constexpr is fine if in pre-C++11 code (such as a const
static float member variable).

Bug: 18466763
Change-Id: I635d062575ba2fbc4cbe3a89f730128c404d95e1
2014-11-20 10:47:55 -08:00
Elliott Hughes
4c2aec09cf am aa3e17e1: Merge "Return path including executable instead of without"
* commit 'aa3e17e1b685218cddeb7a05e68ff1721a322147':
  Return path including executable instead of without
2014-11-20 18:43:12 +00:00
Elliott Hughes
1bc314d3dd am 51184950: Merge "Disable vendor id filtering for Linux."
* commit '511849507a7b2f4e259f6763c62f0c8619977b06':
  Disable vendor id filtering for Linux.
2014-11-20 18:36:18 +00:00
Elliott Hughes
aa3e17e1b6 Merge "Return path including executable instead of without" 2014-11-20 18:35:12 +00:00
Elliott Hughes
511849507a Merge "Disable vendor id filtering for Linux." 2014-11-20 18:28:06 +00:00
Johan Redestig
80bf9a456e notify: dynamically allocate filename buffer
use asprintf to dynamically allocate filename buffer
rather than just reserving 512 bytes on the stack to
avoid potential overflow.

Change-Id: Ieeb9c6c2e5f97a9574f8128d84eba0b8efdb7263
2014-11-20 15:25:18 +01:00
Al Sutton
26b53bb75e Return path including executable instead of without
The previous implementation returned the path the executable was in instead
of returning the path including the executable (i.e. it returned ...bin
instead of ...bin/executable). This is not what the original methods did
and caused the process forking of adb to fail.

This patch corrects the implementation.

Change-Id: Ib58497cab35706041f170c1bc97c31fd5d965f90
2014-11-20 13:33:57 +00:00
Elliott Hughes
55664906a8 Disable vendor id filtering for Linux.
It's time we switched to blacklisting any problematic devices rather than
slowly whitelisting the entire world. This seems to work for me, but let's
see how other people get on before coming back to actually remove the list.

We'll also need to find a Mac to test the equivalent Mac change.

Change-Id: I2bf583a27f9a3f98ef006ea62b906a4f89960507
2014-11-19 22:07:34 -08:00
Yabin Cui
ebd8ba674d am 46ee85fc: Merge "kill HAVE_PREAD"
* commit '46ee85fcc301471aff9d95a817599349570dcef8':
  kill HAVE_PREAD
2014-11-20 05:21:54 +00:00
Yabin Cui
46ee85fcc3 Merge "kill HAVE_PREAD" 2014-11-20 05:15:04 +00:00
Yabin Cui
70160f4454 kill HAVE_PREAD
Bug: 18397613
Change-Id: I3990bd0f95cf38c5a9229180a1ddc699941892fc
2014-11-19 20:47:18 -08:00
Nick Kralevich
477fd01483 logd: throttle SELinux denials to 20/sec
automerge: 83d8556

* commit '83d85563c51fa39cb61b836302a8c26fe0e2ace6':
  logd: throttle SELinux denials to 20/sec
2014-11-19 22:45:31 +00:00
Nick Kralevich
421e2d55c8 am 606bb5f2: Merge "logd: throttle SELinux denials to 20/sec"
* commit '606bb5f2e5f2913d5cb30ed87dd18da23dda1705':
  logd: throttle SELinux denials to 20/sec
2014-11-19 22:13:38 +00:00
Nick Kralevich
83d85563c5 logd: throttle SELinux denials to 20/sec
Impose a limit of 20 selinux denials per second. Denials beyond
that point don't add any value, and have the potential to cause
crashes or denial of service attacks.

Do some other misc cleanup while I'm here.

Bug: 18341932

(cherry picked from commit c234a1b879)

Change-Id: Ic5c96003db82e504baf301e87be5c8c539c73c2a
2014-11-19 14:06:53 -08:00
Nick Kralevich
606bb5f2e5 Merge "logd: throttle SELinux denials to 20/sec" 2014-11-19 22:02:15 +00:00
Elliott Hughes
2097e9a149 am 20860a28: Merge "Fix building on modern versions of Xcode and OS X."
* commit '20860a28c5be013da111cb794c92dae02aa30089':
  Fix building on modern versions of Xcode and OS X.
2014-11-19 21:55:28 +00:00
Elliott Hughes
20860a28c5 Merge "Fix building on modern versions of Xcode and OS X." 2014-11-19 21:48:32 +00:00
Nick Kralevich
c234a1b879 logd: throttle SELinux denials to 20/sec
Impose a limit of 20 selinux denials per second. Denials beyond
that point don't add any value, and have the potential to cause
crashes or denial of service attacks.

Do some other misc cleanup while I'm here.

Bug: 18341932
Change-Id: I6125d629ae4d6ae131d2e53bfa41e1f50277d402
2014-11-19 13:35:36 -08:00
Al Sutton
f456d47c50 Fix building on modern versions of Xcode and OS X.
Recent versions of XCode fail to compile the adb and fastboot binaries due to
two functions being deprecated in 10.9 (GetCurrentProcess and
ProcessInformationCopyDictionary), and the use of -Werrror.

This patch replaces the method implementations which use calls to methods
deprecated in the 10.9 SDK with versions which only call non-deprecated methods.

Change-Id: I855bf26aff45093ca9022924f3ecd1b80f2305a8
2014-11-19 19:50:48 +00:00
Jeremy Chang
868cf42557 adb: Add USB vendor ID for Ubiquiti Networks, Inc.
Change-Id: Iedb86b9ff8dc55aea5d0df201a98c96418002207
Signed-off-by: Jeremy Chang <jeremy@ubnt.com>
2014-11-19 22:13:24 +08:00
Yabin Cui
26d2b64ba8 am 81906d4b: Merge "kill HAVE_MADVISE"
* commit '81906d4b0c508dc308606ca232eaa055255abd1e':
  kill HAVE_MADVISE
2014-11-19 04:35:27 +00:00
Yabin Cui
81906d4b0c Merge "kill HAVE_MADVISE" 2014-11-19 04:25:59 +00:00
Yabin Cui
745c5f6ad0 kill HAVE_MADVISE
Change to avoid "unused parameter" warning. 

Bug: 18397020
Change-Id: I4b26de55314c78237daead8e873385b97cafe4d4
2014-11-19 04:03:27 +00:00
Yabin Cui
ad450e6361 am c8ad1809: Merge "kill HAVE_MADVISE"
* commit 'c8ad180983fb50c89179b7895896ad1f35cb885a':
  kill HAVE_MADVISE
2014-11-19 03:30:45 +00:00
Yabin Cui
c8ad180983 Merge "kill HAVE_MADVISE" 2014-11-19 03:17:46 +00:00
Yabin Cui
819b480b93 kill HAVE_MADVISE
Bug: 18397020
Change-Id: Ibc8d886d729c51932a403531888214de4e541452
2014-11-18 18:15:40 -08:00
Elliott Hughes
eda507e492 am 0655d38b: Merge "Revert "adb: Add USB vendor ID for Honeywell""
* commit '0655d38b0c998f294ad52f1f8e84233a48046e97':
  Revert "adb: Add USB vendor ID for Honeywell"
2014-11-18 21:23:58 +00:00
Elliott Hughes
0655d38b0c Merge "Revert "adb: Add USB vendor ID for Honeywell"" 2014-11-18 21:15:44 +00:00
Elliott Hughes
3e01bb85d6 Revert "adb: Add USB vendor ID for Honeywell"
This reverts commit 8c4c8e8988.

Change-Id: Ia1cad862f42e5bea3174ed2cc0eea5232fc0a858
2014-11-18 21:15:28 +00:00
Elliott Hughes
450c4ad097 am 16068830: Merge "toolbox: enable mkswap to work on block devices"
* commit '16068830444361ab65cbc9804b76e2d415aff9a2':
  toolbox: enable mkswap to work on block devices
2014-11-18 19:19:49 +00:00
Elliott Hughes
1606883044 Merge "toolbox: enable mkswap to work on block devices" 2014-11-18 19:11:56 +00:00
Andrew Boie
d90615cefd toolbox: enable mkswap to work on block devices
Change-Id: I9b71ca3fa09ffbe12dcc4d04229edab80851db4d
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2014-11-18 10:42:14 -08:00
Elliott Hughes
23ac318d56 am 91cb2cb3: Merge "toolbox: indicate why swap{on|off} failed"
* commit '91cb2cb3411472a567c8ec4e8dad9d3a1ebc1dca':
  toolbox: indicate why swap{on|off} failed
2014-11-18 18:06:06 +00:00
Elliott Hughes
91cb2cb341 Merge "toolbox: indicate why swap{on|off} failed" 2014-11-18 17:57:59 +00:00
Yabin Cui
0aa45710d5 am 6a56ad28: Merge "kill HAVE_TERMIO_H"
* commit '6a56ad28c385ad799f25a1b90213b2367fcb9e22':
  kill HAVE_TERMIO_H
2014-11-18 02:32:53 +00:00
Yabin Cui
6a56ad28c3 Merge "kill HAVE_TERMIO_H" 2014-11-18 02:22:38 +00:00
Yabin Cui
d325e866c4 kill HAVE_TERMIO_H
Bug: 18398307
Change-Id: Idbb89a074cdf16869cae3f667e89472781f37a5f
2014-11-17 18:19:11 -08:00
Elliott Hughes
83ebca0290 am ac252357: Merge "Remove atomic-inline.h."
* commit 'ac252357bb15cdeb7d4637a1cfeaa76810514715':
  Remove atomic-inline.h.
2014-11-17 23:16:44 +00:00
Elliott Hughes
ac252357bb Merge "Remove atomic-inline.h." 2014-11-17 23:08:42 +00:00
Elliott Hughes
c3914d2be2 Remove atomic-inline.h.
Change-Id: I3ac0229b9c516744e6a9c9d9e795b43bc9c5636b
2014-11-17 14:38:56 -08:00
Bernhard Rosenkränzer
758aeb7dad Make mkdirAndChown do what it claims to do
Currently, mkdirAndChown takes parameters for mode, uid and gid, but
ignores them and hardcodes 0750, AID_SYSTEM, AID_SYSTEM instead.
This doesn't matter much because so far its only invocation passes
exactly those values as parameters -- but clang complains about unused
parameters.

Might as well make the function do what it claims to do.

Change-Id: I5a8056be3278a0c5d0a576dbc061288aa0956a35
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2014-11-17 20:46:00 +01:00
Elliott Hughes
ba96de5f65 am 3ef0460e: Merge "Remove the error-prone TARGET_CPU_SMP from system/core."
* commit '3ef0460e86f2a7c5442bcf424b8e83fdfb8e3669':
  Remove the error-prone TARGET_CPU_SMP from system/core.
2014-11-17 19:40:16 +00:00
Elliott Hughes
3ef0460e86 Merge "Remove the error-prone TARGET_CPU_SMP from system/core." 2014-11-17 19:29:04 +00:00
Elliott Hughes
e9ca709a73 Remove the error-prone TARGET_CPU_SMP from system/core.
This means that code that uses libcutils no longer has to ensure that
it's set ANDROID_SMP in the calling code's Android.mk for this to
function correctly.

Change-Id: I80c7ff170cd621106f34d6b74689d6b4f03e4eb7
2014-11-17 11:16:59 -08:00
Nick Kralevich
33aacf1963 Introduce "adb keygen"
automerge: 86c9e5f

* commit '86c9e5f7e20a3f1712038ce642628c2e1e866434':
  Introduce "adb keygen"
2014-11-17 18:56:25 +00:00
Marco Nelissen
52b8898056 am e11d81b3: Merge "Update calls to IInterface::asBinder()"
* commit 'e11d81b37c119ec3d67c1fe60779d510d21e6a14':
  Update calls to IInterface::asBinder()
2014-11-17 18:24:57 +00:00
Marco Nelissen
e11d81b37c Merge "Update calls to IInterface::asBinder()" 2014-11-17 18:14:37 +00:00
Marco Nelissen
99f00d5ff3 Update calls to IInterface::asBinder()
to use the new static version.

Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a
2014-11-17 10:06:42 -08:00
Dan Albert
1ef4cf5f6d am e90159b0: Merge "Move debuggerd to libc++."
* commit 'e90159b070a773fa33fdbb2aaf2f84ac0189f699':
  Move debuggerd to libc++.
2014-11-16 09:57:19 +00:00