Commit Graph

19251 Commits

Author SHA1 Message Date
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 bc9dec80b8 am b7ccd83f: am 39477373: Merge "Implement ZipWriter for quickly writing ZipFiles."
* commit 'b7ccd83fe3e4dda1a5b3fa1061803d6c16b4e6e3':
  Implement ZipWriter for quickly writing ZipFiles.
2015-10-16 17:13:26 +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
Sami Tolvanen ef9afe4bf8 am 2dcf97a2: am 234aedfa: am b8cc70a9: Merge "Error correction: Use libfec in fs_mgr"
* commit '2dcf97a245eb3683bb9a3f213189c80e1b279277':
  Error correction: Use libfec in fs_mgr
2015-10-16 12:08:20 +00: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 2dcf97a245 am 234aedfa: am b8cc70a9: Merge "Error correction: Use libfec in fs_mgr"
* commit '234aedfaf1e5555e77e12053ffe45439fec03a71':
  Error correction: Use libfec in fs_mgr
2015-10-16 05:59:01 +00: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 30b893ae9e Merge "libziparchive: Fix build flags for targets that build with GCC" 2015-10-15 23:41:50 +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
Adam Lesinski 1162cc8000 libziparchive: Fix build flags for targets that build with GCC
GCC pre 5.1 incorrectly warns when a C++11 struct is empty brace initialized
Struct s = {}.

Change-Id: Id5696aae32cea2d45072176c1d9abe8a4bddad68
2015-10-15 16:20:30 -07:00
Adam Lesinski 291db0470b Merge "Implement ZipWriter for quickly writing ZipFiles." 2015-10-15 22:06:28 +00:00
David Pursell ee6517eec1 am cb591aff: am 2535ea1e: am ca0d66d5: Merge "adb: non-interactive shell stdin."
* commit 'cb591aff17a6559468b5108a3577eecf2c0d7d95':
  adb: non-interactive shell stdin.
2015-10-15 21:51:36 +00:00
David Pursell cb591aff17 am 2535ea1e: am ca0d66d5: Merge "adb: non-interactive shell stdin."
* commit '2535ea1e181ea1a0de1c5199db40bede5dc32d95':
  adb: non-interactive shell stdin.
2015-10-15 21:47:05 +00: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
Tim Murray f429d37807 Reorder init.rc to avoid a kernel warning.
3.18 has a warning in dmesg that appears when the parent cpuset's cpus
and mems are changed to something other than what the child has. Reorder
init.rc to prevent this warning from appearing.

bug 24941443

Change-Id: I49d8394063b23dce03222dcc9ddccdc32bb97ea2
2015-10-15 12:38:15 -07:00
Adam Lesinski 736bdcdf1b 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.

Bug:22489826
Change-Id: Ifdabcde3ea5747dd4bcf0c4ac0eb5c394277443c
2015-10-15 12:12:39 -07: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 d94a347718 am 4311bd2c: am f73ff283: am 51bdc5bf: Merge "Update crash_reporter and metrics rc files to trigger on post-fs-data"
* commit '4311bd2c1f3e7307cbe26b0b09edc2a8ea69b3d6':
  Update crash_reporter and metrics rc files to trigger on post-fs-data
2015-10-15 04:13:11 +00:00
Steve Fung 4311bd2c1f am f73ff283: am 51bdc5bf: Merge "Update crash_reporter and metrics rc files to trigger on post-fs-data"
* commit 'f73ff283efbb9f748d30865c0bd55ef7b3085f96':
  Update crash_reporter and metrics rc files to trigger on post-fs-data
2015-10-15 04:08:11 +00: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
Bertrand Simonnet edd7d80184 am 89c76b37: am a387c9c9: am defbd39c: Merge "metricsd: Read build time values from etc/os-release.d."
* commit '89c76b3748529be9fbe31b8975ace18cde55c946':
  metricsd: Read build time values from etc/os-release.d.
2015-10-15 01:56:26 +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 89c76b3748 am a387c9c9: am defbd39c: Merge "metricsd: Read build time values from etc/os-release.d."
* commit 'a387c9c9cd7cca4aefeae2f4ece313f12a683a94':
  metricsd: Read build time values from etc/os-release.d.
2015-10-15 00:43:02 +00: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 5fd3d39fef am 60cff75f: am d8cd9994: am fcc93587: Merge "crash_reporter: Update to use the os-release.d configs"
* commit '60cff75fe3f435b07725b2186803f6a429d2dc8a':
  crash_reporter: Update to use the os-release.d configs
2015-10-14 23:45:44 +00:00
Steve Fung 60cff75fe3 am d8cd9994: am fcc93587: Merge "crash_reporter: Update to use the os-release.d configs"
* commit 'd8cd99945704c439f766aac5e3388da92543a79b':
  crash_reporter: Update to use the os-release.d configs
2015-10-14 23:40:43 +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 3be8369c10 am 1a3fb16f: am a6be63e9: am 7d691756: Merge "Make allocations use unique_ptr."
* commit '1a3fb16f0674fe3c63e48129100019fd45041895':
  Make allocations use unique_ptr.
2015-10-14 21:23:57 +00:00
Christopher Ferris 1a3fb16f06 am a6be63e9: am 7d691756: Merge "Make allocations use unique_ptr."
* commit 'a6be63e9ab11eeb8d9820ef41449e7537c278a5d':
  Make allocations use unique_ptr.
2015-10-14 21:20:06 +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
Christopher Ferris 7d691756e8 Merge "Make allocations use unique_ptr." 2015-10-14 21:10:05 +00:00
Christopher Ferris 634df89db6 Make allocations use unique_ptr.
Change-Id: I4b84b8106faeaeb61847f8f9d13fd6444f474efd
2015-10-14 14:03:29 -07:00
Sami Tolvanen 970ef1105d am 0e5a3b44: am 415f1bdc: am 4bd3148e: Merge "Revert "Error correction: Use libfec in fs_mgr""
* commit '0e5a3b44cf12b2e0fa9fefb7588332a9babeffb5':
  Revert "Error correction: Use libfec in fs_mgr"
2015-10-14 20:03:40 +00:00
Sami Tolvanen 0e5a3b44cf am 415f1bdc: am 4bd3148e: Merge "Revert "Error correction: Use libfec in fs_mgr""
* commit '415f1bdcbf22d605ea37e6eac2ed7447f61e9e53':
  Revert "Error correction: Use libfec in fs_mgr"
2015-10-14 19:57:02 +00:00
Sami Tolvanen 415f1bdcbf am 4bd3148e: Merge "Revert "Error correction: Use libfec in fs_mgr""
* commit '4bd3148e0f509efb75256a01959c9c1af9ffa845':
  Revert "Error correction: Use libfec in fs_mgr"
2015-10-14 19:52:24 +00:00
Sami Tolvanen 4bd3148e0f Merge "Revert "Error correction: Use libfec in fs_mgr"" 2015-10-14 19:47:59 +00:00
Sami Tolvanen 0923453462 Revert "Error correction: Use libfec in fs_mgr"
This reverts commit 3de3a0f351.

Change-Id: I1f121cbc4431b8d8ff146eab29832a8dda1eb8ba
2015-10-14 19:46:16 +00:00
Badhri Jagan Sridharan c81b108fbb am 8e6abbc3: am 4b542afe: am ba000511: Merge "adbd: Add os descriptor support for adb."
* commit '8e6abbc394a866d04c38a619040ce4b17038658e':
  adbd: Add os descriptor support for adb.
2015-10-14 17:44:08 +00:00
Badhri Jagan Sridharan 8e6abbc394 am 4b542afe: am ba000511: Merge "adbd: Add os descriptor support for adb."
* commit '4b542afe05beb3820b980358e5d5eaba8a46e292':
  adbd: Add os descriptor support for adb.
2015-10-14 17:37:15 +00:00
Badhri Jagan Sridharan 4b542afe05 am ba000511: Merge "adbd: Add os descriptor support for adb."
* commit 'ba0005118b78dc8ff456492bb1e16947ab26be9e':
  adbd: Add os descriptor support for adb.
2015-10-14 17:32:55 +00:00