Commit graph

18147 commits

Author SHA1 Message Date
Elliott Hughes
998bd12c3f Merge "Fix some compiler warnings in libpixelflinger."
am: 5643f80947

* commit '5643f8094753e4672cb64ff9b4a7b307d43a80ac':
  Fix some compiler warnings in libpixelflinger.
2015-10-22 22:15:31 +00:00
Elliott Hughes
5643f80947 Merge "Fix some compiler warnings in libpixelflinger." 2015-10-22 22:11:29 +00:00
Dan Willemsen
eea68c6f98 Merge "Remove __DATE__/__TIME__ from init and debuggerd"
am: 512b0e60b4

* commit '512b0e60b4fb33ec5535c1784a99a27539787790':
  Remove __DATE__/__TIME__ from init and debuggerd
2015-10-22 22:00:20 +00:00
Dan Willemsen
512b0e60b4 Merge "Remove __DATE__/__TIME__ from init and debuggerd" 2015-10-22 21:58:05 +00:00
Dan Willemsen
30622bbb20 Remove __DATE__/__TIME__ from init and debuggerd
Keeping these means that every build has different init and debuggerd
binaries, even if the source was the same. So OTAs that don't touch
these sources would still need to update the binaries.

Both of these messages are only informational, so can be safely removed.
Bootchart already encodes build-specific information from the system
properties.

Bug: 24204119
Change-Id: I7ebd65a20a3e031e7528c9f741616e20b3cd7446
2015-10-22 13:12:18 -07:00
Andy Hung
0d3b144372 Merge "Disable sanitization for LinearTransform"
am: c52b3c08fa

* commit 'c52b3c08fa5ea3680ffcd68c2a1d0542d09f0509':
  Disable sanitization for LinearTransform
2015-10-22 19:46:20 +00:00
Andy Hung
c52b3c08fa Merge "Disable sanitization for LinearTransform" 2015-10-22 19:43:23 +00:00
Andy Hung
13c19e7703 Disable sanitization for LinearTransform
Avoids potential crash on Fugu.

Bug: 25160007
Change-Id: I2e883539e36204821f3eb97f0ae4a4854014f048
2015-10-22 11:20:45 -07:00
Elliott Hughes
cd6b53fd83 Fix some compiler warnings in libpixelflinger.
class/struct mismatch and use of 'register'.

Change-Id: I6cfe0f7fdc214c3a009eb01251f5ea9a8fdb895d
2015-10-21 18:52:17 -07:00
Elliott Hughes
9f1edaece7 Merge "Fix parameter to lseek"
am: 4a8d1255de

* commit '4a8d1255dec24716b537a742ae67c0bc5ad8a41e':
  Fix parameter to lseek
2015-10-20 21:44:21 +00:00
Elliott Hughes
4a8d1255de Merge "Fix parameter to lseek" 2015-10-20 21:36:49 +00:00
caozhiyuan
f21f0f16e7 Fix parameter to lseek
Change-Id: I9c497a3ebc24ca1db92d0b9d3d1e9ac49dc40f75
2015-10-20 14:15:31 -07:00
Elliott Hughes
5d5e8c2f4d Merge "Fix lseek argument order."
am: 56543606b5

* commit '56543606b55e1e1455ef5c0bf9aa9f4febab967f':
  Fix lseek argument order.
2015-10-20 20:37:05 +00:00
Elliott Hughes
56543606b5 Merge "Fix lseek argument order." 2015-10-20 20:28:05 +00:00
Elliott Hughes
c96de0d36e Fix lseek argument order.
Change-Id: I12feed2de8a4e0782f90609254a3e2ec66d7d98e
2015-10-20 13:18:22 -07:00
Mike Frysinger
7c4c3e9b15 Merge "crash_reporter: add missing mkdir for crash_server rule"
am: 0a85d04610

* commit '0a85d046108179c5c6ce2b70292da9ee7055801d':
  crash_reporter: add missing mkdir for crash_server rule
2015-10-20 19:25:36 +00:00
Mike Frysinger
0a85d04610 Merge "crash_reporter: add missing mkdir for crash_server rule" 2015-10-20 18:59:35 +00:00
Mike Frysinger
cb31b1db9c crash_reporter: add missing mkdir for crash_server rule
When doing a clean build, creating this file fails because the dir does
not yet exist:
echo "" > out/target/product/brilloemulator_arm/obj/ETC/crash_server_intermediates/crash_server
/bin/bash: out/target/product/brilloemulator_arm/obj/ETC/crash_server_intermediates/crash_server: No such file or directory

Bug: 24989289
Change-Id: If204dc0eb32e95ee66f97b568b4b9ae4050d3591
2015-10-20 14:28:08 -04:00
Sami Tolvanen
17e80ff5fc Merge "adb: use libfec in disable-verity"
am: ed38714426

* commit 'ed38714426b0f6bf67057dd28d6417a13807590c':
  adb: use libfec in disable-verity
2015-10-20 14:41:03 +00:00
Sami Tolvanen
ed38714426 Merge "adb: use libfec in disable-verity" 2015-10-20 14:34:29 +00:00
Sami Tolvanen
8ad80763e4 adb: use libfec in disable-verity
Use libfec to locate verity metadata and disable verity.

Needs changes from
  I02f83b0d1d4e7ef5cd5d13a37ff0b84f17e23376

Bug: 21893453
Change-Id: Ib43c352400a368664c949c7b8c9961829adf48f4
2015-10-20 13:55:24 +01:00
Elliott Hughes
3f9ad41e0a am c2492937: Merge "adb: win32: Improve Winsock error code mappings and strings"
* commit 'c24929373ec0686e0695320d8f10f3bf4fc4547e':
  adb: win32: Improve Winsock error code mappings and strings
2015-10-19 14:09:12 -07:00
Elliott Hughes
c24929373e Merge "adb: win32: Improve Winsock error code mappings and strings" 2015-10-19 18:52:59 +00:00
Spencer Low
0a79600e72 adb: win32: Improve Winsock error code mappings and strings
Improved mapping of Winsock error codes to POSIX error codes, especially
WSAECONNABORTED to EPIPE (which WriteFdExactly() looks for) when sending
to a closed socket and WSAECONNRESET to ECONNRESET when the peer resets
the connection.

Use a macro to map strerror() to adb_strerror() which handles these
POSIX error codes that the Windows C Runtime doesn't recognize.

Also:

* Unittest for adb_strerror().

* Don't trace when send() returns WSAEWOULDBLOCK because that is
  expected.

Change-Id: If46aeb7b36de3eebfbbccf5478ff5b1bb087714b
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-10-18 16:45:09 -07:00
Daniel Erat
487153014b am fb371d6a: Merge "libbinderwrapper: Add GetCallingUid() and GetCallingPid()."
* commit 'fb371d6a6bc59be3eebf089b93b5aa07ad13b5b2':
  libbinderwrapper: Add GetCallingUid() and GetCallingPid().
2015-10-16 14:49:42 -07:00
Daniel Erat
fb371d6a6b Merge "libbinderwrapper: Add GetCallingUid() and GetCallingPid()." 2015-10-16 21:43:36 +00:00
Elliott Hughes
8eb8f3ba6c am 4d7591b9: Merge "fix misuse of formatting specifiers"
* commit '4d7591b98e2bb066c1a151ef21fe5fc4bb0ed19b':
  fix misuse of formatting specifiers
2015-10-16 14:35:43 -07:00
Elliott Hughes
4d7591b98e Merge "fix misuse of formatting specifiers" 2015-10-16 21:28:36 +00:00
Steve Fung
f14e5c6bc6 am 2218720d: Merge "crash_reporter: Use os-release.d to store the crash server url"
* commit '2218720d398961dd9191141a3780d48a4df46a1b':
  crash_reporter: Use os-release.d to store the crash server url
2015-10-16 17:22:00 +00:00
Steve Fung
2218720d39 Merge "crash_reporter: Use os-release.d to store the crash server url" 2015-10-16 17:16:10 +00:00
Adam Lesinski
b7ccd83fe3 am 39477373: Merge "Implement ZipWriter for quickly writing ZipFiles."
* commit '39477373c516153e8c14c2159508eaf52bfa728e':
  Implement ZipWriter for quickly writing ZipFiles.
2015-10-16 17:06:42 +00:00
Adam Lesinski
39477373c5 Merge "Implement ZipWriter for quickly writing ZipFiles." 2015-10-16 17:02:19 +00:00
Daniel Erat
7cba9db9cd libbinderwrapper: Add GetCallingUid() and GetCallingPid().
Add methods to BinderWrapper for getting the caller's UID
and PID while in a transaction.

Bug: 24988639
Change-Id: Ibd711fc6b3d83623d4bb1060838c65aaef30d76e
2015-10-16 09:04:33 -06:00
Steve Fung
568336613f crash_reporter: Use os-release.d to store the crash server url
Since all of the other configs use os-release.d rather than
system properties, switch the crash server url as well.  This also
makes the product configuration more straightforward.

Bug: 24989289
Change-Id: Ia4b423e59937a917c882e74b110b5ea520ca6016
2015-10-16 02:25:56 -07:00
Sami Tolvanen
234aedfaf1 am b8cc70a9: Merge "Error correction: Use libfec in fs_mgr"
* commit 'b8cc70a94bcbf7b920465d92da6889f0db6d6fa5':
  Error correction: Use libfec in fs_mgr
2015-10-16 05:53:55 +00:00
Sami Tolvanen
b8cc70a94b Merge "Error correction: Use libfec in fs_mgr" 2015-10-16 05:48:39 +00:00
Adam Lesinski
ad4ad8cfc8 Implement ZipWriter for quickly writing ZipFiles.
The ZipWriter implementation exposes a stateful interface that allows
bytes of data to be streamed in as they arrive. ZipEntries can be
compressed and/or aligned on a 32-bit boundary for mmapping at runtime.

Change-Id: I43ac9e661aa5022f00d9e12b247c4314d61c441c
2015-10-15 16:27:44 -07:00
David Pursell
2535ea1e18 am ca0d66d5: Merge "adb: non-interactive shell stdin."
* commit 'ca0d66d597dde0a76adc3f5da15aedff4b6cb70b':
  adb: non-interactive shell stdin.
2015-10-15 21:41:47 +00:00
David Pursell
ca0d66d597 Merge "adb: non-interactive shell stdin." 2015-10-15 21:37:02 +00:00
David Pursell
1ed57f0dc3 adb: non-interactive shell stdin.
Non-interactive `adb shell` previously only read from the remote shell,
but we want it to write as well so interactive and non-interactive
shells can both send data. With this CL, we can now do:
  $ echo foo | adb shell cat
  foo

This is primarily usable with newer devices that support the shell_v2
features. Older devices will receive stdin but the shell will still
hang after all input has been sent, requiring user Ctrl+C. This seems
better than closing communication altogether which could potentially
miss an unpredictable amount of return data by closing too early.

Known issue: non-interactive stdin to a PTY shell isn't reliable.
However I don't think this is a common case as ssh doesn't seem to
handle it properly either. Examples:
  * echo 'echo foo' | adb shell
  * echo 'foo' | adb shell -t cat

Bug: http://b/24565284
Change-Id: I5b017fd12d8478765bb6e8400ea76d535c24ce42
2015-10-15 09:44:54 -07:00
Steve Fung
f73ff283ef am 51bdc5bf: Merge "Update crash_reporter and metrics rc files to trigger on post-fs-data"
* commit '51bdc5bf1aafee75e8021635db253cf393850e32':
  Update crash_reporter and metrics rc files to trigger on post-fs-data
2015-10-15 04:04:53 +00:00
Steve Fung
51bdc5bf1a Merge "Update crash_reporter and metrics rc files to trigger on post-fs-data" 2015-10-15 03:59:33 +00:00
Steve Fung
0d6cdfb7f0 Update crash_reporter and metrics rc files to trigger on post-fs-data
The /data directory isn't guaranteed to be mounted during the
"on boot" trigger, so switch them to using "on post-fs-data".

Bug: 24941965
Change-Id: Iee84ca0e934967cff7bc4d968d9939d398c73980
2015-10-14 18:22:32 -07:00
Bertrand Simonnet
a387c9c9cd am defbd39c: Merge "metricsd: Read build time values from etc/os-release.d."
* commit 'defbd39cebb0aa9a982d91a9900cebfbcd0d59ae':
  metricsd: Read build time values from etc/os-release.d.
2015-10-15 00:38:53 +00:00
Bertrand Simonnet
defbd39ceb Merge "metricsd: Read build time values from etc/os-release.d." 2015-10-15 00:33:01 +00:00
Steve Fung
d8cd999457 am fcc93587: Merge "crash_reporter: Update to use the os-release.d configs"
* commit 'fcc93587a19736f73a700c73a03be11b1dbde74d':
  crash_reporter: Update to use the os-release.d configs
2015-10-14 23:32:15 +00:00
Bertrand SIMONNET
eb697abf5e metricsd: Read build time values from etc/os-release.d.
This stops relying on system properties to provide build time
configuration.
Product version and id will be stored in /etc/os-release.d.
Channel will be pulled from update engine.

BUG: 24947119
Change-Id: I0972d03cd83ef622846de3cce3dec1992fcc46cd
2015-10-14 15:58:06 -07:00
Steve Fung
fcc93587a1 Merge "crash_reporter: Update to use the os-release.d configs" 2015-10-14 22:48:25 +00:00
Christopher Ferris
a6be63e9ab am 7d691756: Merge "Make allocations use unique_ptr."
* commit '7d691756e8bcdbd66889f7c07c82fbcd07a8d793':
  Make allocations use unique_ptr.
2015-10-14 21:13:32 +00:00
Sami Tolvanen
99e3a927e8 Error correction: Use libfec in fs_mgr
Use libfec to read and parse verity metadata to protect against data
corruption.

Bug: 21893453
Change-Id: I3a3543e0d999316707302b3be8735a7133d22946
2015-10-14 22:12:04 +01:00