Commit graph

17971 commits

Author SHA1 Message Date
Sami Tolvanen
8e0db822d8 am c6ca7a5a: am eccf0a45: Merge "utils: add pwrite64 to Compat.h for Mac"
* commit 'c6ca7a5a31e07e26dac45fe0d8199fd75be721f3':
  utils: add pwrite64 to Compat.h for Mac
2015-09-28 16:06:42 +00:00
David Pursell
edf0728e2d am a36f4d68: Merge "adb: bump server version to prevent feature mismatch."
* commit 'a36f4d680a02dbf2bf2166f148f4c5200ec1d8f4':
  adb: bump server version to prevent feature mismatch.
2015-09-28 16:06:24 +00:00
David Pursell
5d1a943dc4 am 002f9d5c: Merge "adb: fix adbd feature parsing for no features."
* commit '002f9d5c70058e8db78a61d65384fd9510cf4ffd':
  adb: fix adbd feature parsing for no features.
2015-09-28 16:06:22 +00:00
David Pursell
a36f4d680a Merge "adb: bump server version to prevent feature mismatch." 2015-09-28 16:03:21 +00:00
Sami Tolvanen
c6ca7a5a31 am eccf0a45: Merge "utils: add pwrite64 to Compat.h for Mac"
* commit 'eccf0a4502293d628152888be85d1cd6fa0b4751':
  utils: add pwrite64 to Compat.h for Mac
2015-09-28 16:02:35 +00:00
David Pursell
002f9d5c70 Merge "adb: fix adbd feature parsing for no features." 2015-09-28 16:02:10 +00:00
Sami Tolvanen
eccf0a4502 Merge "utils: add pwrite64 to Compat.h for Mac" 2015-09-28 15:56:25 +00:00
Mark Salyzyn
936d65f59b am cb2ab20d: am 87122ce1: Merge "logd: increase dgram_max_qlen to 600"
* commit 'cb2ab20d480cdf488e5b5bf37dc55ca7f0ddee67':
  logd: increase dgram_max_qlen to 600
2015-09-28 15:54:05 +00:00
Sami Tolvanen
8731d30085 utils: add pwrite64 to Compat.h for Mac
Compat.h has lseek64 and pread64, but it's missing pwrite64.

Change-Id: I02b4adf5a5e15e55e008ff1ba8113a75faf1c4e9
2015-09-28 16:52:38 +01:00
Mark Salyzyn
cb2ab20d48 am 87122ce1: Merge "logd: increase dgram_max_qlen to 600"
* commit '87122ce1d60dd6fbc18e747d976db734d502f2bf':
  logd: increase dgram_max_qlen to 600
2015-09-28 15:50:02 +00:00
Mark Salyzyn
87122ce1d6 Merge "logd: increase dgram_max_qlen to 600" 2015-09-28 15:43:12 +00:00
Bertrand SIMONNET
5066a45a42 metricsd: Update the daily/weekly metrics name.
Instead of using daily, weekly, the daily/weekly metrics should use
.PerDay and .PerWeek to be consistent with other metrics' names.

BUG: 24412660
Change-Id: I05541c8de269a717a8d3f2d74b7633c3949df3f1
2015-09-25 15:38:42 -07:00
David Pursell
d2b588e239 adb: fix adbd feature parsing for no features.
Previously the transport features list was only overwritten if a
new feature list was found. However, adbd can reuse the same atransport
object even if the adb server is killed and restarted, so the feature
list was not cleared properly if the newly started adb server didn't
provide one.

This CL fixes the bug by clearing the transport features list whenever
a connection banner is parsed.

Bug: http://b/24405971
Change-Id: Ia6ee6c9a46a621534681f6d4d7df77156b885eb9
2015-09-25 13:10:17 -07:00
David Pursell
bbe3d210ba adb: bump server version to prevent feature mismatch.
Devices get a list of supported features from the adb server, not the
client, so a mismatch between client and server features can cause the
device to use an incorrect feature set.

Bumping the server version is the easiest way to make sure the client
and server features match and seems like the best solution at the
moment.

A more automated fix could be to compare client/server features on each
connection and restart if they don't match. This requires an extra
client <-> server round-trip per command, but removes the need to
manually bump the server version number on feature change. Unless the
feature set changes often it didn't seem worth the extra overhead.

Bug: http://b/24370690
Change-Id: I4e43825d1c15c61e5d924fc8d4110b467debde37
2015-09-25 09:59:31 -07:00
Mark Salyzyn
39944c89a9 logd: increase dgram_max_qlen to 600
Seeing liblog messages on system_server runtime restart
(too much system_server spam, 566 messages in 72ms)

Bug: 23788621
Change-Id: I5171f2c19a3538da190fc6c2b40e978d89bf0e20
2015-09-25 14:15:53 +00:00
Sami Tolvanen
1ada14904d fs_mgr: trigger dm-verity error handling for invalid signatures
Currently, the device doesn't mount verified partitions if the
verity table signature is invalid, which usually means it fails to
boot. This change instead sets up dm-verity with an invalid root
hash and triggers device-specific error handling to recover from
the corruption.

Bug: 24256506
Change-Id: I6d693306fa0e7459c5500b028e433df61ecea6fb
(cherry picked from commit 47caa5c386)
2015-09-25 15:01:33 +01:00
Yabin Cui
6185e567d3 am d59075b5: am fca4821e: Merge "libbacktrace: don\'t let llvm cflags cover libbacktrace\'s cflags."
* commit 'd59075b506ce7156406e877f989858bb6041ee8d':
  libbacktrace: don't let llvm cflags cover libbacktrace's cflags.
2015-09-25 02:50:51 +00:00
Yabin Cui
d59075b506 am fca4821e: Merge "libbacktrace: don\'t let llvm cflags cover libbacktrace\'s cflags."
* commit 'fca4821e05f1d4684185b559d177ffde6937bf61':
  libbacktrace: don't let llvm cflags cover libbacktrace's cflags.
2015-09-25 02:41:06 +00:00
Yabin Cui
fca4821e05 Merge "libbacktrace: don't let llvm cflags cover libbacktrace's cflags." 2015-09-25 02:32:05 +00:00
Yabin Cui
af8ac0c498 libbacktrace: don't let llvm cflags cover libbacktrace's cflags.
Change-Id: Ib2783bf5d145599ffed822eec0a2d9f7df2fddf5
2015-09-24 17:46:27 -07:00
Bertrand Simonnet
681eca782a am 7743525e: am 3a8a8bce: Merge "metricsd: Use product id instead of build target id."
* commit '7743525e6093476c5a54eef47d064898d85ba47e':
  metricsd: Use product id instead of build target id.
2015-09-24 23:56:05 +00:00
Bertrand Simonnet
7743525e60 am 3a8a8bce: Merge "metricsd: Use product id instead of build target id."
* commit '3a8a8bce3fa0bad4324f87777328d09ca6d4f426':
  metricsd: Use product id instead of build target id.
2015-09-24 23:49:16 +00:00
Bertrand Simonnet
3a8a8bce3f Merge "metricsd: Use product id instead of build target id." 2015-09-24 23:42:41 +00:00
Bertrand Simonnet
c1a02e8080 am e404c9b7: am 843725bb: Merge "metricsd: Report the data partition usage."
* commit 'e404c9b7e239cbbf3a9eaf1dfc805c8585926022':
  metricsd: Report the data partition usage.
2015-09-24 23:37:11 +00:00
Bertrand Simonnet
e404c9b7e2 am 843725bb: Merge "metricsd: Report the data partition usage."
* commit '843725bb3a8984a021b86435a09c78d3565ab5ba':
  metricsd: Report the data partition usage.
2015-09-24 23:30:43 +00:00
Bertrand Simonnet
843725bb3a Merge "metricsd: Report the data partition usage." 2015-09-24 23:24:11 +00:00
Bertrand SIMONNET
7beaf8924f metricsd: Use product id instead of build target id.
We decided to change the name of this identifier to "product id", the
system property where it is stored will also be named
ro.product.product_id.

BUG: 24302729

Change-Id: I0d2f0867b364de98367f0072d216acec76401c33
2015-09-24 16:23:30 -07:00
Bertrand SIMONNET
5658dc58aa metricsd: Report the data partition usage.
metricsd should report the stateful partition's usage, both in MB and as
a percentage of the available space.
This measure will be reported every 15 minutes.

BUG: 24132871

Change-Id: I1cd8d651a980f90a57be9cc2a5baf6ed59794470
2015-09-24 15:38:36 -07:00
Mark Salyzyn
f28f6a9ba2 liblog: logcat: Add year and zone to date on each line
- '-v year' modifier adds the four digit year prefix
- '-v <timezone>' modifier sets and prints the timezone suffix
- Only promise in logcat to support UTC as a timezone since
  all others are based on the configured environment
- '-v zone' modifier toggles the timezone suffix on or off
- '-T YYYY-MM-DD HH:MM:SS.mmm...' format is added

Bug: 23668700
Change-Id: I7521c1efb7455dc9a25434fce72a69a65dcf72ea
2015-09-24 14:49:55 -07:00
Samuel Tan
bc86d5d48d am dc74e900: am cd27f8a1: Merge "metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/"
* commit 'dc74e900d68a799b780759bd03e146af57199d41':
  metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/
2015-09-24 17:52:44 +00:00
Samuel Tan
dc74e900d6 am cd27f8a1: Merge "metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/"
* commit 'cd27f8a1980de7af748c22a24efd691f19cae4e2':
  metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/
2015-09-24 17:45:57 +00:00
Samuel Tan
cd27f8a198 Merge "metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/" 2015-09-24 17:35:00 +00:00
Sami Tolvanen
975be657aa am e2d2c1cb: am 4ae302af: fs_mgr: trigger dm-verity error handling for invalid signatures
* commit 'e2d2c1cb30aa3dc0dd5ea12c53b24df6b4bf4cdf':
  fs_mgr: trigger dm-verity error handling for invalid signatures
2015-09-24 09:57:30 +00:00
Sami Tolvanen
e2d2c1cb30 am 4ae302af: fs_mgr: trigger dm-verity error handling for invalid signatures
* commit '4ae302af7d0f72559ffb8dd521f290b02fed3072':
  fs_mgr: trigger dm-verity error handling for invalid signatures
2015-09-24 09:51:02 +00:00
Samuel Tan
28a78b7210 metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/
Move metrics_library_mock.h and timer_mock.h into the include/metrics/
folder since some source files in shill need to include these header files.

Adjust the include paths in metricsd source files accordingly, and add
the -frtti flag to the libmetrics target so that classes including
these mock headers can determine the type information of the underlying
class being mocked at run-time.

BUG: 22956441
Change-Id: I19820c0d3097c9c4c2b93730d1988ccec563db23
TEST: "mma" in metricsd folder succeeds.
2015-09-23 18:12:37 -07:00
Yabin Cui
b8db64313a am 56ece709: am e4975da3: Merge "Adb: use VLOG() to replace D() for verbose logging."
* commit '56ece709b093aa7570aa2915fa98682113acc5cb':
  Adb: use VLOG() to replace D() for verbose logging.
2015-09-23 23:16:09 +00:00
Yabin Cui
56ece709b0 am e4975da3: Merge "Adb: use VLOG() to replace D() for verbose logging."
* commit 'e4975da33326295885f4c606288516d73459c68e':
  Adb: use VLOG() to replace D() for verbose logging.
2015-09-23 23:00:18 +00:00
Yabin Cui
e4975da333 Merge "Adb: use VLOG() to replace D() for verbose logging." 2015-09-23 22:24:32 +00:00
Sergio Giro
8dba9a7bf1 libutils: fix compile error in SharedBufferTest
Change-Id: Ib1185d417457d03efa102989a64b5b5e4eb5c82a
2015-09-23 21:22:14 +01:00
Yabin Cui
aed3c61c44 Adb: use VLOG() to replace D() for verbose logging.
As there are too many D(), we can keep both VLOG() and D() now, and get
rid of D() gradually.

Change-Id: I2f1cb70bcab3e82c99fed939341d03f6b2216076
2015-09-23 12:53:38 -07:00
Elliott Hughes
be0044fa83 am 8245b278: am c371f621: Merge "Remove a hack for getting libpagerank\'s headers."
* commit '8245b2785fc6b5886356db9ebaf57080a97f84b6':
  Remove a hack for getting libpagerank's headers.
2015-09-23 19:04:18 +00:00
Elliott Hughes
8245b2785f am c371f621: Merge "Remove a hack for getting libpagerank\'s headers."
* commit 'c371f621048355f58ca1f41117746dd676551912':
  Remove a hack for getting libpagerank's headers.
2015-09-23 18:56:22 +00:00
Elliott Hughes
c371f62104 Merge "Remove a hack for getting libpagerank's headers." 2015-09-23 18:49:06 +00:00
Sergio Giro
c565bdb67b am f777655d: resolved conflicts for 6ee734cf to stage-aosp-master
* commit 'f777655d85af3aefa4a1683f289da1ec67988330':
  libutils: hide SharedBuffer by moving SharedBuffer.h to the implementation directory
2015-09-23 17:15:12 +00:00
Sergio Giro
f777655d85 resolved conflicts for 6ee734cf to stage-aosp-master
Change-Id: Ia06c4d941d9b8828707299bb363f51fab5549897
2015-09-23 17:58:25 +01:00
Sergio Giro
6ee734cfa0 Merge "libutils: hide SharedBuffer by moving SharedBuffer.h to the implementation directory" 2015-09-23 15:43:44 +00:00
Sergio Giro
d2529f2830 libutils: hide SharedBuffer by moving SharedBuffer.h to the implementation directory
Some methods in header files of classes using SharedBuffer need
to be moved to the implementation files accordingly

Change-Id: I891f3ace2b940ab219e4e449040bfed71c0547db
2015-09-23 16:22:59 +01:00
Elliott Hughes
ec22417993 am 64c058da: am 9ea0ff34: Merge "Clean up maps parsing in libbacktrace."
* commit '64c058da2335b37b7a179fd3ffef5cbf7b5e2a25':
  Clean up maps parsing in libbacktrace.
2015-09-23 05:46:27 +00:00
Elliott Hughes
64c058da23 am 9ea0ff34: Merge "Clean up maps parsing in libbacktrace."
* commit '9ea0ff343fa673e7c452b2241bc9738e46e0f5b1':
  Clean up maps parsing in libbacktrace.
2015-09-23 05:42:18 +00:00
Elliott Hughes
6a471e9b5d Remove a hack for getting libpagerank's headers.
Change-Id: I0976af738734337fb6b2ec5e89a9f568a6d3d4cb
2015-09-22 22:35:30 -07:00