Commit Graph

22239 Commits

Author SHA1 Message Date
Daniel Rosenberg 7972040588 Merge "Set up configfs" into nyc-dev
am: 290127b

* commit '290127b29290c133f759eda3fc992e3dcbfb7cb1':
  Set up configfs
2016-03-17 21:16:24 +00:00
Daniel Rosenberg 290127b292 Merge "Set up configfs" into nyc-dev 2016-03-17 21:11:03 +00:00
Josh Gao 199d92abbe Merge "debuggerd: fix stupid typo."
am: b45800a

* commit 'b45800afa38a1cfb7c4e1e9adb3440022c82618a':
  debuggerd: fix stupid typo.
2016-03-17 20:32:09 +00:00
Josh Gao 5ef2c6a2ac debuggerd: fix stupid typo.
am: a951f4c

* commit 'a951f4ca5507f43485b9efdc61570e0c5e7c7d8b':
  debuggerd: fix stupid typo.
2016-03-17 20:29:37 +00:00
Josh Gao a951f4ca55 debuggerd: fix stupid typo.
Change-Id: Icd9a25a71e1e8580a200fe68bce0b17d09c51642
2016-03-17 13:23:41 -07:00
Josh Gao b45800afa3 Merge "debuggerd: fix stupid typo." 2016-03-17 20:22:58 +00:00
Josh Gao 1b301836bb debuggerd: fix stupid typo.
Change-Id: Icd9a25a71e1e8580a200fe68bce0b17d09c51642
2016-03-17 13:21:56 -07:00
Josh Gao 90c307bc07 debuggerd: monitor the worker process for failure.
am: 036ff2c

* commit '036ff2ce83e07a6a7ad0ca339cb2c8f410fc2667':
  debuggerd: monitor the worker process for failure.
  debuggerd: fork the signal sender once.
  Clean up CLOEXEC in debuggerd.
  Remove dead code from debuggerd.
2016-03-17 20:15:55 +00:00
Josh Gao c2cef0202e Merge changes I5a5da1f1,I6294ff68
am: e21e3c6

* commit 'e21e3c65b0bbcf8ef176a4f5863765d353245714':
  debuggerd: monitor the worker process for failure.
  debuggerd: fork the signal sender once.
2016-03-17 20:11:26 +00:00
Josh Gao 036ff2ce83 debuggerd: monitor the worker process for failure.
Use sigtimedwait on SIGCHLD to watch our forked worker processes for
failure, so that we can guarantee that we always resume/kill the target
process if libunwind crashes.

Bug: http://b/27427439
Change-Id: I5a5da1f1abd7dc9d01223f5b3778e946e2d47d20
(cherry picked from commit 630bc80e18)
2016-03-17 13:11:08 -07:00
Josh Gao e5dbdd09c7 debuggerd: fork the signal sender once.
Bug: http://b/27427439
Change-Id: I6294ff68a150bc9950a300264c31d2141307ac66
(cherry picked from commit f5e8f0b9cd)
2016-03-17 13:11:05 -07:00
Elliott Hughes 1a69e2811e Clean up CLOEXEC in debuggerd.
Change-Id: I1cd75f6a8f98e99f4a4fedfc706103ce34035765
(cherry picked from commit 17ba68d0cd)
2016-03-17 13:11:01 -07:00
Elliott Hughes aa41756851 Remove dead code from debuggerd.
system/core/debuggerd/debuggerd.cpp:683:5: warning: Value stored to 'logsocket' is never read
    logsocket = -1;
    ^           ~~

Bug: http://b/27264392
Change-Id: I8eab8a02b67f219c32aea49e4d4957e5642df38f
(cherry picked from commit 6da1353863)
2016-03-17 13:10:58 -07:00
Josh Gao e21e3c65b0 Merge changes I5a5da1f1,I6294ff68
* changes:
  debuggerd: monitor the worker process for failure.
  debuggerd: fork the signal sender once.
2016-03-17 20:00:00 +00:00
Josh Gao 630bc80e18 debuggerd: monitor the worker process for failure.
Use sigtimedwait on SIGCHLD to watch our forked worker processes for
failure, so that we can guarantee that we always resume/kill the target
process if libunwind crashes.

Bug: http://b/27427439
Change-Id: I5a5da1f1abd7dc9d01223f5b3778e946e2d47d20
2016-03-17 11:43:55 -07:00
Josh Gao f5e8f0b9cd debuggerd: fork the signal sender once.
Bug: http://b/27427439
Change-Id: I6294ff68a150bc9950a300264c31d2141307ac66
2016-03-17 11:27:31 -07:00
Dimitry Ivanov 44837bd892 Merge "Add libvulkan.so to the list of public libraries" into nyc-dev
am: eb43104

* commit 'eb43104db148976581c6525b12b1abf25f65987b':
  Add libvulkan.so to the list of public libraries
2016-03-17 18:21:15 +00:00
Dimitry Ivanov 0583bc610b Merge changes from topic \'fix-nativeloader-todo\' into nyc-dev
am: c8bc211

* commit 'c8bc211e6658cf56c5ac8ff5217a1d9a3a64143b':
  Move list of public libraries to a config file
  Revert "libnativeloader: Make webviewchromium so file optional"
2016-03-17 18:21:15 +00:00
Josh Gao 97490560ce debuggerd: kill crashing processes with the signal they died with.
am: bcb58e6

* commit 'bcb58e6d64caef0506eb1d711ec3adbd7e9fb58e':
  debuggerd: kill crashing processes with the signal they died with.
2016-03-17 18:21:15 +00:00
Dimitry Ivanov eb43104db1 Merge "Add libvulkan.so to the list of public libraries" into nyc-dev 2016-03-17 18:04:33 +00:00
Dimitry Ivanov dbae9a9b77 Add libvulkan.so to the list of public libraries
Accidentally dropped it in 4b0e963872

Bug: http://b/27546414
Change-Id: I28835ce3229f778387efedf269d7f32572e09184
2016-03-17 10:57:22 -07:00
Dimitry Ivanov c8bc211e66 Merge changes from topic 'fix-nativeloader-todo' into nyc-dev
* changes:
  Move list of public libraries to a config file
  Revert "libnativeloader: Make webviewchromium so file optional"
2016-03-17 17:47:09 +00:00
Dimitry Ivanov 4b0e963872 Move list of public libraries to a config file
This list contains libraries that should directly or indirectly
be accessible to apps for the platform. Note that this list is
not device specific but rather device class specific.

For now we have 2 separate lists; one for Android Phones and Tablets,
and another one for Android Wear devices.

Bug: http://b/27546414
Bug: http://b/22548808
Change-Id: I83de5e3cf67392d0e9af66f70123898bd5997146
2016-03-17 09:45:52 -07:00
Josh Gao 02becd47e4 Merge "debuggerd: kill crashing processes with the signal they died with."
am: 371e7ea

* commit '371e7ea170d749489a0eb7085347f58b7be63734':
  debuggerd: kill crashing processes with the signal they died with.
2016-03-16 23:27:58 +00:00
Josh Gao bcb58e6d64 debuggerd: kill crashing processes with the signal they died with.
Bug: http://b/27675306
Change-Id: I951c5d7e54c35d88c65c5dc856e0b9d5a93d47b2
(cherry picked from commit 561497c0a8)
2016-03-16 16:16:41 -07:00
Josh Gao 371e7ea170 Merge "debuggerd: kill crashing processes with the signal they died with." 2016-03-16 23:15:51 +00:00
Josh Gao 561497c0a8 debuggerd: kill crashing processes with the signal they died with.
Bug: http://b/27675306
Change-Id: I951c5d7e54c35d88c65c5dc856e0b9d5a93d47b2
2016-03-16 16:10:48 -07:00
Daniel Rosenberg 4edec25396 Set up configfs
Bug: 19160983
Change-Id: I8fddf11fb6124950dfa2528a4f420abd9d461df6
Signed-off-by: Daniel Rosenberg <drosen@google.com>
2016-03-16 15:58:24 -07:00
Dimitry Ivanov 9c0a202977 Revert "libnativeloader: Make webviewchromium so file optional"
This reverts commit 75dda7551f.

Bug: http://b/27546414
2016-03-16 13:54:33 -07:00
Prashant Malani 93a762a58d libnativeloader: Make webviewchromium so file optional
am: 75dda75

* commit '75dda7551f6a3499c0c45ed0f9530353c7616357':
  libnativeloader: Make webviewchromium so file optional
2016-03-16 20:27:51 +00:00
Prashant Malani 75dda7551f libnativeloader: Make webviewchromium so file optional
Not all android devices ship with Webview. The requirement of
libwebviewchromium_plat_support.so to be loaded while initializing the
android namespace is therefore liable to cause a crash on devices that
don't support or use Webview. Therefore, this patch makes this
requirement conditional, but enabled by default.

To remove the dependency, device make files should add the following:

TARGET_IGNORE_WEBVIEW_CHROMIUM := true

Bug: 27336841
Bug: 27546414
Change-Id: Iaec1b58236356d981504ea8f716413ea334ca4f4
2016-03-16 13:03:12 -07:00
Mark Salyzyn 5aad3417d5 Merge changes I7cbc8fda,Ibb7cf4b1
am: c040600

* commit 'c040600baf984c64e48c3340dc1f9b175f975a61':
  liblog: test: security buffer is allowed to be denied
  liblog: test: do not LOG in signal handler
2016-03-16 18:59:42 +00:00
Mark Salyzyn 2581a3e762 liblog: test: security buffer is allowed to be denied
am: 53263ff

* commit '53263ffa00b291de92dd4cb399b1cb5218d363f6':
  liblog: test: security buffer is allowed to be denied
2016-03-16 16:50:08 +00:00
Mark Salyzyn 04f5acd3a8 liblog: test: do not LOG in signal handler
am: a6f2f81

* commit 'a6f2f81d1ec81315f7b8395c17282b5f9d02bf0a':
  liblog: test: do not LOG in signal handler
2016-03-16 16:50:08 +00:00
Mark Salyzyn 53263ffa00 liblog: test: security buffer is allowed to be denied
(cherry pick from commit 29e70a98fe)

Bug: 27405083
Change-Id: I7cbc8fda326a2aea3bef5dabee9d3290cc818b24
2016-03-16 09:05:15 -07:00
Mark Salyzyn a6f2f81d1e liblog: test: do not LOG in signal handler
(cherry pick from commit 50af7f8b1d)

- We actually are logging in a signal handler, the title is bluster
  to remind developers. It is not a reliable path though as it can
  lock up. Our goal is to minimize the chances of a lockup regardless
  in the name of stability only. The test remains to catch regression
  in the name of code quality and reliability. Expected to be
  >99.999% reliable.
- Add a new _correct_ duplicate test that uses signal to release a
  semaphore to a thread that performs the task. This path is expected
  to be 100% reliable.

Bug: 27405083
Change-Id: Ibb7cf4b13e34ebfac2db2af8724b7db7a27f81a8
2016-03-16 09:04:30 -07:00
Mark Salyzyn c040600baf Merge changes I7cbc8fda,Ibb7cf4b1
* changes:
  liblog: test: security buffer is allowed to be denied
  liblog: test: do not LOG in signal handler
2016-03-16 16:02:48 +00:00
Sami Tolvanen 3a56df14b6 mkbootimg: add os_version
am: 05d2a9002e

* commit '05d2a9002ef3509efd1a1ab2ebf0a86561e61607':
  mkbootimg: add os_version
2016-03-15 19:36:02 +00:00
Sami Tolvanen 05d2a9002e mkbootimg: add os_version
Adds operating system version and security patch level to the boot
image header. This change take into use one of the existing unused
fields to preserve compatibility.

Note: All information is packed into a single field, because there
are a lot of existing devices that break if the first unused field
is set to a non-zero value.

Bug: 27498078
Bug: 22914603
Change-Id: I24953129e06019b95014a050e916fe4f5c199286
(cherry picked from commit d162828814)
2016-03-15 10:37:52 -07:00
Sami Tolvanen 8b69be8fdc Merge "mkbootimg: add os_version"
am: 9fc2cd20a6

* commit '9fc2cd20a615a03b0375769939ba0dc1a946f4ac':
  mkbootimg: add os_version
2016-03-15 17:01:25 +00:00
Sami Tolvanen 9fc2cd20a6 Merge "mkbootimg: add os_version" 2016-03-15 16:46:31 +00:00
Sami Tolvanen d162828814 mkbootimg: add os_version
Adds operating system version and security patch level to the boot
image header. This change take into use one of the existing unused
fields to preserve compatibility.

Note: All information is packed into a single field, because there
are a lot of existing devices that break if the first unused field
is set to a non-zero value.

Bug: 27498078
Bug: 22914603
Change-Id: I24953129e06019b95014a050e916fe4f5c199286
2016-03-15 09:38:36 -07:00
James Hawkins 314b3f1364 bootstat: Disambiguate boot time on encrypted devices.
am: eef069acc5

* commit 'eef069acc58a55f8f9c028b6d9a737d7b1851354':
  bootstat: Disambiguate boot time on encrypted devices.
2016-03-15 15:31:57 +00:00
Mattias Nissler 3212df1c5f Merge "[core][trusty] Implement Trusty NVRAM HAL module."
am: ff03857437

* commit 'ff038574377f183f503362ed03468581ebfc2486':
  [core][trusty] Implement Trusty NVRAM HAL module.
2016-03-15 14:52:14 +00:00
Mattias Nissler ff03857437 Merge "[core][trusty] Implement Trusty NVRAM HAL module." 2016-03-15 14:43:29 +00:00
James Hawkins eef069acc5 bootstat: Disambiguate boot time on encrypted devices.
This change introduces new metrics to discern boot time on encrypted devices:
* post_decrypt_time_elapsed
* boot_decryption_complete
* boot_complete_post_decrypt
* boot_complete_no_encryption

Bug: 27497357
Change-Id: I8d3a411029bd6a45f80589ff67c408593e133a87
(cherry picked from commit c08e996ac8)
2016-03-14 14:27:35 -07:00
James Hawkins f767a8eb15 Merge "bootstat: Disambiguate boot time on encrypted devices."
am: 42aab0a789

* commit '42aab0a789d6d2d602165e641ddc86a0bc2458c6':
  bootstat: Disambiguate boot time on encrypted devices.
2016-03-14 19:11:49 +00:00
James Hawkins 42aab0a789 Merge "bootstat: Disambiguate boot time on encrypted devices." 2016-03-14 18:59:55 +00:00
Mihai Serban 8bf6e6908b Merge "init-debug.rc: mount debugfs"
am: bf6c67f234

* commit 'bf6c67f234b591afd3cf936632ca00730b89eb73':
  init-debug.rc: mount debugfs
2016-03-14 18:06:27 +00:00
Elliott Hughes bf6c67f234 Merge "init-debug.rc: mount debugfs" 2016-03-14 17:57:16 +00:00