Commit Graph

19561 Commits

Author SHA1 Message Date
Dimitry Ivanov ebe04a9b89 Merge "Add libRS.so to the list of public libraries" 2016-01-13 23:27:20 +00:00
Dimitry Ivanov cdb6fee17c Add libRS.so to the list of public libraries
Bug: http://b/26509995
Change-Id: I8c0ae3629928171d229a901cfc997780665e3ae8
2016-01-13 15:19:35 -08:00
Thierry Strudel ac5175f9a6 [DO NOT MERGE] Use FUSE_SHORTCIRCUIT if available
Use a non yet maintainer reviewed kernel patch from QCOM that greatly
improves IO speed in case it is available from the device specific
kernel headers.

Bug: 24216004
Change-Id: I4101d80082c9ad9d042dde5c620ddb309d193d52
2016-01-13 15:11:35 -08:00
Mark Salyzyn ccfb90d1aa Merge "logd: prune maintain per-id watermark"
am: 7b7b2da6b8

* commit '7b7b2da6b82d9477591a183efde262ead33812fb':
  logd: prune maintain per-id watermark
2016-01-13 20:26:54 +00:00
Mark Salyzyn 7b7b2da6b8 Merge "logd: prune maintain per-id watermark" 2016-01-13 20:23:28 +00:00
Bertrand SIMONNET 0586504e01 metricsd: Persist the metrics to disk periodically.
Every now and then (5 minutes by default), the uploader will persist the
current metrics to disk to avoid losing them in case we exit
unexpectedly (reboot or crash).
When starting up, metricsd will load the previously saved log and resume
the metrics collection from there.

Bug: 25670584
Test: Unit tests.
Test: manual: restart metricsd. The saved log is detected and parsed
correctly.
Test: manual: Send a sample to metricsd, send SIGTERM to metricsd, the
log is saved to disk, metricsd restarts and picks up the log where it
left.

Change-Id: I4cefc62c7ea1fa51333d84d8a7ba0a2e9c7fd58f
2016-01-12 15:54:11 -08:00
Elliott Hughes 6f97784152 Merge "Toolbox: |ps -t| now correctly displays the USER for threads"
am: 7a6cb3063c

* commit '7a6cb3063cb9b0e8bf85b2d6b38b9754a478a376':
  Toolbox: |ps -t| now correctly displays the USER for threads
2016-01-12 23:12:54 +00:00
Elliott Hughes 7a6cb3063c Merge "Toolbox: |ps -t| now correctly displays the USER for threads" 2016-01-12 23:07:12 +00:00
Phani (Gargey) Avadhanam 6268d4c057 Toolbox: |ps -t| now correctly displays the USER for threads
use tid to display thread information

Bug: https://code.google.com/p/android/issues/detail?id=198564
Bug: http://b/26470660
Signed-off-by: "Phani (Gargey) Avadhanam" <pgargey@codeaurora.org>
Change-Id: Ife8ce59d7b6eb6906ab39acebea18c7aee50339a
2016-01-12 15:06:09 -08:00
Mark Salyzyn 15bc48b75e Merge "logd: wrap timed entry too early, timeout immediately"
am: ae6aa1f1ed

* commit 'ae6aa1f1ed2a342b826b4e3a69267af8284ba52f':
  logd: wrap timed entry too early, timeout immediately
2016-01-12 22:04:00 +00:00
Mark Salyzyn ae6aa1f1ed Merge "logd: wrap timed entry too early, timeout immediately" 2016-01-12 21:57:50 +00:00
Tom Cherry 44e06f5f00 Merge "Remove special case handling of "ro." properties permissions"
am: b45f8179be

* commit 'b45f8179be0fc14f86d5076bdc75a58cca5ef46b':
  Remove special case handling of "ro." properties permissions
2016-01-12 20:54:46 +00:00
Tom Cherry b45f8179be Merge "Remove special case handling of "ro." properties permissions" 2016-01-12 20:36:32 +00:00
Calin Juravle 6d5017803e nativebrige: log code_cache access errors to stderr as well
115-native-bridge is a flaky tests. This will help tracing the flakiness
cause.

Change-Id: I7b8000738cd97b9cdb1055a0480ff9acbd85cae6
2016-01-12 12:24:16 -08:00
Mark Salyzyn bf5bb53a43 Merge "logd: unaligned access on security buffer"
am: 27460366e8

* commit '27460366e806f3bca0db0780b53165b82deab684':
  logd: unaligned access on security buffer
2016-01-12 19:49:23 +00:00
Mark Salyzyn 27460366e8 Merge "logd: unaligned access on security buffer" 2016-01-12 19:30:13 +00:00
Bertrand SIMONNET b6c77af499 metricsd: Cleanup on TERM signal.
metricsd should shutdown cleanly when receiving a TERM signal:
* stop the binder watcher.
* wait for the thread to quit.
* Exit cleanly.

Note: This is not directly used as we don't send SIGTERM on shutdown or
when stopping services yet.

Bug: 25670584
Change-Id: I878d1e67474c72d24790f3540470e37a23112a95
2016-01-12 10:29:40 -08:00
Mark Salyzyn 4690640760 logd: unaligned access on security buffer
Bug: 26485626
Change-Id: I990447ca59982bb2de15decda575fd0e2838b5ed
2016-01-12 10:09:31 -08:00
Elliott Hughes be6d330c18 Merge "libnetutils: Check socket() return value"
am: e4b332c7e4

* commit 'e4b332c7e4ce19e1e2e6d8fe001d8c9e1709f280':
  libnetutils: Check socket() return value
2016-01-12 04:50:38 +00:00
Elliott Hughes e4b332c7e4 Merge "libnetutils: Check socket() return value" 2016-01-12 04:46:37 +00:00
Steve Fung c490e0fe98 crash_reporter: Remove udev collector from Android build
Currently one of the udev collector tests is failing due to the lack
of gzip on the device.  Since we don't have gzip nor udev in Android builds,
remove the udev collector (and tests) from Android builds.

See http://r.android.com/184708 for discussion on removing the udev
collector completely from the source.

Bug: 25779348
Test: `/data/nativetest/crash_reporter_tests/crash_reporter_tests` passes

Change-Id: I883359ac8219f2e1fa6a78927433dbc0be295fe7
2016-01-12 01:46:51 +00:00
Ching Tzung Lin ebb00c8155 Mount debugfs earlier regardless build variant am: df2d782368 am: 905ad1d3e7
am: 4ce0a17f89  -s ours

* commit '4ce0a17f8903fda898d482e62ad6eee933bb5482':
  Mount debugfs earlier regardless build variant
2016-01-11 23:19:12 +00:00
Ching Tzung Lin 4ce0a17f89 Mount debugfs earlier regardless build variant am: df2d782368
am: 905ad1d3e7

* commit '905ad1d3e7531b49374573cd801fa92a480c97b8':
  Mount debugfs earlier regardless build variant
2016-01-11 22:51:48 +00:00
Ching Tzung Lin 905ad1d3e7 Mount debugfs earlier regardless build variant
am: df2d782368

* commit 'df2d78236834f5f6a99e88c8cd629b09d8292bb6':
  Mount debugfs earlier regardless build variant
2016-01-11 22:50:00 +00:00
Mark Salyzyn 507eb9fec2 logd: prune maintain per-id watermark
Without this change LogBuffer::prune and LogBuffer::erase
contributes 16.7% and 1.79% respectively. With this change,
they contributes 3.06 and 2.33% respectively. Pruning is
performed roughly 1 in every 255 log entries, a periodic
tamer latency spike.

Bug: 23685592
Change-Id: I6ae1cf9f3559bca4cf448efe8bcb2b96a1914c54
2016-01-11 14:46:51 -08:00
Tom Cherry c787cf291a Remove special case handling of "ro." properties permissions
Currently, properties that begin with "ro." are special cased to skip
over the "ro." part of the prefix before matching with entries in
property_contexts.  This is not strictly needed however and it is
causing complications with the separated prop files work from Bug
21852512, so it is now removed.

Bug 26425619

Change-Id: I3cd14fa2176f96b3931e5f6a50c4a7bcd3af3da6
2016-01-11 14:00:40 -08:00
Ching Tzung Lin df2d782368 Mount debugfs earlier regardless build variant
ag/835596 can be reverted after this CL is merged.

BUG:26455292
Change-Id: I453b0f1d08d822f8cd2d4d33f1c1b21f0d7f543a
2016-01-11 13:00:22 -08:00
Dimitry Ivanov ce292ad06c Merge "Make libwebviewchromium_plat_support.so public"
am: cd60e4bdd6

* commit 'cd60e4bdd61b9ab5d293c4c2ac2936a9cf28668e':
  Make libwebviewchromium_plat_support.so public
2016-01-11 18:06:06 +00:00
Dimitry Ivanov cd60e4bdd6 Merge "Make libwebviewchromium_plat_support.so public" 2016-01-11 17:59:30 +00:00
Jorge Lucangeli Obes 3cdfb3b0aa Merge "adbd: Depend only on libminijail."
am: 6fe9930722

* commit '6fe993072282c14419198e4a5bd84872637d30a5':
  adbd: Depend only on libminijail.
2016-01-09 00:15:20 +00:00
Elliott Hughes ec97cb8b50 Merge "Improve dumb terminal support (emacs is dumb)."
am: 46798ecd17

* commit '46798ecd1700c62472b9040e49a69207c5e33834':
  Improve dumb terminal support (emacs is dumb).
2016-01-09 00:09:03 +00:00
Jorge Lucangeli Obes 6fe9930722 Merge "adbd: Depend only on libminijail." 2016-01-08 23:59:32 +00:00
Elliott Hughes 46798ecd17 Merge "Improve dumb terminal support (emacs is dumb)." 2016-01-08 23:53:30 +00:00
Elliott Hughes d68ad69d1d Improve dumb terminal support (emacs is dumb).
Bug: http://b/26444032
Change-Id: Iaff4b09b613fd30ab7c4c73e096da34f37e0de07
2016-01-08 15:47:07 -08:00
Jorge Lucangeli Obes 7356218161 Merge "adbd: Remove check for set_supplementary_gids."
am: fd3c12d224

* commit 'fd3c12d22403860506da56e763cdf3c373f6cd86':
  adbd: Remove check for set_supplementary_gids.
2016-01-08 23:03:40 +00:00
Jorge Lucangeli Obes fd3c12d224 Merge "adbd: Remove check for set_supplementary_gids." 2016-01-08 22:49:00 +00:00
Alex Vakulenko 6d2c274520 Merge "metricsd: Split out the trait name from the command name"
am: c480b8e6dd

* commit 'c480b8e6dd8a18566b391a9893436311452027c1':
  metricsd: Split out the trait name from the command name
2016-01-08 22:05:25 +00:00
Alex Vakulenko c480b8e6dd Merge "metricsd: Split out the trait name from the command name" 2016-01-08 22:00:35 +00:00
Alex Vakulenko c83a5aefd6 Merge "metrics: Switch to use Binder interface to weaved"
am: b50bc6b360

* commit 'b50bc6b36007c567a097bd59f24ad1518e49923a':
  metrics: Switch to use Binder interface to weaved
2016-01-08 21:55:04 +00:00
Alex Vakulenko ba95a94e3e metricsd: Split out the trait name from the command name
weaved::Service::AddCommandHandler() and SetStateProperty() now
expect the trait name as a separate argument.

BUG: 26443877
Change-Id: I2ad587d984375a7ebd70c7dc804b446b66d6be1b
2016-01-08 13:51:15 -08:00
Alex Vakulenko b50bc6b360 Merge "metrics: Switch to use Binder interface to weaved" 2016-01-08 21:50:07 +00:00
Jorge Lucangeli Obes 218eb7c820 adbd: Depend only on libminijail.
With https://android-review.googlesource.com/#/c/195460,
adbd can depend only on libminijail, without having to include its
dependencies.

Bug: 26099611
Change-Id: I2312d8584dda88b4a4619d3100d0983fa2833ba5
2016-01-08 13:33:01 -08:00
Colin Cross ce93dd6fcc Merge "debuggerd_test: provide stub selinux/android.h"
am: 5e19382e1c

* commit '5e19382e1c585967ee07b14fbb36a8027c92c394':
  debuggerd_test: provide stub selinux/android.h
2016-01-08 20:54:20 +00:00
Colin Cross f97f11f8c1 Merge "libinit: depend on libselinux"
am: 710056efb8

* commit '710056efb8951f6cc48e5d219ca0d561c4dafc11':
  libinit: depend on libselinux
2016-01-08 20:54:11 +00:00
Bertrand Simonnet a8c931b7f5 Merge "init: Allows shutting down cleanly."
am: f9f4ee8b72

* commit 'f9f4ee8b720c0431669c63bd684626a0e4e9ff51':
  init: Allows shutting down cleanly.
2016-01-08 20:52:15 +00:00
Colin Cross 5e19382e1c Merge "debuggerd_test: provide stub selinux/android.h" 2016-01-08 20:49:47 +00:00
Colin Cross 710056efb8 Merge "libinit: depend on libselinux" 2016-01-08 20:49:42 +00:00
Bertrand Simonnet f9f4ee8b72 Merge "init: Allows shutting down cleanly." 2016-01-08 20:48:34 +00:00
Dimitry Ivanov 90bf68e8d1 Make libwebviewchromium_plat_support.so public
Add libwebviewchromium_plat_support.so to the list
of public libraries.

Bug: http://b/26461431
Change-Id: I958a1182198bf59d9b6fc818953212ce505d6bdd
2016-01-08 12:35:38 -08:00
Bertrand SIMONNET b7e03e82b8 init: Allows shutting down cleanly.
When ro.build.shutdown_timeout is set, init will send a SIGTERM signal to
all services on reboot. The normal shutdown process will continue once
all services have exited or after the shutdown timeout
(ro.build.shutdown_timeout).

If ro.build.shutdown_timeout is not set, we assume a 0s timeout.

Bug: 26216447
Test: manual: Ask to reboot. All services exit cleanly.

Change-Id: If921f6e8d87211e500ac9fa86f3e1eabe02d18cf
2016-01-08 11:12:15 -08:00