Commit Graph

22219 Commits

Author SHA1 Message Date
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 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
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
Mark Salyzyn fb56f042ca liblog: truncate logtags that overflow prefixBuf
am: 73207ce139

* commit '73207ce139eaf1ac3fe3b96e2e0b254bf268b896':
  liblog: truncate logtags that overflow prefixBuf
2016-03-14 17:38:39 +00:00
Mark Salyzyn 73207ce139 liblog: truncate logtags that overflow prefixBuf
(cherry pick from commit 2f83d679dd)

Bug: 27585978
Change-Id: If2f45e8787b05b46491a771702746cfc248b9ccd
2016-03-14 10:08:06 -07:00
Mark Salyzyn 9212456a27 Merge "liblog: truncate logtags that overflow prefixBuf"
am: 00c8dd8e6f

* commit '00c8dd8e6f135c520bfa9c4f2b09f74c1c931913':
  liblog: truncate logtags that overflow prefixBuf
2016-03-14 16:45:58 +00:00
Mark Salyzyn 00c8dd8e6f Merge "liblog: truncate logtags that overflow prefixBuf" 2016-03-14 16:40:37 +00:00
Mark Salyzyn 29e70a98fe liblog: test: security buffer is allowed to be denied
Bug: 27405083
Change-Id: I7cbc8fda326a2aea3bef5dabee9d3290cc818b24
2016-03-14 09:18:55 -07:00
Mark Salyzyn 50af7f8b1d liblog: test: do not LOG in signal handler
- 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-14 09:18:38 -07:00
Mark Salyzyn 2f83d679dd liblog: truncate logtags that overflow prefixBuf
Bug: 27585978
Change-Id: If2f45e8787b05b46491a771702746cfc248b9ccd
2016-03-14 09:12:24 -07:00
Sami Tolvanen 9c423a900b Merge "Revert "mkbootimg: add version and patch level"" into nyc-dev
am: 1338dc40ca

* commit '1338dc40caf73f1c3f507c001078465571bacae7':
  Revert "mkbootimg: add version and patch level"
2016-03-14 15:55:20 +00:00
Sami Tolvanen 1338dc40ca Merge "Revert "mkbootimg: add version and patch level"" into nyc-dev 2016-03-14 15:49:15 +00:00
Sami Tolvanen 3b87395032 Revert "mkbootimg: add version and patch level"
This reverts commit dcdf300a1f.

Bug: 27580174
Change-Id: I49780dc522b5d1c4939749fe0d38124821f67c12
2016-03-14 15:47:25 +00:00
Brian Carlstrom de6d6041c1 system/core: Make Thread::run threadName argument required
am: e71b914775

* commit 'e71b9147756ab4da306e4c16461ad23936769603':
  system/core: Make Thread::run threadName argument required
2016-03-14 15:24:54 +00:00
Janis Danisevskis 0af61f0024 Merge "Leftovers of the SELinux policy update mechanism"
am: b9c0788806

* commit 'b9c078880644b51bc9e6c314eed157f230fce43c':
  Leftovers of the SELinux policy update mechanism
2016-03-13 14:53:00 +00:00
Janis Danisevskis b9c0788806 Merge "Leftovers of the SELinux policy update mechanism" 2016-03-13 14:47:23 +00:00
Brian Carlstrom e71b914775 system/core: Make Thread::run threadName argument required
Bug: 27557176
Change-Id: Iae83a1e5489c86c2858fc8481f246b8480f0eec4
2016-03-12 21:32:52 -08:00
James Hawkins c08e996ac8 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
2016-03-11 15:50:39 -08:00
Elliott Hughes 64d413499b Fix buffer overrun in adb wait-for-device.
am: 1ef5bf839e

* commit '1ef5bf839e5b467e8014c751390045cd02b4128f':
  Fix buffer overrun in adb wait-for-device.
2016-03-11 18:21:42 +00:00
Janis Danisevskis 3d1dff2231 Leftovers of the SELinux policy update mechanism
Remove references to SELinux policy files in /data/security
from libselinux/android.c. In the process all code that is
apparently related to handling an alternate policy and/or
reloading the policy has been removed.

Bug: 26544104
Change-Id: I47bf76ac3c26c5d71f92a21ffac2b17ba14262ea
2016-03-11 17:47:30 +00:00
Elliott Hughes b80557a608 Merge "Fix buffer overrun in adb wait-for-device."
am: 1f13c1a208

* commit '1f13c1a208394b74a8c60e677546a8c8ed697091':
  Fix buffer overrun in adb wait-for-device.
2016-03-11 17:01:53 +00:00
Elliott Hughes 1ef5bf839e Fix buffer overrun in adb wait-for-device.
Bug: http://b/27444063

(cherry picked from commit 34e560b9a1)

Change-Id: Ic71cb2070f509d76fb4208dbab6711c5dd5e1f62
2016-03-11 08:55:01 -08:00
Elliott Hughes 1f13c1a208 Merge "Fix buffer overrun in adb wait-for-device." 2016-03-11 16:53:26 +00:00